/* Modal wrapper */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  transition: opacity 0.3s ease;
  overflow: scroll;
}

/* Show when visible */
.modal.is-visible {
  display: flex;
  /* animation: modalFadeIn 0.3s ease; */
}

/* Modal content */
.modal-content {
  margin: auto;
  max-width: 1260px;
  width: 100%;
  position: relative;
  transform: scale(1);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  font-size: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
