html.modal-open { overflow: hidden; }

.module_popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;

  background-color: rgba(0,0,0,.8);
}

.popup {
  position: relative;

  width: 85%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 8px;

  text-align: center;

  background-color: white;

  overflow: scroll;
}

@media screen and (min-width: 950px) {
  .popup-content {
    display: grid;
    grid-template-columns: 300px auto;
  }
}

.popup-image > img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

@media screen and (max-width: 949px) { .popup-image { display: none; } }

.popup-text { padding: 50px 25px 25px; }

@media screen and (max-width: 699px) { .popup-text p:not(.asterisk) { display: none; } }

/* Close Button */
.module_popup .popup > button {
  position: absolute;
  top: 15px;
  right: 15px;

  width: 30px;
  height: 30px;
  border: none;

  background-color: transparent;

  cursor: pointer;
  z-index: 10;
}

.module_popup .popup > button:before,
.module_popup .popup > button:after {
  content: '';

  position: absolute;
  top: 50%;
  left: 50%;

  width: 20px;
  height: 2px;

  background-color: #3C3C3C;

  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.module_popup .popup > button:after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.module_popup .popup > button:hover:before,
.module_popup .popup > button:hover:after { background-color: #777777; }