template {
  display: none;
}

.m-modal {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  visibility: hidden;
  opacity: 0;
  z-index: 2000;
  -webkit-transition: all 0.8s cubic-bezier(0.5, 1, 0.89, 0.9) 0s;
  transition: all 0.8s cubic-bezier(0.5, 1, 0.89, 0.9) 0s;
  width: 100vw;
  height: 100%;
  overflow: auto;
  -ms-touch-action: none;
      touch-action: none;
  pointer-events: none;
}

.m-modal img {
  max-width: 100%;
}

.is-modal-overflow-prep .m-modal {
  display: block;
}

.m-modal.is-open {
  visibility: visible;
  opacity: 1;
  -webkit-transition: all 0.8s cubic-bezier(0.5, 1, 0.89, 1);
  transition: all 0.8s cubic-bezier(0.5, 1, 0.89, 1);
  -ms-touch-action: auto;
      touch-action: auto;
  pointer-events: auto;
}

.m-modal.is-load-start {
  visibility: visible;
  opacity: 1;
  -webkit-transition: all 0s cubic-bezier(0.5, 1, 0.89, 1);
  transition: all 0s cubic-bezier(0.5, 1, 0.89, 1);
  -ms-touch-action: auto;
      touch-action: auto;
  pointer-events: auto;
}

.m-modal.is-close {
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.4s cubic-bezier(0.5, 1, 0.89, 1) 0s;
  transition: all 0.4s cubic-bezier(0.5, 1, 0.89, 1) 0s;
  -ms-touch-action: none;
      touch-action: none;
  pointer-events: none;
}

.m-modal__bg {
  position: fixed;
  top: 0;
  left: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.m-modal__bg::after {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
  width: 100%;
  height: 100%;
  content: "";
}

.m-modal__content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  font-size: 0;
  text-align: center;
}

.is-modal-overflow-prep .m-modal__content {
  position: relative;
  top: auto;
  left: auto;
  -webkit-transform: none;
          transform: none;
  margin: 60px auto;
}

@media screen and (max-width: 768px) {
  .is-modal-overflow-prep .m-modal__content {
    width: 92%;
  }
}

.m-modal__content > * {
  width: 100%;
  height: auto;
}

.m-modal__content > * img {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  margin: 0 auto;
}

.m-modal__content-bg {
  position: fixed;
  top: 0;
  left: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.m-modal__close {
  display: block;
  position: fixed;
  top: 20px;
  right: 20px;
  opacity: 0;
  -webkit-transition: opacity 0s linear 0s;
  transition: opacity 0s linear 0s;
  cursor: pointer;
  width: 140px;
}

@media screen and (max-width: 768px) {
  .m-modal__close {
    top: 15px;
    right: 4%;
    width: 100px;
  }
}

.is-modal-open .m-modal__close {
  opacity: 1;
  -webkit-transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.m-modal__close-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #876437;
}

.m-modal__close-inner span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transform-origin: center;
          transform-origin: center;
  background-color: #fff;
  width: 70%;
  height: 2px;
}

.m-modal__close-inner span:nth-child(1) {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transition: 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0s;
  transition: 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0s;
}

.m-modal__close-inner span:nth-child(2) {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
          transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0s;
  transition: -webkit-transform 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0s;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0s;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0s, -webkit-transform 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0s;
}
/*# sourceMappingURL=modal.css.map */