/* Youtube Modal-----------------------*/
.yb_btn {
  position: relative;
  cursor: pointer;
}

.yb_btn:after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 80px;
  height: 80px;
  background: url(/assets/img/common/icon_movie.png) no-repeat;
  background-size: 80px 80px;
  -webkit-transition: background-image 0.3s ease-out;
  transition: background-image 0.3s ease-out;
}

@media (max-width: 750px) {
  .yb_btn:after {
    width: 70px;
    height: 70px;
    background-size: 70px 70px;
  }
}

.yb_btn:before {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 25px;
  height: 25px;
  background: url(/assets/img/common/icon_modal.png) no-repeat;
  background-size: 25px 25px;
  background-color: #2976a7;
  -webkit-transition: background-color 0.3s ease-out;
  transition: background-color 0.3s ease-out;
}

@media (max-width: 750px) {
  .yb_btn:before {
    right: 10px;
    bottom: 10px;
  }
}

@media (min-width: 751px) {
  .yb_btn:hover:after {
    background-image: url(/assets/img/common/icon_movie_on.png);
  }
  .yb_btn:hover:before {
    background-color: #0f5380;
  }
}

.m__yb__close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: url(/assets/img/common/btn_yb_close.png) no-repeat;
  background-color: #2976a7;
  height: 40px;
  width: 40px;
  cursor: pointer;
}

@media (min-width: 751px) {
  .m__yb__close:hover {
    background-color: #0f5380;
  }
}

.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal__container {
  padding: 0 20px;
  max-width: 900px;
  width: 100%;
}

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

.modal-button {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background-color: transparent;
}
