.video-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 22, .78);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, calc(88svh * 1.7778));
  max-height: 88svh;
  overflow: hidden;
  border-radius: 30px;
  background: #202529;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
}

.video-modal__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #202529;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.video-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88svh;
  aspect-ratio: 16 / 9;
  background: #202529;
  object-fit: contain;
}

@media (max-width: 767px) {
  .video-modal {
      padding: 14px;
    }

  .video-modal__panel {
      width: min(94vw, calc(92svh * 1.7778));
      border-radius: 24px;
    }
}
