.modal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
 }

 .modal-bg {
    position: absolute;
    background-color: #000;
    opacity: 0.8;
    width: 100%;
    height: 100%;
  }
 .modal-container {
    position: relative;
    border: 1px solid black;
   
   width: 60%;
   height: 58%;
  }

@media (max-width: 568px) {
  .modal-container {
    width: calc(100% - 30px);
    
  }
}

@media (max-width: 1024px) {
  .modal-container {
    height: 21%;
  }
}

@media (max-width: 1440px) {
  .modal-container {
     height: 60%;
  }
}

.modal-container .video-popup-iframe-container {
      width: 100%;
      height: 100%;
}
.modal-container .modal-youtube-iframe {
  width: 100%;
  height: 100%;
}

  .modal-close {
    outline: none;
    appearance: none;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    cursor: pointer;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 998;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    text-align: center;
    font-size: 12px;
    background-color: #000;
    line-height: 25px;
    color: #fff;
        display: flex;
    justify-content: center;
  }

.modal-close > span {
  display: inline-block;
}