@charset "utf-8";

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #333;
  opacity: .6;
  display: none;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.youtube-16-9 {
  width: 640px;
  height: 360px;
}
.modal {
  width: 760px;
  height: 460px;
  border: 1px solid #333;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  display: none;
  z-index: 30;
}

@media screen and ( max-width:770px){
  .youtube-16-9 {
    width: 540px;
    height: 305px;
    }
  .modal {
    width: 600px;
    height: 400px;
    border: 1px solid #000;
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: #333;*/
    display: none;
    z-index: 30;
  }
}
@media screen and ( max-width:420px){
  .youtube-16-9 {
    width: 355px;
    height: 200px;
  }
  .modal {
    width: 365px;
    height: 280px;
    border: 1px solid #000;
    position: fixed;
    top: 40%;
    left: 50%;
    display: none;
    z-index: 30;
  }
}
.modal p {
  display: block;
  margin-bottom: 0 !important;
  position: absolute;
/*  width: 760px;
  height: 340px;*/
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 14px;
}

.modal-close__wrap {
  position: absolute;
  top: 10px;
  right: 15px;
  /*right: 40px;
  top: 20px;*/
}
@media screen and ( max-width:770px){
  .modal-close__wrap {
  top: 10px;
  right: 10px;
  }
}
@media screen and ( max-width:420px){
  .modal-close__wrap {
  top: 5px;
  right: 5px;
  }
}
.modal-close {
  background: transparent;
  border-color: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 28px;
  display: block;
  height: 28px;
}

.modal-close span {
  position: relative;
  width: 100%;
  height: 1px;
  background: black;
  display: block;
}

.modal-close span:nth-child(1) {
  transform: rotate(45deg);
}

.modal-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.modal-open {
  cursor: pointer;
  background: orange;
  border: orange;
  color: #fff;
  padding: 10px 12px;
}


.overlay.open {
  display: block;
}

.modal.open {
  display: block;
}
