/* Native vertical placement; only the inner material track is transformed. */
.cinematic-preview .cinematic-rail-span {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-anchor: none;
}
.cinematic-preview .cinematic-rail-span > .material-pin[data-material-mode="pinned"] {
  position: sticky;
  /* Browser chrome does not change svh. A tall heading may leave naturally
     while the original runway and complete cards remain in the viewport. */
  top: min(var(--cinematic-rail-top, 0px), calc(100svh - var(--cinematic-pin-height, 0px) - 12px));
  transform: none !important;
  will-change: auto;
}
/* Reading rows project items across their actual overflow. Per-card snap
   can pull those positions back to a different item. */
.materials-ready .cinematic-preview .is-height-reading .build-viewport,
.materials-ready .cinematic-preview #timeline .is-height-reading .material-viewport {
  scroll-snap-type: none;
}
/* Work no longer needs the extra tail used by the shared reading layout. */
.materials-ready .cinematic-preview .is-height-reading #build-track.material-track::after {
  content: none;
}
@media print {
  .cinematic-preview .cinematic-rail-span {
    height: auto !important;
    display: block !important;
  }
  .cinematic-preview .cinematic-rail-span > .material-pin {
    position: static !important;
    top: auto !important;
  }
}
