.remodal-wrapper {
  overflow: hidden;
  z-index: 100000;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
}
.remodal-wrapper::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: auto;
  aspect-ratio: 1/1;
  background: rgba(0, 0, 0, 0) url(./modal_close.svg) center center/contain no-repeat;
  cursor: pointer;
  z-index: 20;
}
@media screen and (max-width: 768px), screen and (max-height: 768px) {
  .remodal-wrapper::before {
    top: 0px;
    right: 0px;
    width: 50px;
    background-size: 30px 30px;
  }
}

.remodal {
  max-width: 1280px;
  width: 100%;
  padding: 0;
  max-height: 100vh;
  overflow: hidden;
  padding: 90px;
  background: transparent;
}
@media screen and (max-width: 768px), screen and (max-height: 768px) {
  .remodal {
    padding: 50px 20px 20px;
  }
}
.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 {
  display: none;
}
@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 {
    overflow-x: clip;
    min-width: 1097px;
  }
}

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

.modal_window_close {
  display: none;
}
/*# sourceMappingURL=modal.css.map */