/* PHOTO typography stays scoped to this gallery. */
#website-unfold-gallery,
#website-unfold-gallery .hero-image-orbit__stage {
  background: #fff;
}

#website-unfold-gallery {
  border-top: 0;
}

#website-unfold-gallery .website-film-photo-heading {
  top: 50%;
  right: auto;
  left: clamp(36px, 5vw, 96px);
  display: block;
  width: clamp(320px, 38vw, 520px);
  max-width: calc(100% - 48px);
  padding: 0;
  color: #243a46;
  text-align: center;
  transform: translateY(-50%);
}

#website-unfold-gallery .website-film-photo-heading::before {
  content: none;
}

#website-unfold-gallery .website-film-photo-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.75rem, 7.8vw, 7.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.045em;
}

#website-unfold-gallery .website-film-photo-heading__subtitle {
  margin: 1.15rem 0 0;
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.12em;
}

#website-unfold-gallery .website-film-photo-heading .hero-image-orbit__description {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0 0;
  color: #52636d;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
  margin-inline: auto;
  text-align: center;
}

#website-unfold-gallery .website-film-photo-heading .hero-image-orbit__description > span {
  display: block;
  text-wrap: balance;
}

@media (max-width: 900px) and (min-height: 601px), (max-width: 600px) {
  #website-unfold-gallery .website-film-photo-heading {
    top: max(68px, calc(env(safe-area-inset-top) + 44px));
    left: 24px;
    right: 24px;
    width: auto;
    max-width: 36rem;
    margin-inline: auto;
    transform: none;
  }

  #website-unfold-gallery .website-film-photo-heading h2 {
    font-size: clamp(4rem, 18vw, 6.5rem);
  }

  #website-unfold-gallery .website-film-photo-heading__subtitle {
    margin-top: 0.75rem;
    font-size: 22px;
  }

  #website-unfold-gallery .website-film-photo-heading .hero-image-orbit__description {
    max-width: 100%;
    margin-top: 1rem;
    line-height: 1.8;
  }
}

@media (max-height: 600px) {
  #website-unfold-gallery .website-film-photo-heading h2 {
    font-size: clamp(3.5rem, 8vw, 5rem);
  }

  #website-unfold-gallery .website-film-photo-heading__subtitle {
    margin-top: 0.5rem;
    font-size: 20px;
  }

  #website-unfold-gallery .website-film-photo-heading .hero-image-orbit__description {
    margin-top: 0.75rem;
    line-height: 1.7;
  }
}

@media (max-width: 600px) and (max-height: 600px) {
  #website-unfold-gallery .website-film-photo-heading {
    top: 32px;
  }
}

#website-unfold-gallery .website-film-photo-heading.is-story-copy-centered {
  top: var(--story-copy-center-y);
  right: auto;
  left: var(--story-copy-center-x);
  width: var(--story-copy-width);
  margin-inline: 0;
  transform: translate(-50%, -50%);
}

#website-unfold-gallery .website-film-photo-heading.is-story-copy-reveal-ready {
  opacity: 0;
  transition: opacity 2s ease;
}

#website-unfold-gallery .website-film-photo-heading.is-story-copy-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #website-unfold-gallery .website-film-photo-heading.is-story-copy-reveal-ready {
    transition: none;
  }
}

/* Keep the existing hero and gallery controllers on their original elements.
   Give the moved gallery its own natural-height grid row immediately after
   the opening, ahead of the introduction and View Site presentation. */
body.service-website-page.service-movie-page.service-movie-normal-scroll .service-hero__sticky--photo-sequence {
  grid-template-rows: auto auto 100svh auto;
}

body.service-website-page .service-hero__sticky--photo-sequence > #website-unfold-gallery {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  min-width: 0;
}

body.service-website-page.service-movie-page.service-movie-normal-scroll .service-hero__sticky--photo-sequence > .lumen-sheet {
  grid-row: 3;
}

body.service-website-page.service-movie-page.service-movie-normal-scroll .service-hero__sticky--photo-sequence > .service-hero__reverse-film-stage {
  grid-row: 4;
}
