.video-trigger:focus-visible {
  outline: 3px solid #164c52;
  outline-offset: 5px;
}

html:has(.video-dialog[open]) { overflow: hidden; }

.video-dialog {
  width: min(1100px, calc(100vw - 32px), calc((100dvh - 96px) * 16 / 9));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #dcdad0;
  border-radius: 12px;
  background: #000;
  color: #16292c;
  box-shadow: 0 24px 80px rgb(0 0 0 / 35%);
}

/* Exact Windows ModalVeilBrush: XAML ARGB #22164C52, CSS RGBA #164C5222. */
.video-dialog::backdrop { background: #164c5222; }

.video-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #f7f6f1;
  font-size: 14px;
}

.video-dialog-toolbar a { color: #164c52; text-decoration: underline; }
.video-close {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.video-close:hover { background: #e4e2d8; }
.video-close span { margin-left: 8px; font-size: 22px; vertical-align: middle; }
.video-close:focus-visible, .video-dialog-toolbar a:focus-visible {
  outline: 2px solid #164c52;
  outline-offset: 2px;
}
.video-player { aspect-ratio: 16 / 9; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
