body.page-about {
  margin: 0;
  background: var(--cream);
  color: #000;
}
body.page-about {
  overflow-x: hidden;
}

.page-about main {
  display: block;
}

.page-about .site-nav {
  position: fixed;
}

.intro__wave {
  position: absolute;
  top: 0;
  left: 50%;
  width: 160vw;
  height: auto;
  min-height: 300px;
  transform: translateX(-50%) translateY(-35%);
  z-index: 2;
  pointer-events: none;
}

.intro__wave img {
  width: 100%;
  height: auto;
  display: block;
}

/* Class portrait: full-bleed width; flush to top of viewport (nav overlays) */
.page-about .hero {
  margin-top: 0;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  position: relative;
}

.page-about .hero__media {
  position: relative;
  width: 100%;
  height: 110vh;
  min-height: 0;
  background: #252220;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-about .hero__media img {
  position: static;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: unset;
  object-position: unset;
  mix-blend-mode: normal;
  display: block;
  transform: none;
}

.page-about .hero__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

.about-copy {
  padding: 2.5rem 1.25rem 1.5rem;
}

.about-copy__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-copy h1 {
  margin: 0 0 1rem;
  font-family: Gelasio, Georgia, serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -1px;
}

.about-copy p {
  margin: 0 auto 1rem;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.35px;
}

.theme-divider {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2.2vw, 2.2rem);
  padding: 0.35rem 1.5rem;
  background: #9576a0;
  color: var(--cream);
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 100;
}

.theme-divider button {
  border: none;
  background: transparent;
  color: var(--cream);
  font-family: Gelasio, Georgia, serif;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.15px;
  line-height: 1;
  padding: 0.25rem 0.15rem;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.page-about .theme-divider[data-profile-filters] {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: top 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-about.page-about--nav-docked .theme-divider[data-profile-filters] {
  top: var(--about-nav-h, 120px);
}
.theme-divider button.is-active {
  border-bottom-color: var(--cream);
}

.everyone {
  padding: 2.8rem 1rem 3.6rem;
  overflow: visible;
}

.everyone__inner {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.everyone h2 {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: Gelasio, Georgia, serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
}

.everyone__canvas {
  position: relative;
  margin: 0 auto;
  padding: 3.3rem 1.45rem 3rem;
  max-width: 1300px;
  overflow: visible;
}

.everyone__canvas::before {
  content: "";
  position: absolute;
  inset: -0.45rem -0.75rem -1.7rem;
  background: #6a9d06;
  border-radius: 38% 45% 33% 40% / 33% 36% 44% 41%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.everyone.is-teams .everyone__canvas::before {
  opacity: 1;
}

.everyone.is-teams .everyone__canvas {
  display: none;
}

.teams-scroll {
  display: none;
  gap: 2rem;
}

.teams-scroll[hidden] {
  display: none;
}

.everyone.is-teams .teams-scroll {
  display: grid;
}

.team-block h3 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
}

.team-block__blob {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.9rem 1rem 2.1rem;
  overflow: visible;
}

.team-block__blob::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 38% 45% 33% 40% / 33% 36% 44% 41%;
  z-index: 0;
}

.team-block__blob[data-blob-bg="green"]::before { background: #6a9d06; }
.team-block__blob[data-blob-bg="navy"]::before { background: #143f73; }
.team-block__blob[data-blob-bg="blue"]::before { background: #2194b2; }
.team-block__blob[data-blob-bg="brown"]::before { background: #8b5b44; }
.team-block__blob[data-blob-bg="red"]::before { background: #d8676a; }
.team-block__blob[data-blob-bg="purple"]::before { background: #9a7faf; }

.team-block__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 6rem;
  overflow: visible;
}

.everyone__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem 6rem;
  overflow: visible;
}

.profile-card[hidden] {
  display: none;
}

.profile-card {
  text-align: center;
  width: min(30%, 270px);
  min-width: 190px;
  overflow: visible;
}

.profile-card__media {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 0.75rem;
  padding: 12% 10% 11% 11%;
  overflow: visible;
}

.profile-card__blob {
  position: absolute;
  left: 48%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 128%;
  max-width: none;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
}

.profile-card__blob-img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-card__avatar {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 204px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--cream);
  overflow: hidden;
}

.profile-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.profile-card__photo[src$="placeholder.svg"] {
  object-fit: contain;
  object-position: center center;
  padding: 0.35rem;
  box-sizing: border-box;
}

.profile-card h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(18px, 2.4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: #000;
}

.profile-card__meta {
  margin: 0;
  font-family: 'Proza Libre', sans-serif;
  font-size: clamp(11px, 1.25vw, 18px);
  letter-spacing: -0.2px;
  line-height: 1.2;
  color: #000;
}

.profile-card__socials {
  margin-top: 0.45rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.profile-card__social {
  width: clamp(24px, 2.8vw, 36px);
  height: clamp(24px, 2.8vw, 36px);
  border: 1.2px solid #222;
  border-radius: 999px;
  display: inline-flex;
}

.profile-card__portfolio {
  display: inline-flex;
  margin-top: 0.45rem;
  width: clamp(24px, 2.8vw, 36px);
  height: clamp(24px, 2.8vw, 36px);
  border: 1.2px solid #222;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background-color: #9576a0;
  background-image: url("/assets/graphics/Web%20Logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65% 65%;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
  flex: 0 0 auto;
}

.profile-card--mini .profile-card__media {
  max-width: 300px;
  padding: 11% 9% 10% 10%;
}

.profile-card--mini .profile-card__blob {
  width: 124%;
}

.profile-card--mini .profile-card__avatar {
  border-color: rgba(254, 247, 236, 0.7);
  max-width: 300px;
}

.profile-card--mini h3,
.profile-card--mini .profile-card__meta,
.profile-card--mini .profile-card__portfolio {
  color: var(--black);
}

.profile-card--mini .profile-card__social {
  border-color: var(--black);
}

.everyone.is-teams .profile-card h3,
.everyone.is-teams .profile-card__meta,
.everyone.is-teams .profile-card__portfolio {
  color: var(--black);
}

.everyone.is-teams .profile-card__social {
  border-color: var(--black);
}

@media (min-width: 980px) {
  .about-copy {
    padding-top: 3.2rem;
  }

  .everyone__grid {
    gap: 4rem 6rem;
  }

  .profile-card__media {
    max-width: 300px;
  }

  .profile-card__avatar {
    max-width: 300px;
  }
}

@media (max-width: 860px) {
  .profile-card {
    width: min(46%, 250px);
    min-width: 150px;
  }
}


@media (max-width: 600px) {
  .team-block__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    justify-items: center;
  }
  .profile-card.profile-card--mini {
    width: 100%;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .everyone__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    justify-items: center;
  }
}







/* Color bar — continue reading (matches design system palette) */
.color-bar--compact {
  display: flex;
  justify-content: center;
  margin: 4rem auto 0;
  padding: 0 2rem;
  max-width: 1440px;
}

.color-bar--compact .color-bar__track {
  display: flex;
  width: min(100%, 412px);
  height: 26px;
  overflow: hidden;
  border-radius: 2px;
}

.color-bar__stripe {
  flex: 1;
  min-width: 0;
}

.color-bar--compact .color-bar__stripe--1 {
  background: #84a91f;
}

.color-bar--compact .color-bar__stripe--2 {
  background: #112e51;
}

.color-bar--compact .color-bar__stripe--3 {
  background: #1e90b1;
}

.color-bar--compact .color-bar__stripe--4 {
  background: #7a5241;
}

.color-bar--compact .color-bar__stripe--5 {
  background: #d66767;
}

.color-bar--compact .color-bar__stripe--6 {
  background: #9576a0;
}



.about-stats {
  margin: 3rem auto 4rem auto;
  max-width: 900px;
  padding: 0 1rem;
}
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2rem;
  justify-items: center;
  align-items: center;
}
.about-stats__block {
  background: #9576A0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 250px;
  min-width: 220px;
  min-height: 220px;
  max-width: 300px;
  max-height: 300px;
  box-shadow: 0 1px 8px 0 rgba(80,30,110,0.09);
  text-align: center;
  padding: 1rem;
}
.about-stats__number {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  display: block;
}
.about-stats__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
  line-height: 1.2;
  display: block;
}

@media (max-width: 900px) {
  .about-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem 1rem;
  }
  .about-stats__block {
    width: 130px;
    height: 130px;
    min-width: 95px;
    min-height: 95px;
  }
}
@media (max-width: 600px) {
  .about-stats__block {
    width: 175px;
    height: 175px;
    min-width: 80px;
    min-height: 80px;
    padding: 1rem;
  }
  .about-stats__number {
    font-size: 2rem;
  }
  .about-stats__title {
    font-size: 0.97rem;
  }
}

.intro-heading-behind-the-scenes {
  text-align:center; font-size:clamp(2rem,5vw,3rem); font-weight:400; margin:0 auto 1.5rem auto; color:#000; font-family:Gelasio,Georgia,serif; display:block; width:100%; max-width:900px;
}


/* Photo story — same scroll height / theater as video; first image matches video stage */
.photo-story {
  --photo-gap: clamp(8px, 1.2vw, 16px);
  width: 100%;
  background: var(--cream);
  height: 240vh;
  display: flex;
  align-items: stretch;
  transition: background-color 800ms cubic-bezier(.4,0,.2,1);
}

.photo-story__inner {
  position: sticky;
  top: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.photo-story__stage {
  position: relative;
  width: min(80vw, 1400px);
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  overflow: visible;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 700ms cubic-bezier(.4,0,.2,1), transform 700ms cubic-bezier(.4,0,.2,1);
}

.photo-story__media {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%) translateX(0) scale(1);
  opacity: 1;
  z-index: 1;
  transition: transform 0.75s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.75s ease;
  will-change: transform, opacity;
}

.photo-story__layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.photo-story__layer--0 {
  z-index: 1;
  opacity: 1;
}

.photo-story__layer--1 {
  z-index: 0;
  opacity: 0;
}

.photo-story__media.photo-story__media--show-b .photo-story__layer--0 {
  z-index: 0;
  opacity: 0;
}

.photo-story__media.photo-story__media--show-b .photo-story__layer--1 {
  z-index: 1;
  opacity: 1;
}

.photo-story__preview {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translateY(-50%) translateX(var(--preview-x-hidden, var(--preview-x, 0))) scale(1);
  border: none;
  border-radius: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1), transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform, opacity;
  cursor: pointer;
  pointer-events: none;
}

.photo-story__preview--left {
  left: 0;
  right: auto;
  --preview-x: calc(-100% - var(--photo-gap));
  --preview-x-hidden: calc(-122% - var(--photo-gap));
}

.photo-story__preview--right {
  right: 0;
  left: auto;
  --preview-x: calc(100% + var(--photo-gap));
  --preview-x-hidden: calc(122% + var(--photo-gap));
}

.photo-story__preview.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.photo-story__preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 240ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.photo-story__peek-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 240ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.photo-story__preview--left .photo-story__peek-layer--0,
.photo-story__preview--right .photo-story__peek-layer--0 {
  z-index: 1;
  opacity: 1;
}

.photo-story__preview--left .photo-story__peek-layer--1,
.photo-story__preview--right .photo-story__peek-layer--1 {
  z-index: 0;
  opacity: 0;
}

.photo-story__preview--left.photo-story__peek--show-b .photo-story__peek-layer--0,
.photo-story__preview--right.photo-story__peek--show-b .photo-story__peek-layer--0 {
  z-index: 0;
  opacity: 0;
}

.photo-story__preview--left.photo-story__peek--show-b .photo-story__peek-layer--1,
.photo-story__preview--right.photo-story__peek--show-b .photo-story__peek-layer--1 {
  z-index: 1;
  opacity: 1;
}

.photo-story__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(var(--arrow-x, 0));
  width: clamp(42px, 4vw, 56px);
  height: clamp(42px, 4vw, 56px);
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.photo-story__arrow svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.photo-story__arrow--left {
  left: 0;
  right: auto;
  --arrow-x: -180%;
}

.photo-story__arrow--right {
  right: 0;
  left: auto;
  --arrow-x: 180%;
}

.photo-story__arrow:hover {
  transform: translateY(-50%) translateX(var(--arrow-x, 0)) scale(1.04);
}

.photo-story__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.photo-story__down-cue {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms cubic-bezier(.4,0,.2,1);
}

.photo-story__down-cue-icon {
  width: 44px;
  height: 44px;
  animation: video-down-cue-bounce 1.8s ease-in-out infinite;
}

.photo-story.is-stopped {
  background: #000;
}

.photo-story.is-stopped .photo-story__stage {
  width: min(88vw, 1600px);
  transform: scale(1.03);
}

/* Center hit shield: side previews are full-bleed (100%×100%) and transformed, so their
   boxes still overlap the middle and steal hover — causes cursor/transform flicker. */
.photo-story.is-stopped .photo-story__stage::after {
  content: '';
  position: absolute;
  inset: 0 24% 0 24%;
  z-index: 4;
  pointer-events: auto;
  cursor: default;
}

.photo-story.is-stopped .photo-story__down-cue {
  opacity: 1;
}

.photo-story.is-stopped .photo-story__media,
.photo-story.is-stopped .photo-story__layer {
  pointer-events: none;
  user-select: none;
}

.photo-story.is-stopped .photo-story__preview {
  opacity: 0.3;
  transform: translateY(-50%) translateX(var(--preview-x, 0)) scale(0.9);
  pointer-events: auto;
}

.photo-story.is-stopped .photo-story__preview:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(var(--preview-x, 0)) scale(0.94);
}

.photo-story.is-stopped .photo-story__preview:hover .photo-story__preview-img {
  transform: scale(1.06);
}

/* Carousel slide: next = right panel eases into center, current moves to left */
.photo-story.is-stopped .photo-story__stage.is-anim-next .photo-story__preview--left {
  opacity: 0;
  transform: translateY(-50%) translateX(calc(-200% - 2 * var(--photo-gap))) scale(0.9);
  pointer-events: none;
}

.photo-story.is-stopped .photo-story__stage.is-anim-next .photo-story__media {
  opacity: 0.3;
  transform: translateY(-50%) translateX(calc(-100% - var(--photo-gap))) scale(0.9);
  z-index: 1;
}

.photo-story.is-stopped .photo-story__stage.is-anim-next .photo-story__preview--right {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  z-index: 3;
  pointer-events: none;
}

/* Carousel slide: prev = left panel eases into center */
.photo-story.is-stopped .photo-story__stage.is-anim-prev .photo-story__preview--right {
  opacity: 0;
  transform: translateY(-50%) translateX(calc(200% + 2 * var(--photo-gap))) scale(0.9);
  pointer-events: none;
}

.photo-story.is-stopped .photo-story__stage.is-anim-prev .photo-story__media {
  opacity: 0.3;
  transform: translateY(-50%) translateX(calc(100% + var(--photo-gap))) scale(0.9);
  z-index: 1;
}

.photo-story.is-stopped .photo-story__stage.is-anim-prev .photo-story__preview--left {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  z-index: 3;
  pointer-events: none;
}

.photo-story__stage.is-anim-next .photo-story__preview,
.photo-story__stage.is-anim-next .photo-story__arrow,
.photo-story__stage.is-anim-prev .photo-story__preview,
.photo-story__stage.is-anim-prev .photo-story__arrow {
  pointer-events: none;
}

.photo-story__stage.is-anim-next .photo-story__preview-img,
.photo-story__stage.is-anim-prev .photo-story__preview-img,
.photo-story__stage.is-anim-next .photo-story__peek-layer,
.photo-story__stage.is-anim-prev .photo-story__peek-layer {
  transform: scale(1) !important;
  transition: transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
}

/* After a slide, removing is-anim-* would otherwise run another 0.75s transition (preview
   retreats + media re-enters) — reads as a backward glitch. Snap in one frame instead. */
.photo-story__stage.is-settling .photo-story__media,
.photo-story__stage.is-settling .photo-story__preview,
.photo-story__stage.is-settling .photo-story__preview-img,
.photo-story__stage.is-settling .photo-story__peek-layer {
  transition: none !important;
}

@media (max-width: 768px) {

  .photo-story__arrow--left {
    --arrow-x: -190%;
  }

  .photo-story__arrow--right {
    --arrow-x: 190%;
  }
}


@media (max-width: 1650px) {
  /* Photo story — same scroll height / theater as video; first image matches video stage */
  .photo-story {
    --photo-gap: clamp(8px, 1.2vw, 16px);
    width: 100%;
    background: var(--cream);
    height: 240vh;
    display: flex;
    align-items: stretch;
    transition: background-color 800ms cubic-bezier(.4,0,.2,1);
  }

  .photo-story__inner {
    position: sticky;
    top: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
  }

  .photo-story__stage {
    position: relative;
    width: min(80vw, 1400px);
    aspect-ratio: 16 / 9;
    max-height: 82vh;
    overflow: visible;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 700ms cubic-bezier(.4,0,.2,1), transform 700ms cubic-bezier(.4,0,.2,1);
  }

  /* When in theater mode, the photo story zooms in: */
  .photo-story.is-stopped .photo-story__stage {
    width: 75vw !important;
    max-width: none;
    transform: scale(1.03);
  }

  .photo-story__media {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
    transition: transform 0.75s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.75s ease;
    will-change: transform, opacity;
  }

  .photo-story__layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .photo-story__layer--0 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__layer--1 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__media.photo-story__media--show-b .photo-story__layer--0 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__media.photo-story__media--show-b .photo-story__layer--1 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__preview {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translateY(-50%) translateX(var(--preview-x-hidden, var(--preview-x, 0))) scale(1);
    border: none;
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1), transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform, opacity;
    cursor: pointer;
    pointer-events: none;
  }

  .photo-story__preview--left {
    left: 0;
    right: auto;
    --preview-x: calc(-100% - var(--photo-gap));
    --preview-x-hidden: calc(-122% - var(--photo-gap));
  }

  .photo-story__preview--right {
    right: 0;
    left: auto;
    --preview-x: calc(100% + var(--photo-gap));
    --preview-x-hidden: calc(122% + var(--photo-gap));
  }

  .photo-story__preview.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .photo-story__preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 240ms cubic-bezier(.4,0,.2,1);
    will-change: transform;
  }

  .photo-story__peek-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 240ms cubic-bezier(.4,0,.2,1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .photo-story__preview--left .photo-story__peek-layer--0,
  .photo-story__preview--right .photo-story__peek-layer--0 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__preview--left .photo-story__peek-layer--1,
  .photo-story__preview--right .photo-story__peek-layer--1 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__preview--left.photo-story__peek--show-b .photo-story__peek-layer--0,
  .photo-story__preview--right.photo-story__peek--show-b .photo-story__peek-layer--0 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__preview--left.photo-story__peek--show-b .photo-story__peek-layer--1,
  .photo-story__preview--right.photo-story__peek--show-b .photo-story__peek-layer--1 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(var(--arrow-x, 0));
    width: clamp(42px, 4vw, 56px);
    height: clamp(42px, 4vw, 56px);
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
  }

  .photo-story__arrow svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
  }

  .photo-story__arrow--left {
    left: 0;
    right: auto;
    --arrow-x: -180%;
  }

  .photo-story__arrow--right {
    right: 0;
    left: auto;
    --arrow-x: 180%;
  }

  .photo-story__arrow:hover {
    transform: translateY(-50%) translateX(var(--arrow-x, 0)) scale(1.04);
  }

  .photo-story__arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
}


@media (max-width: 768px) {
  /* Photo story — height at about 130vh, photos centered and highlighted */
  .photo-story {
    --photo-gap: clamp(8px, 1.2vw, 16px);
    width: 100%;
    background: var(--cream);
    height: 130vh; /* Extended section height */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center;
    transition: background-color 800ms cubic-bezier(.4,0,.2,1);
  }

  .photo-story__inner {
    position: sticky;
    top: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    height: 100vh; /* Ensures central photo block is always viewport height */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
  }

  .photo-story__stage {
    position: relative;
    width: min(80vw, 1400px);
    aspect-ratio: 16 / 9;
    max-height: 80vh; /* The active photo occupies up to 80% of the viewport height */
    overflow: visible;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 700ms cubic-bezier(.4,0,.2,1), transform 700ms cubic-bezier(.4,0,.2,1);
  }

  /* When in theater mode, the photo story zooms in: */
  .photo-story.is-stopped .photo-story__stage {
    width: 75vw !important;
    max-width: none;
    max-height: 90vh; /* Allow highlighted photo to grow in theater mode */
    transform: scale(1.03);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .photo-story__media {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
    transition: transform 0.75s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.75s ease;
    will-change: transform, opacity;
  }

  .photo-story__layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .photo-story__layer--0 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__layer--1 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__media.photo-story__media--show-b .photo-story__layer--0 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__media.photo-story__media--show-b .photo-story__layer--1 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__preview {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translateY(-50%) translateX(var(--preview-x-hidden, var(--preview-x, 0))) scale(1);
    border: none;
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1), transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform, opacity;
    cursor: pointer;
    pointer-events: none;
  }

  .photo-story__preview--left {
    left: 0;
    right: auto;
    --preview-x: calc(-100% - var(--photo-gap));
    --preview-x-hidden: calc(-122% - var(--photo-gap));
  }

  .photo-story__preview--right {
    right: 0;
    left: auto;
    --preview-x: calc(100% + var(--photo-gap));
    --preview-x-hidden: calc(122% + var(--photo-gap));
  }

  .photo-story__preview.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .photo-story__preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 240ms cubic-bezier(.4,0,.2,1);
    will-change: transform;
  }

  .photo-story__peek-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 240ms cubic-bezier(.4,0,.2,1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .photo-story__preview--left .photo-story__peek-layer--0,
  .photo-story__preview--right .photo-story__peek-layer--0 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__preview--left .photo-story__peek-layer--1,
  .photo-story__preview--right .photo-story__peek-layer--1 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__preview--left.photo-story__peek--show-b .photo-story__peek-layer--0,
  .photo-story__preview--right.photo-story__peek--show-b .photo-story__peek-layer--0 {
    z-index: 0;
    opacity: 0;
  }

  .photo-story__preview--left.photo-story__peek--show-b .photo-story__peek-layer--1,
  .photo-story__preview--right.photo-story__peek--show-b .photo-story__peek-layer--1 {
    z-index: 1;
    opacity: 1;
  }

  .photo-story__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(var(--arrow-x, 0));
    width: clamp(42px, 4vw, 56px);
    height: clamp(42px, 4vw, 56px);
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
    /* Default: arrows are on the edge of the .photo-story__stage; moved up in theater mode below */
  }

  .photo-story__arrow svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
  }

  .photo-story__arrow--left {
    left: 0;
    right: auto;
    --arrow-x: -180%;
  }

  .photo-story__arrow--right {
    right: 0;
    left: auto;
    --arrow-x: 180%;
  }

  /* Make the arrows display slightly farther from the photo in theater mode */
  .photo-story.is-stopped .photo-story__arrow--left {
    left: -36px; /* slightly farther than previous closer value */
    --arrow-x: 0;
  }
  .photo-story.is-stopped .photo-story__arrow--right {
    right: -36px; /* slightly farther than previous closer value */
    --arrow-x: 0;
  }
  /* fine-tune with media queries for small screens if desired */

  .photo-story__arrow:hover {
    transform: translateY(-50%) translateX(var(--arrow-x, 0)) scale(1.04);
  }

  .photo-story__arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
}


/* ── Photo story caption ─────────────────────────────────────── */

.photo-story__inner {
  flex-direction: column;
  gap: 1rem;
}

.photo-story__caption {
  position: relative;
  z-index: 6;
  max-width: min(80vw, 1400px);
  width: 100%;
  text-align: center;
  min-height: 2.75em;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.photo-story__caption-text {
  margin: 0;
  padding: 0 0.5rem;
  font-family: 'Proza Libre', sans-serif;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 400;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.35s ease;
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 680px;
}

/* Visible only while in theater mode */
.photo-story.is-stopped .photo-story__caption-text {
  opacity: 1;
}

.photo-story:not(.is-stopped) .photo-story__caption-text {
  opacity: 0;
  transition: none;
}

@media (max-width: 768px) {
  .photo-story__caption {
    max-width: 80vw;
    min-height: 3em;
  }

  .photo-story__caption-text {
    font-size: clamp(11px, 3vw, 14px);
  }
}

.photo-story__arrow.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  cursor: default !important;
}

.photo-story__preview.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}