body.rikit-modal-open {
  overflow: hidden;
}

.rikit-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  /* pointer-events: none; */
  flex-flow: column nowrap;
  justify-content: flex-start;
  z-index: 99;
  align-items: center;
}

.modal-wrap {
  flex-shrink: 0;
  flex-grow: 0;
  width: 100%;
  min-height: 100%;
  margin: auto;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}

.rikit-modal.open {
  display: flex;
}

.rikit-modal .modal-content {
  width: 60rem;
  margin: 5rem 0;
  position: relative;
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}
.rikit-modal .modal-content--long {
  width: 100rem;
}
.rikit-modal .modal-content--full {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  padding-top: 10rem;
}
.rikit-modal .modal-content--full .modal-close {
  position: absolute;
  background-color: transparent;
  border: none;
  font-size: 4rem;
  cursor: pointer;
  top: 2rem;
  right: 2rem;
  padding: 0;
  z-index: 10;
}
.rikit-modal .modal-content--media {
  width: 90rem;
  padding: 0;
  margin: 0;
  border-radius: 0;
  min-height: 47rem;
  box-sizing: content-box;
  background-color: #000;
}
.rikit-modal .modal-content--media img,
.rikit-modal .modal-content--media video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.rikit-modal .modal-content--media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.rikit-modal .modal-close {
  position: absolute;
  background-color: transparent;
  border: none;
  font-size: 4rem;
  cursor: pointer;
  top: -5rem;
  right: 0;
  padding: 0;
}

@media screen and (max-width: 719px) {
  .rikit-modal .modal-close {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    left: 2rem;
    top: 2rem;
    z-index: 1;
  }
  .rikit-modal .modal-content {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    padding-top: 12rem;
  }
}