.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1001;
}

.modal.is-open {
    display: block
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7)
}

.modal__dialog {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;

    overflow: auto;
    width: min(1000px, calc(100% - 40px));
    max-height: calc(100% - 40px);
    margin: 20px auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;

    border: 0;
    background: transparent;
    cursor: pointer
}

.modal__close .icon {
    display: block;
    min-width: 44px;
    width: 44px;
    height: 44px;
    background-size: contain;
    background-repeat: no-repeat;
}