/* ===========================================
 * MODAL
 * ======================================== */

.modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal.is-active {
  opacity: 1;
  visibility: visible;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.modal-inner {
  position: relative;
  z-index: 10000;
  background: #fff;
  overflow-y: auto;
  box-shadow: 0 2px 16px rgba(51, 51, 51, 0.36);
}
.modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 16px;
  height: 2px;
  background-color: #7d7d7d;
  transform-origin: center;
}
.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal-close:hover::before,
.modal-close:hover::after {
  background-color: #000;
}
.modal-close:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.6);
  outline-offset: 2px;
}