.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-modal);
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 65.5%;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-close {
  position: fixed;
  top: var(--spacing-60);
  right: var(--spacing-60);
  width: var(--spacing-60);
  height: var(--spacing-60);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  z-index: calc(var(--z-index-modal) + 1);
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-close svg {
  width: 100%;
  height: 100%;
  color: var(--color-red);
}

.modal-video-wrapper {
  width: 100%;
  position: relative;
  background-color: var(--color-black);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.modal-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1023px) {
  .modal-content {
    width: 90%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
