html.mj-video-open, html.mj-video-open body {
  overflow: hidden;
}

dialog.mj-video-dialog {
  box-sizing: border-box;
  width: min(1100px, 92vw);
  max-width: 1100px;
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: auto;
  background: #090909;
  color: #fff;
  box-shadow: 0 16px 70px #000;
  font: inherit;
}

dialog.mj-video-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
}

.mj-video-dialog > iframe {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 60px);
  max-height: calc(90dvh - 60px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.mj-video-dialog .mj-video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.4;
}

.mj-video-dialog .mj-video-controls a,
.mj-video-dialog .mj-video-controls button {
  color: #fff;
  font: inherit;
  text-decoration: underline;
}

.mj-video-dialog .mj-video-controls button {
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mj-video-dialog .mj-video-controls :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
