/* The motion picture occupies the very aperture that revealed the painting. */
.gallery-space-film {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:right bottom; opacity:0;
  transition:opacity .85s cubic-bezier(.35,.04,.23,1);
}
.space-revealed .gallery-space-film { opacity:1; }
.gallery-stage.space-revealed .gallery-detail::after {
  opacity:.28; pointer-events:none;
  background:linear-gradient(0deg,#21160e 0%,transparent 29%);
}
.gallery-stage.space-revealed .gallery-copy {
  opacity:0; pointer-events:none;
}
.gallery-stage .gallery-copy { transition:opacity .55s ease; }
.gallery-film-toggle {
  position:absolute; z-index:5; right:max(6vw,22px); bottom:max(7%,32px);
  min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:8px 18px; border:1px solid #eadbc58c; border-radius:999px;
  color:#fff3dd; background:#241a17cc; cursor:pointer; font:500 14px/1.3 var(--ui);
}
.gallery-film-toggle[hidden] { display:none; }
.gallery-film-toggle:focus-visible { outline:2px solid #fff2d9; outline-offset:4px; }
.gallery-film-symbol {
  display:block; width:0; height:0; border:5px solid transparent;
  border-right:0; border-left:8px solid currentColor;
}
.gallery-film-toggle.is-playing .gallery-film-symbol {
  width:9px; height:11px; border:0; border-inline:3px solid currentColor;
}
@media (max-width:699px) {
  .gallery-film-toggle { right:auto; left:50%; transform:translateX(-50%); bottom:7%; }
  .opening .film,.opening .film-back img { object-position:65% 50%; }
}
@media (prefers-reduced-motion:reduce) {
  .gallery-space-film,.gallery-stage .gallery-copy { transition:none; }
  .gallery .gallery-copy { bottom:20%; }
}
