/* ==========================================================================
   Our Story
   ========================================================================== */

.story__glow {
  --glow-size: 28.25rem;                 /* 452 */
  top: 0.8125rem;
  left: -8.4375rem;
}

.story__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.story__statement {
  font-family: var(--font-display);
  font-size: var(--text-statement);
  font-weight: var(--weight-medium);
  line-height: var(--leading-statement);
  color: var(--color-white);
}

.story__statement > p + p {
  margin-top: 1.5em;
}

.story__muted {
  color: var(--color-mist-400);
}

/* ---------- Photo strip (auto-scrolls right → left) ---------- */

.story__gallery {
  --photo-height: 30.8125rem;            /* 493 */
  --photo-gap: 1.1735rem;                /* 18.776 */
  --scroll-duration: 45s;

  margin-top: calc(var(--space-section) - var(--space-xl));
  overflow: hidden;
}

/* Two identical groups side by side; shifting by exactly one group (-50%) loops seamlessly */
.story__track {
  display: flex;
  width: max-content;
  animation: story-scroll var(--scroll-duration) linear infinite;
}

@keyframes story-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.story__group {
  display: flex;
  gap: var(--photo-gap);
  padding-right: var(--photo-gap);       /* gap between the end of one group and the next */
}

.story__photo {
  flex-shrink: 0;
  height: var(--photo-height);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-night-700);
}

.story__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Frame proportions from the design (width / height of each slot) */
.story__photo--expo    { aspect-ratio: 696.316 / 493; }
.story__photo--demo    { aspect-ratio: 386.246 / 493; }
.story__photo--quality { aspect-ratio: 483.344 / 493.253; }
.story__photo--meet    { aspect-ratio: 430.235 / 493; }

@media (max-width: 63.99rem) {
  .story__gallery {
    --photo-height: 22rem;
  }
}

@media (max-width: 47.99rem) {
  .story__gallery {
    --photo-height: 16rem;
    --photo-gap: 0.75rem;
    --scroll-duration: 35s;
  }
}

/* No auto-scroll for people who prefer reduced motion: show one set, swipe to browse */
@media (prefers-reduced-motion: reduce) {
  .story__gallery {
    overflow-x: auto;
  }

  .story__track {
    animation: none;
  }

  .story__group[aria-hidden="true"] {
    display: none;
  }
}
