.video-embed.video-lightbox {
  position: relative;
  width: 100%;
  isolation: isolate;
  background: #222;
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
}

.video-embed.video-lightbox .video-preview,
[data-click-previewimage] .video-embed.video-lightbox .video-preview {
  position: relative;
  margin: 0;
  opacity: 1;
  pointer-events: none;
}

.video-embed.video-lightbox iframe {
  visibility: hidden;
}

.video-embed.video-lightbox iframe.video-lightbox-player-preview {
  visibility: visible;
  pointer-events: none;
}

.video-embed.video-lightbox:has(.video-preview) > iframe,
.video-embed.video-lightbox:has(.video-preview) > video {
  display: none;
}

.video-embed.video-lightbox > .mediaconsent.loadok {
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
}

.video-embed.video-lightbox .videoiframelink[data-video-lightbox] {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}

.video-embed.video-lightbox .videoiframelink[data-video-lightbox]::before {
  content: "";
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #222;
}

.video-embed.video-lightbox .videoiframelink[data-video-lightbox] > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.video-embed.video-lightbox .videoiframelink[data-video-lightbox]::after {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
  clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}

.video-embed.video-lightbox .videoiframelink[data-video-lightbox]:hover::before {
  background: #444;
}

.video-embed.video-lightbox-has-player-preview .videoiframelink[data-video-lightbox]::before,
.video-embed.video-lightbox-has-player-preview .videoiframelink[data-video-lightbox]::after {
  display: none;
}

.video-embed.video-lightbox .videoiframelink[data-video-lightbox]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.video-fancybox .f-html {
  padding: 0;
  background: #000;
}

.video-embed-html.video-lightbox > iframe {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
  border: 0;
}

/* The consent script sets an inline minimum height for the blocked iframe. */
.mediaconsent.loadok:has(> .video-embed-html.video-lightbox) {
  min-height: 0 !important;
  height: auto;
}
