.project-header { grid-template-columns: 1fr auto; }
.back-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: "Inter Tight", Arial, sans-serif; font-size: 15px; font-weight: 600; }
.back-link span { font-size: 24px; }
.project-page a:focus-visible, .project-page button:focus-visible { outline: 3px solid var(--rose); outline-offset: 5px; }
.story-heading { padding: 46px 42px 34px; background: var(--mist); }
.story-heading h1 { max-width: 1100px; margin: 20px 0 12px; font-family: "Inter Tight", Arial, sans-serif; font-size: 68px; font-weight: 800; line-height: 1; text-transform: uppercase; overflow-wrap: break-word; }
.story-subtitle { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; line-height: 1.15; }
.story-cover { width: 100%; height: 560px; max-height: 65svh; min-height: 260px; overflow: hidden; background: var(--mist); }
.story-cover img { height: 100%; object-fit: cover; }
.story-cover.story-cover-coast { height: auto; max-height: none; min-height: 0; aspect-ratio: 1280 / 853; }
.story-cover-gender img { object-position: center 65%; }
.story-section { padding: 56px 42px; }
.story-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 80px; }
.story-section h2, .story-contact h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 46px; font-weight: 500; line-height: 1.05; }
.story-description p { max-width: 660px; margin-top: 24px; font-size: 16px; line-height: 1.7; }
.story-program ul { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.story-program li { position: relative; padding: 13px 0 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.story-program li::before { content: ""; position: absolute; top: 23px; left: 0; width: 5px; height: 5px; background: var(--ink); }
.story-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.story-section-heading .section-index { flex-shrink: 0; }
.story-gallery-section { padding-top: 32px; }
.story-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gallery-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--mist); }
.gallery-photo img { height: 100%; object-fit: cover; transition: transform 300ms ease; }
.gallery-photo:hover img { transform: scale(1.025); }
.story-video-section { background: var(--mist); }
.story-videos { display: flex; justify-content: center; background: #171717; }
.story-videos video { display: block; width: 100%; max-width: 1100px; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.story-contact { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 44px 42px; background: var(--rose); }
.story-contact h2 { margin-top: 14px; }
.story-contact-link { display: flex; align-items: center; gap: 24px; min-height: 48px; border-bottom: 1px solid var(--ink); font-size: 22px; font-weight: 600; white-space: nowrap; }
.story-navigation { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 42px; border-bottom: 1px solid var(--line); }
.next-project { display: grid; gap: 8px; max-width: 65%; text-align: right; }
.next-project strong { font-family: "Inter Tight", Arial, sans-serif; font-size: 26px; line-height: 1.15; font-weight: 600; }
.story-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 26px 42px; font-size: 13px; }
.story-footer span { margin-left: auto; }
.gallery-open { overflow: hidden; }
.gallery-dialog { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px 24px; border: 0; background: #171717; color: white; }
.gallery-dialog[open] { display: grid; grid-template-rows: 48px minmax(0, 1fr) 60px; gap: 12px; }
.gallery-dialog::backdrop { background: #171717; }
.gallery-toolbar, .gallery-controls { display: flex; align-items: center; justify-content: space-between; }
.gallery-controls { justify-content: center; gap: 24px; }
.gallery-counter { font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery-control { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #777; border-radius: 0; background: transparent; color: white; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.gallery-control:hover { background: #383838; }
.gallery-stage { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; touch-action: pan-y; }
.gallery-full-image { width: 100%; height: 100%; object-fit: contain; }
.gallery-full-image[hidden], .gallery-error[hidden] { display: none; }
.gallery-error { max-width: 340px; text-align: center; }
@media (max-width: 880px) {
  .story-heading h1 { font-size: 50px; }
  .story-about { gap: 40px; }
  .story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-contact { align-items: start; flex-direction: column; gap: 20px; }
}
@media (max-width: 640px) {
  .project-header .brand { width: 150px; }
  .back-link { font-size: 13px; gap: 8px; }
  .story-heading { padding: 28px 16px; }
  .story-heading h1 { font-size: 36px; margin-top: 16px; line-height: 1.03; }
  .story-subtitle { font-size: 27px; }
  .story-cover { height: 350px; max-height: 55svh; }
  .story-section { padding: 36px 16px; }
  .story-about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story-section h2, .story-contact h2 { font-size: 36px; }
  .story-description p { margin-top: 20px; font-size: 15px; }
  .story-section-heading { gap: 16px; padding-bottom: 18px; margin-bottom: 18px; }
  .story-section-heading .section-index { font-size: 10px; }
  .story-gallery { gap: 12px; }
  .story-contact { padding: 32px 16px; }
  .story-contact-link { font-size: 21px; }
  .story-navigation { padding: 28px 16px; gap: 20px; align-items: start; }
  .next-project strong { font-size: 22px; }
  .next-project .section-index { font-size: 10px; }
  .story-footer { padding: 24px 16px; gap: 18px; font-size: 12px; }
  .gallery-dialog { padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .story-heading h1 { font-size: 32px; }
  .story-section-heading { align-items: start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-photo img { transition: none; }
}
