.remodal-wrapper {
  overflow: hidden;
  z-index: 100000;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
}

.remodal {
  max-width: 1280px;
  width: 100%;
  padding: 0;
  max-height: 100vh;
  overflow: hidden;
  padding: 20px;
  background: transparent;
}
.remodal:has(.modal_yt) {
  padding: 0;
  background: #000;
  overflow: visible;
  max-width: 1280px;
  height: auto;
  aspect-ratio: 16/9;
}
.remodal:has(.modal_yt) .modal_yt {
  background: #000;
}
.remodal:has(.modal_yt) .modal_window_close {
  top: 0px;
  right: -55px;
}
.remodal:has(.modal_yt) .modal_window_close span {
  background: #fff;
}
@media screen and (max-width: 1400px) {
  .remodal:has(.modal_yt) {
    max-width: 100%;
  }
  .remodal:has(.modal_yt) .modal_window_close {
    top: -55px;
    right: 0;
  }
}
@media screen and (max-width: 1400px) and (min-aspect-ratio: 16/9) {
  .remodal:has(.modal_yt) {
    height: 100vw;
    width: auto;
    aspect-ratio: 16/9;
  }
  .remodal:has(.modal_yt) .modal_window_close {
    border-radius: 1px;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    right: 0;
  }
}
.remodal:has(.modal_window) .modal_window_close {
  top: 35px;
  right: 35px;
}

.modal_window {
  height: 100%;
  max-height: 90vh;
  overflow: auto;
  width: 100%;
}
@media screen and (min-width: 769px) {
  .modal_window {
    min-width: 1097px;
  }
}

.modal_yt iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.modal_window_close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
/*# sourceMappingURL=modal.css.map */