.video-dialog {
  box-sizing: border-box;
  width: min(45rem, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #152136;
  box-shadow: 0 24px 70px rgb(2 12 27 / 37%);
}

.video-dialog::backdrop {
  background: rgb(5 17 36 / 76%);
}

html.video-dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.video-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 18px;
}

.video-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}

.video-dialog__close {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf1f6;
  color: #36465f;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.video-dialog__close:focus-visible {
  outline: 2px solid #246cf3;
  outline-offset: 2px;
}

.video-dialog__player {
  position: relative;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-dialog__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog__file-note {
  margin: 0;
  padding: 12px 18px;
  color: #53647e;
  font-size: .875rem;
  line-height: 1.45;
}
