.project-gallery {
  min-width: 0;
}
.gallery-viewport {
  overflow: hidden;
  touch-action: pan-y;
  aspect-ratio: 16 / 9;
  background: #e8ecf8;
  border-radius: 12px;
}
.project-detail-art:has(.gallery-detail) { height: auto; overflow: visible; }
.gallery-detail .gallery-viewport {
  height: clamp(165px, 46vw, 230px);
  aspect-ratio: auto;
}
.gallery-strip {
  display: flex;
  height: 100%;
  transform: translateX(calc(var(--gallery-index, 0) * -100%));
  transition: transform .42s cubic-bezier(.2,.8,.22,1);
}
.gallery-slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.gallery-slide a, .gallery-slide img { display: block; width: 100%; height: 100%; }
.gallery-slide img { object-fit: cover; }
.gallery-detail .gallery-slide img { object-fit: contain; }
.gallery-dots {
  position: relative;
  display: flex;
  width: max-content;
  max-width: calc(100% - 10px);
  margin-inline: auto;
}
.gallery-dots button {
  position: relative;
  width: 28px;
  height: 40px;
  padding: 0;
  border-radius: 30px;
}
.gallery-dots button::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8995ab;
  transform: translate(-50%, -50%);
}
.gallery-dots button[aria-current]::after { opacity: 0; }
.gallery-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.gallery-pip {
  position: absolute;
  z-index: 1;
  left: 5px;
  top: calc(50% - 3.5px);
  width: 18px;
  height: 7px;
  border-radius: 99px;
  background: var(--blue);
  pointer-events: none;
}
.detail-actions .profile-settings-trigger {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef0f8;
  color: #404fb1;
  font-size: .875rem;
  font-weight: 750;
}
.detail-actions .profile-settings-trigger:hover { background: #e1e6fb; }
.project-editor { display: grid; gap: 24px; }
.project-editor [hidden] { display: none; }
.project-editor-fields, .project-editor-images { display: grid; min-width: 0; gap: 12px; }
.project-editor-fields label { display: grid; gap: 5px; min-width: 0; font-size: .8125rem; font-weight: 700; }
.project-editor-fields input, .project-editor-fields select, .project-editor-fields textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.project-editor-fields textarea { resize: vertical; min-height: 90px; max-height: 240px; }
.project-editor-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.project-editor-images { border-block-start: 1px solid var(--line); padding-block-start: 18px; }
.project-editor-images header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.project-editor-images h3 { margin: 0; font-size: 1rem; }
.project-editor-images header span { color: #526078; font-size: .8125rem; }
.project-thumbnails { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 7px; }
.project-thumbnails:empty { display: none; }
.project-thumbnails figure { position: relative; margin: 0; min-width: 0; }
.project-thumbnails img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.project-thumbnails button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  top: 4px;
  right: 4px;
  border-radius: 50%;
  background: #192543e0;
  color: white;
}
.project-editor progress { width: 100%; accent-color: var(--blue); }
.project-photo-queue { margin: 0; padding: 0; list-style: none; font-size: .8125rem; overflow-wrap: anywhere; }
.project-photo-queue li { display: grid; padding: 4px 0; gap: 1px; }
.project-photo-queue small { color: #a23148; }
@media (max-width: 380px) {
  .project-grid:has(.project-gallery) { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .gallery-strip { transition: none; } }
