#galaModal .gala-video-ratio:has(#galaVideo) {
  container-type: inline-size;
}

#galaModal #galaVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#galaModal #galaVideo[hidden],
#galaModal .gala-cover-play[hidden] {
  display: none;
}

#galaVideo::cue {
  background-color: rgba(9, 11, 16, .86);
  color: white;
  font: 600 clamp(.8125rem, 2.55vw, 1.45rem)/1.3 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-shadow: 0 1px 2px #000;
}

@supports (width: 1cqw) {
  #galaVideo::cue {
    font-size: clamp(.8125rem, 2.65cqw, 1.45rem);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  #galaModal .gala-video-player:has(#galaVideo) {
    max-width: calc((100svh - 116px) * 16 / 9);
    margin-inline: auto !important;
  }
}
