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

body.scroll-block {
  overflow: hidden !important;
}
.mm_modal__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 999;
  padding: 20px 0;
  box-sizing: border-box;
  text-align: center;
}
.mm_modal:before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background-color: #000;
  background-color: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.mm_modal__overlay::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.05em;
}
.mm_modal__container {
  text-align: left;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background-color: #fff;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  width: calc(100% - 2em);
  z-index: 999;
}

@media (min-width: 640px) {
  .mm_modal__container {
    min-width: 40vw;
    max-width: 1024px;
  }
}

/**************************\
  Demo Animation Style
\**************************/

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

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

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

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

.micromodal-slide {
  display: none;
}

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

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

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

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

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