/* Hero films fade into the surrounding page, including their held title frames. */
.dx-design .dx-media.hero-video-panel{
  isolation:auto;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden;
  --film-mask:linear-gradient(90deg,transparent 0%,#000 9%,#000 91%,transparent 100%),linear-gradient(0deg,transparent 0%,#000 14%,#000 86%,transparent 100%);
  -webkit-mask-image:var(--film-mask);
  mask-image:var(--film-mask);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
}
.dx-design .dx-media.hero-video-panel>img,
.dx-design .dx-media.hero-video-panel>video.hero-video{
  background:transparent!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center;
  border:0;
  border-radius:0;
  box-shadow:none;
}
/* Remove decorative card surfaces only when they contain a hero film. */
.dx-design :is(.b2-hero-film,.b2-uploaded-media,.valentine-photo,.barber-bottom>div,.sun-location>div,.hh-home-media,.dmf-logo,.queen-seal,.merryn-logo-cloud,.maid-hero-film):has(.hero-video-panel){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.dx-design .valentine-photo:has(.hero-video-panel){transform:none;padding:0;min-height:0;align-self:center;aspect-ratio:16/10}
.dx-design .valentine-photo .hero-video-panel{min-height:0}
.dx-design .valentine-photo:has(.hero-video-panel) :is(.valentine-heart,b){display:none}
.dx-design .barber-bottom:has(.hero-video-panel){grid-template-columns:1fr 1fr}
.dx-design .barber-bottom>div:has(.hero-video-panel){grid-column:1/-1;width:100%;max-width:900px;height:auto;aspect-ratio:16/9;margin:0 auto}
.dx-design .sun-location>div:has(.hero-video-panel){width:min(500px,100%);height:auto;aspect-ratio:16/9}
.dx-design .b2-hero-film:has(.hero-video-panel){overflow:visible}
/* Let the walking film share the hero's existing colour field without an inset card. */
.dx-design .walk-route:has(.hero-video-panel){padding:0;background:transparent}
.dx-design .walk-front:has(.hero-video-panel){background:linear-gradient(100deg,var(--soft),var(--paper) 65%)}
.dx-design .hh-home-media:has(.hero-video-panel){background:linear-gradient(135deg,var(--soft),var(--paper))!important}
@media(max-width:800px){
 .dx-design .valentine-photo:has(.hero-video-panel){width:100%;max-width:none;min-height:0}
 .dx-design .barber-bottom:has(.hero-video-panel){grid-template-columns:1fr}
 .dx-design .barber-bottom>div:has(.hero-video-panel){width:100%;max-width:none}
}
