/* Модальное окно с видео */

dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #050607;
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-close {
  width: 38px;
  height: 38px;
  align-self: start;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.72);
  color: var(--accent);
}

.dialog-body {
  display: grid;
  min-height: 100dvh;
  justify-items: center;
  align-items: start;
  padding: 28px;
}

.dialog-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(160px, 220px) auto 38px;
  align-items: start;
  justify-content: center;
  gap: 18px;
}

.dialog-title {
  display: block;
  justify-self: end;
  padding-top: 2px;
  font-size: 16px;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.dialog-body .video-shell {
  width: min(calc(100vw - 430px), calc((100dvh - 56px) * 9 / 16));
  max-height: calc(100dvh - 56px);
  background: transparent;
}

.dialog-body .video-shell::before {
  display: none;
  background: none;
  content: none;
}
