/**************************\
  Basic Modal Styles
\**************************/

.modal__overlay {
  position: fixed;
  padding: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  overflow: auto;
  display: flex;
}

.modal__container {
  background-color: #fff;
  box-sizing: border-box;
  max-width: 800px;
  width: 100%;
  margin: auto;
}

/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes mmslideIn {
  from { transform: translateY(5%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(5%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

/**********************************\
  Modal Button Styles date: 210401
\**********************************/
.modal[aria-hidden="true"] .modal__button {
  display: none;
}
.modal[aria-hidden="false"] .modal__button {
  display: block;
}
.modal__button {
  width: 6.4em;
  width: 8.533vw;
  height: 13.9em;
  height: 18.533vw;
  /* background-color: #CCC; */
  position: fixed;
  z-index: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-size: 3em; */
  background-repeat: no-repeat;
  background-size: 100% auto;
  z-index: 1001;
  transform: translateY(-50%);
}

@media screen and (min-width: 769px) {
  .modal__button {
    width: 5.925vw;
    height: 12.87vw;
  }
}
@media screen and (min-width: 1081px) {
  .modal__button {
    width: 64px;
    height: 139px;
  }
}
.modal__button--prev {
  top: 50%;
  left: 0;
  background-image: url(../img/popup/popup_PREV.png);
}
.modal__button--next {
  top: 50%;
  right: 0;
  background-image: url(../img/popup/popup_NEXT.png);
}
