.modal {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    opacity: 0;
    transform: translateY(30px);
    background-color: transparent;
    width: 90%;
    height: 80%;             
    margin: 24px;
    max-width: 1600px;
    max-height: 1200px;
    border-radius: 20px;     
    transition: opacity 0.4s cubic-bezier(0.44, 0.09, 0.46, 0.84), transform 0.4s cubic-bezier(0.44, 0.09, 0.46, 0.84);
}

.modal-content.show {
    opacity: 1;
    transform: translateY(0);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: regular;
    position: absolute;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.no-scroll {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
}