.modal {
  /* display: none; */
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;

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

  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);

  transition: visibility 0s, opacity 0.5s;

  overflow-x: hidden;
}

.modal--show {
  visibility: visible;
  opacity: 1;
}

.modal__content {
  background-color: #1c1c1c;

  border: 1px solid #151515;
  border-radius: 2rem;

  margin: auto;
  padding: 4rem;

  width: 60rem;
  max-width: 70vw;

  position: relative;
}

.modal__close {
  position: absolute;
  top: 2rem;
  right: 2rem;

  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;

  background: transparent;
  border: none;
}

@media screen and (max-width: 640px) {
  .modal__content {
    max-width: 90vw;
    padding: 2rem;
  }
}
