.modalContainer {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 20px;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    box-sizing: border-box;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.modalContents {
    position: relative;
    max-width: 900px;
    width: 95%;
    height: auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    z-index: 200;
}

.modal__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
}

.modalContentsBody {
    max-height: 80vh;
    overflow-y: auto;
}

.modalContainer.js-close {
    display: flex;
    animation: .5s ease-in-out 0s modalClose forwards;
}

.modalContainer.js-active {
    display: flex;
    animation: .5s ease-in-out 0s modalOpen forwards;
    z-index: 10000 !important;
}

.modal__close {
    position: absolute;
    width: 40px;
    height: 40px;
    top: -10px;
    right: -10px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}

.modal__close::before, .modal__close::after {
    position: absolute;
    content: "";
    display: block;
    background: #fff;
    width: 60%;
    height: 1px;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.modal__close::before {
    transform: rotate(45deg);
}

.modal__close::after {
    transform: rotate(-45deg);
}

@keyframes modalClose {
  0% {
    z-index: 100;
    opacity: 1;
    pointer-events: auto;
  }

  99% {
    z-index: 100;
    opacity: 0;
  }

  100% {
    z-index: -1;
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes modalOpen {
  0% {
    z-index: 100;
    opacity: 0;
    pointer-events: auto;
  }

  100% {
    z-index: 100;
    opacity: 1;
    pointer-events: auto;
  }
}