html {
  overflow-y: scroll;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;

    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.6);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 2000;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: min(90%, 600px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.is-active .modal-content {
    transform: translateY(0);
}
