/* ─────────────────────────────────────────────────────────────────────────────
   Loop layers — segment boards and the location agenda screens.

   Each slide that is not the screen's own content is a full-stage layer; the
   next one fades in over the last, which is then removed. Video and image
   layers are opaque and full-bleed. Each screen sets the layers' z-index
   (segment.css, agenda.css): a segment board draws its boards in them too, an
   agenda screen only its media, above the list and below the overlays.
   ───────────────────────────────────────────────────────────────────────────── */

.loop-layers {
  --loop-fade: 1000ms; /* FADE_MS in js/screens/segment.js and agenda-loop.js */
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loop-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--loop-fade) var(--ease);
}

.loop-layer[data-shown='true'] {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .loop-layer { transition-duration: 1ms; }
}

:root[data-motion='off'] .loop-layer {
  transition-duration: 1ms;
}

.loop-media {
  background: #000;
}

.loop-media__item {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
