body.modal-open {
  overflow: hidden;
}

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

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 8, 20, .84);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.video-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 18px;
}

.video-modal__header h2 {
  margin: 3px 0 2px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.video-modal__header p {
  margin: 0;
}

.video-modal__header #presentation-video-description {
  color: #61708a;
  font-size: .88rem;
}

.video-modal__close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #dfe5f0;
  border-radius: 50%;
  background: #fff;
  color: #0b1730;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: #eef5ff;
  border-color: #6c8fc5;
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050914;
}

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

.video-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 26px 24px;
}

.video-modal__footer p {
  max-width: 600px;
  margin: 0;
}

.video-modal__footer .button {
  flex: 0 0 auto;
}

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

  .video-modal__dialog {
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .video-modal__header,
  .video-modal__footer {
    padding: 18px;
  }

  .video-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .video-modal__footer .button {
    width: 100%;
  }
}
