.video-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #fff;
}
.video-lightbox[open] { display: grid; place-items: center; }
.video-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.video-lightbox__stage {
  width: min(960px, calc(100vw - 40px), calc((100dvh - 40px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  --plyr-color-main: #00b3ff;
}
.video-lightbox__stage > .plyr { width: 100%; height: 100%; }
.video-lightbox__stage video { width: 100%; height: 100%; object-fit: contain; }
.video-lightbox .video-lightbox__close {
  position: fixed;
  top: 16px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 3px;
  background: rgb(0 0 0 / 50%);
  color: #fff;
  cursor: pointer;
}
.video-lightbox__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.video-lightbox__close:focus-visible { outline: 2px solid #00b3ff; }
body:has(.video-lightbox[open]) { overflow: hidden; }
.wp-block-image a[data-video][href$=".mp4"] { position: relative; display: block; }
.wp-block-image a[data-video][href$=".mp4"] img { width: 100%; }
.wp-block-image a[data-video][href$=".mp4"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: url('../assets/moelis-experience/images/12.svg') center / contain no-repeat;
}
