/* The film is a separate backdrop. The two gallery cards sit above it. */
#work{
 position:relative;
 isolation:isolate;
 overflow:hidden;
}
#work .work-film-backdrop{
 position:absolute;
 inset:0;
 z-index:-1;
 pointer-events:none;
 overflow:hidden;
}
#work .work-film-backdrop > :is(video,.work-film-still){
 position:absolute;
 display:block;
 width:clamp(510px,58vw,960px);
 height:auto;
 aspect-ratio:582 / 360;
 max-width:none;
 top:clamp(112px,10vw,147px);
 left:65%;
 transform:translate(-50%,-50%);
 opacity:.50;
 /* A soft, neutral veil takes the bite out of dirt and sharp flicker. */
 filter:saturate(.43) contrast(.80) brightness(1.035);
 -webkit-mask-image:radial-gradient(ellipse 50% 52%,#000 22%,#000e 49%,#0006 75%,transparent 100%);
 mask-image:radial-gradient(ellipse 50% 52%,#000 22%,#000e 49%,#0006 75%,transparent 100%);
}
#work .work-film-backdrop .work-film-still{display:none}
#work .work-film-backdrop::after{
 content:"";
 position:absolute;
 inset:0;
 background:linear-gradient(90deg,#14191b80 0%,#14191b23 51%,transparent 76%),
            linear-gradient(0deg,#14191b 0%,#14191b95 20%,transparent 64%);
}
@media(max-width:680px){
 #work .work-film-backdrop > :is(video,.work-film-still){
  top:clamp(98px,30vw,139px);
  left:66%;
  width:max(480px,99vw);
 }
 #work .work-film-backdrop::after{
  background:linear-gradient(90deg,#14191b54 0%,transparent 78%),
             linear-gradient(0deg,#14191b 0%,#14191b7a 22%,transparent 61%);
 }
}
@media(prefers-reduced-motion:reduce){
 #work .work-film-backdrop > video{display:none}
 #work .work-film-backdrop .work-film-still{display:block}
}
@media(forced-colors:active){
 #work .work-film-backdrop{display:none}
}
