.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 60%);
}

.modal__content {
    position: relative;
    z-index: 1;
    width: min(800px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}