/* Story reel (wide screens, motion on): the cards slide sideways while the page scrolls.
   Index numbers and the peek lens apply wherever reel.js runs. */
.story-card { position: relative; }
.story-card__no {
  position: absolute;
  top: -0.42em;
  left: -0.08em;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  pointer-events: none;
}
.story-card__peek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(0 at 50% 50%);
  pointer-events: none;
}

#stories.has-reel {
  display: flex;
  height: calc(100svh - var(--masthead-h));
  padding-block: clamp(1.5rem, 5vh, 3.5rem);
  overflow: hidden;
}
#stories.has-reel > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* the track overflows; it must not widen the column */
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 0;
}
#stories.has-reel .section__head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  max-width: none;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
#stories.has-reel .section__head .eyebrow { grid-column: 1 / -1; }
#stories.has-reel .story-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: clamp(2.5rem, 6vw, 7rem);
  width: max-content;
  min-height: 0;
  padding-top: 3rem;
  will-change: transform;
}
#stories.has-reel .story-card { flex: none; margin: 0; }
#stories.has-reel .story-card__open { width: auto; }
#stories.has-reel .story-card__media {
  width: auto;
  height: min(54vh, 600px);
  aspect-ratio: var(--ar, 3 / 2);
}
#stories.has-reel .story-card:nth-child(even) { align-self: flex-start; }
#stories.has-reel .story-card:nth-child(even) .story-card__media { height: min(42vh, 470px); }

.reel-count {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  font-variant-numeric: tabular-nums;
}
.reel-count__now { color: var(--ink); }
.reel-count__bar { display: block; width: 120px; height: 1px; background: var(--rule); }
.reel-count__bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
