@charset "UTF-8";
/* CSS Document */
.modal_trigger li {
  cursor: pointer;
}

.modal_trigger li::before {
  content: '';
  display: inline-block;
  height: 100%;
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
  position: absolute;
  z-index: -1;
  opacity: 0;
    margin: auto;
}

.modal_trigger li:hover::before {
  -webkit-animation: slideRightBg ease .2s forwards;
          animation: slideRightBg ease .2s forwards;
}

@-webkit-keyframes slideRightBg {
  0% {
    opacity: 0;
    left: -50%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes slideRightBg {
  0% {
    opacity: 0;
    left: -50%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

.modal_box {
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.modal_bg {
  background-color: rgba(30, 30, 30, 0.9);
  height: 100%;
  width: 100%;
}

.modal_inner {
  background-color: #fff;
  left: 50%;
  padding: 10px;
  position: absolute;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  max-width: 900px;
  width: 900px;
  height: 800px;
  overflow-x: scroll;
}

.modal_inner .modal_block img{
    width: 100%!important;
}

.modal_close {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: -20px;
  font-size: 70px;
}

@media screen and (max-width: 768px) {
  .modal_trigger {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .modal_trigger li {
    width: 47.5%;
    margin-top: 20px;
    max-width: inherit;
  }
  .modal_trigger li + li {
    margin-left: 0;
  }
  .modal_inner {
    width: 90%;
    padding: 0;
  }
  .modal_close {
      top: 17px;
    right: 25px;
    font-size: 30px;
    font-weight: 600;
  }
    .modal_inner{
        max-width: 90%;
        height: auto;
    }
}