/* ==========================================================================
   Videovenster: de productvideo over de pagina heen (zie component-videodialog.js).
   Het is een <dialog>, dus de browser houdt de focus binnen het venster en
   sluit het met Escape.
   ========================================================================== */

.videodialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(1.6rem, 4vw, 4.8rem);
  border: 0;
  background: transparent;
}

.videodialog[open] {
  display: grid;
  place-items: center;
}

.videodialog::backdrop {
  background: color-mix(in oklch, var(--color-night) 92%, transparent);
}

.videodialog__inner {
  display: grid;
  justify-items: end;
  gap: 1.6rem;
  width: min(110rem, 100%);
}

.videodialog__close {
  --button-height: 4rem;
  --button-padding: 1.8rem;
  --button-font-size: var(--font-size-small);
}

.videodialog__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-night-alt);
}

.videodialog__player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
