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

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

.tutorial-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 37, 0.8);
}

.tutorial-video-modal__dialog {
  position: relative;
  width: min(100%, 960px);
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.tutorial-video-modal__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.tutorial-video-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tutorial-video-modal__close {
  position: absolute;
  z-index: 1;
  top: -16px;
  right: -16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #263b4b;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.tutorial-video-modal__close:hover,
.tutorial-video-modal__close:focus-visible {
  background: #1ed760;
  color: #263b4b;
}

.tutorial-video-modal-open {
  overflow: hidden;
}

.tutorial-video-modal__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .tutorial-video-modal {
    padding: 16px;
  }

  .tutorial-video-modal__dialog {
    padding: 8px;
  }

  .tutorial-video-modal__close {
    top: -12px;
    right: -4px;
  }
}
