/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 20; /* Sit on top */
  padding-top: 140px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
.modal .modal-content video{
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  outline: none;
  width: 100%;
  height: auto;
  position: relative;
}
/* Modal Content */
.modal-content {
  position: relative;
  background-color: transparent;
  margin: auto;
  padding: 0;
  max-width: 980px;
  width: 100%;
  /*width: 35%;  */
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}
@media screen and (max-width: 767px){
  .modal-content {
    max-width: 700px;
    width: 90%;
  }
}
/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 50px;  
  position: absolute;
  top: -73px;
  right: 30px;  
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.nt_block figure{
  display: inline-block;  
  position: relative;
  transition: 0.3s all;
  margin: 0;
  font-size: 0;
  padding: 0;
  line-height: 0;
}
.nt_block figure:before{
  transition: 0.3s all;
}
.nt_block figure:hover{
  cursor: pointer;  
}
.nt_block figure i.gg-play-button{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  transition: 0.3s all;
}
.nt_block figure img{
  max-width: 100%;
  height: auto;
}
/*.nt_block figure:before{  
  content: url('img/movie_icon.svg');
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
}*/
.modal.open .modal-content .overbg{
  background-color: #151B17;  
  display: inline-block;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
  background-color: #000;
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  z-index: 5;
  transition: 0.3s all;
}
.modal.open .modal-content .overbg:hover{
  cursor: pointer;  
}
.modal.open .modal-content .overbg:hover:before{
  opacity: 0.7;
}
/*.modal.open .modal-content .overbg:before{
  content: url('/oki/htdocs/jp/cmn_2020/img/movie_icon.svg');  
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  transition: 0.3s all;
}*/
.modal.open .modal-content .overbg i.gg-play-button{  
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  transition: 0.3s all;
}
.modal.open .modal-content .overbg.opened:before{
  visibility: hidden;
}
.modal.open .modal-content .overbg.opened{
  display: none;
}
.gg-play-button {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(var(--ggs,1));
  width: 70px;
  height: 70px;
  border-radius: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.gg-play-button::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 0;
  height: 20px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid #fff;
  left: 50%;
  top: 50%;
  transform: translate(-40%,-50%);
}
/*#myBG:hover:before{
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.5);
  transition: opacity 400ms ease;
}*/
#myBG:hover i.gg-play-button, .nt_block figure:hover i.gg-play-button{
  background-color: #fff;
}
#myBG:hover i.gg-play-button::before, .nt_block figure:hover i.gg-play-button::before{
  border-left: 25px solid red;
}
.overbg-img {
  height: 100%;
  width: 100%;
  background-color: rgb(0 0 0 / 0);
  position: absolute;
  top: 0;
  left: 0;  
  transition: opacity 400ms ease;
  z-index: 0;
}
.nt_block figure:hover .overbg-img, #myBG:hover .overbg-img {
  background-color: rgb(0 0 0 / 0.4);
  transition: opacity 400ms ease;
}