.boxlight {
  opacity: 0;
  position: relative;
  display: none;
  z-index: 1002;
}
.boxlight-overflow {
  position: fixed;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
}
.box-overlay {
  position: fixed;
  top: -500%;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.3s linear;
}
.box-overlay.active {
  top: 0;
  opacity: 0.8;
}
.wrap-boxlight-youtube {
  max-width: 80%;
  margin: auto;
  background-color: #000;
  position: relative;
  z-index: 3000;
}
.youtube-inner {
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
}
.boxlight-youtube {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.wrapp-box {
  position: fixed;
  display: table;
  width: 100%;
  height: 100%;
  top: -500%;
  left: 0;
  transition: opacity 0.3s linear;
  opacity: 0;
  z-index: 3000;
}
.wrapp-box.boxlight-h {
  display: block;
  overflow: hidden;
}
.wrapp-box.boxlight-h .wrapp-box-inner {
  display: block;
  overflow-Y: auto;
}
.wrapp-box.active {
  opacity: 1;
  top: 0;
}
.wrapp-box.active .boxlight {
  opacity: 1;
  display: block;
}
.wrapp-box-inner {
  display: table-cell;
  width: 100%;
  height: 100%;
  vertical-align: middle;
}
.close-boxlight {
  position: absolute;
  top: 0;
  display: block;
  left: calc(100% + 15px);
  width: 45px;
  height: 45px;
  line-height: 28px;
  text-align: center;
  background-color: #3351fd;
  border-radius: 100%;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-boxlight:after {
  content: "\e92b";
  font-family: icomoon;
  font-size: 20px;
}

@media screen and (max-width: 1024px){
  .close-boxlight{
    left: inherit;
    right: 0;
    top: inherit;
    bottom: calc(100% + 10px);
  }

  .wrap-boxlight-youtube {
    max-width: 100%
  }
}
