/* Ordinary vertical reading, with brief photographic holds. No scroll interception. */
#story.story-scroll-section { padding-bottom: 0; }
.story-scroll {
  margin: clamp(2.5rem, 5vw, 5rem) calc(-1 * clamp(1.25rem, 7vw, 8rem)) 0;
  background: #141310;
  color: var(--paper);
}
.story-passage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  isolation: isolate;
}
.story-passage-media {
  position: sticky;
  top: 12svh;
  margin: 0;
  align-self: start;
  aspect-ratio: 1.45;
}
.story-passage-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.story-film-media { background: #141310; }
.story-film-media .story-film-fallback { position: absolute; inset: 0; }
.story-film {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-film-control {
  position: absolute;
  z-index: 4;
  right: 1rem;
  bottom: .75rem;
  min-width: 3.5rem;
  min-height: 2.75rem;
  border: 0;
  padding: .5rem;
  color: var(--paper);
  background: #141310cc;
  font: 400 .875rem/1.2 var(--sans);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.story-film-control:focus-visible { outline: 2px solid #ee967e; outline-offset: 2px; }
.story-film-unavailable .story-film { visibility: hidden; }
.story-film-ending {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  pointer-events: none;
}
.story-film-has-ended .story-film-ending { opacity: 1; }
@media (min-width: 801px) {
  /* Keep the attributed archive captions inside the complete documentary frame. */
  .story-passage-trial .story-film,
  .story-passage-trial .story-film-fallback,
  .story-passage-trial .story-film-ending { object-fit: contain; }
}
.story-passage-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(3rem, 5vw, 6rem) clamp(2rem, 5vw, 6rem);
}
.story-scroll-date {
  margin: 0 0 1rem;
  color: #ee967e;
  font-size: .875rem;
  line-height: 1.4;
}
.story-scroll-beat h3 {
  margin: 0 0 1.35rem;
  font: 400 clamp(2.5rem, 3.8vw, 4rem)/1.01 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.story-scroll-beat > p:not(.story-scroll-date) {
  max-width: 44ch;
  margin: 0;
  color: #e0dbd1;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.story-scroll-beat > p:not(.story-scroll-date) + p { margin-top: 1.15rem; }
.story-scroll-beat + .story-scroll-beat { margin-top: 3.25rem; }
.story-scroll-inset { margin: 3.25rem 0 2.5rem; }
.story-scroll-inset img { width: 100%; height: auto; }
.story-scroll-coda {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 14vw, 15rem);
  background: var(--paper);
  color: var(--ink);
}
.story-scroll-coda p {
  max-width: 21ch;
  margin: 0;
  font: 400 clamp(2.3rem, 4.5vw, 5rem)/1.08 var(--serif);
  letter-spacing: -.035em;
}
.story-scroll-coda p + p { margin-top: .6em; }
.story-scroll-coda span { color: var(--red-dark); white-space: nowrap; }

@media (max-width: 800px) {
  /* One shared interval around the ribbons on the phone. */
  #legal-change { --ribbon-space: 3.5rem; margin-block: 0; }
  #legal-change .appeal-facts { padding-block: var(--ribbon-space); }
  #legal-change + .film-section { padding-block: var(--ribbon-space, 3.5rem); }
  #legal-change .appeal-motion-copy { padding-bottom: 2.5rem; }
  #legal-change .appeal-motion-intro { margin-bottom: 0; }
  .story-passage {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .story-passage-media {
    grid-area: 1 / 1;
    top: 0;
    aspect-ratio: auto;
    height: calc(78vw + 2rem);
  }
  .story-passage-media::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(to bottom, #141310 0, transparent 12%, transparent 53%, #14131080 76%, #141310 100%);
    pointer-events: none;
  }
  .story-passage-media img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .story-passage-past .story-passage-media img { object-position: 42% 32%; }
  .story-passage-unthinkable .story-passage-media img { object-position: 40% 40%; }
  .story-passage-trial .story-passage-media img { object-position: 47% 35%; }
  .story-passage-campaign .story-passage-media img { object-position: 50% 44%; }
  .story-film-media .story-film, .story-film-media .story-film-fallback, .story-film-media .story-film-ending {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  }
  .story-passage .story-passage-copy { margin-top: 52vw; }
  .story-film-media .story-film-ending { object-fit: cover; }
  .story-film-media .story-film-control { top: .5rem; bottom: auto; }
  .story-passage-copy {
    grid-area: 1 / 1;
    margin-top: 64vw;
    padding: 1.5rem 1.5rem 3.5rem;
    background: linear-gradient(to bottom, transparent, #141310 5rem);
  }
  .story-scroll-date { margin-bottom: .85rem; }
  .story-scroll-beat h3 {
    max-width: 13ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.35rem, 10.5vw, 3.7rem);
    line-height: 1.02;
  }
  .story-scroll-beat > p:not(.story-scroll-date) { font-size: 1.0625rem; line-height: 1.65; }
  .story-scroll-beat + .story-scroll-beat { margin-top: 3rem; }
  .story-scroll-inset { margin: 3rem -1.5rem 2.5rem; }
  .story-scroll-coda { padding: 3.5rem 1.5rem; }
  .story-scroll-coda p:first-child { font-size: clamp(1.6rem, 6.5vw, 2rem); max-width: none; }
  .story-scroll-coda p + p { margin-top: 1.5rem; max-width: 19ch; font-size: clamp(2.2rem, 9vw, 3.5rem); line-height: 1.12; }
}

@media (prefers-reduced-motion: reduce) {
  .story-passage-media { position: relative; top: auto; }
  .story-film, .story-film-control { display: none; }
}

@media print {
  .story-passage-media { position: relative; top: auto; }
  .story-scroll { background: #fff; color: #111; }
  .story-scroll-beat > p:not(.story-scroll-date) { color: #111; }
}

@media (prefers-reduced-motion: reduce) {
  .story-film-ending { opacity: 1; transition: none; }
}
@media print {
  .story-film, .story-film-control { display: none; }
}

/* Keep one photographic layer visible: masks must not reveal the poster or old frame. */
.story-film-ready .story-film-fallback { visibility: hidden; }
.story-film-unavailable .story-film-fallback { visibility: visible; }
.story-film-ending-settled .story-film, .story-film-has-ended .story-film-fallback { visibility: hidden; }
.story-film-ending { background: #141310; }
.story-passage-after .story-film-ending { object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .story-film-media:has([data-story-ending]) .story-film-fallback { visibility: hidden; }
}

/* The memories and closing photograph occupy the full media frame. */
.story-passage-home .story-film, .story-passage-home .story-film-fallback { object-fit: cover; }
.story-passage-after .story-film-ending { object-fit: cover; object-position: 50% 42%; }
@media (min-width: 801px) {
  .story-passage-home .story-passage-media, .story-passage-after .story-passage-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 800px) {
  .story-passage-past .story-passage-media::after,
  .story-passage-after .story-passage-media::after {
    background: linear-gradient(to bottom, #141310 0%, #141310fa 2%, #141310bf 5%, #14131066 9%, #14131026 14%, #14131000 22%, #14131000 53%, #14131080 76%, #141310 100%);
  }
}

.story-passage-after .story-film-ending { object-position: 50% 0%; }
.story-passage-past .story-scroll-beat h3 { font-size: clamp(1.75rem, 3vw, 3rem); max-width: none; text-wrap: initial; }
@media (max-width: 800px) {
 .story-passage-past .story-scroll-beat h3 { font-size: clamp(1.5rem, 7.1vw, 2.15rem); white-space: nowrap; letter-spacing: -.045em; }
}
.story-film-control, [data-appeal-control] { display: none !important; }
