/* Film slots (shared/film.js): the poster first, the looping video over it
   once it is playing, a pause button on loops over 5 s. */
.film { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: clip; border-radius: 14px; background: color-mix(in srgb, currentColor 8%, transparent); }
.film__poster, .film__poster img, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film__video { opacity: 0; transition: opacity .4s; }
.film.is-playing .film__video { opacity: 1; }
.film__toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.film__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.film__toggle .film__play, .film__toggle[aria-pressed="true"] .film__pause { display: none; }
.film__toggle[aria-pressed="true"] .film__play { display: inline; }
.film__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .film__video { transition: none; } }
/* In a brewing chapter it takes the photo's place, under the words. */
.ch__film { margin-top: 18px; max-width: 560px; }
