/* Modal
=============================== */
.modal-opened{
  overflow: hidden;
}
.modal-opened,
.modal-opened .gnav-wrapper{
  padding-right: 15px;
}
.modal-item{
  display: none;
  transition: all .5s;
  opacity: 0;
}
.modal-item.active{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0,0,0,.7);
  width: 100%;
  height: 100%;
  animation: fadeIn .3s ease-in 0s forwards;
  opacity: 1;
}
.modal-item.hide{
  animation: fadeOut .3s ease-in 0s forwards;
}
.modal-item-inner{
  position: relative;
  z-index: 1;
}
.modal-content{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content-inner{
  position: relative;
  background: #fff;

  background-clip: padding-box;
  pointer-events: auto !important;
}
.modal-item-close{
  position: absolute;
  background: url("close.png") 0 0 no-repeat;
  background-size: 100% 100%;
  transition: all .2s;
}
.modal-item-close:hover{
  opacity: .5;
  cursor: pointer;
}
@media (max-width: 767px){
  .modal-content{
    padding: 16px;
  }
  .modal-content-inner{
    padding: 30px 25px;
    line-height: 1.55;
    font-size: 1.7rem;
  }
  .modal-item-close{
    top: 26px;
    right: 26px;
    width: 30px;
    height: 30px;
  }
}
@media (min-width: 768px){
  .modal-content-inner{
    padding: 100px;
    width: 63.28125vw;
    max-width: 810px;
    line-height: 1.5556;
    font-size: 1.8rem;
  }
  .modal-item-close{
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
  }
}

@keyframes fadeIn{
  0%{
    display: none;
    opacity: 0;
  }
  1%{
    display: block;
    opacity: 0;
  }
  100%{
    display: block;
    opacity: 1;
  }
}
@keyframes fadeOut{
  0%{
    opacity: 1;
  }
  100%{
    display: none;
    opacity: 0;
  }
}
