.popup{
    width: calc(100vw - 24px);
    max-height: 90vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 18px;
    padding: 24px;
    background-color: #fff;   
    display: flex;
    flex-direction: column;
    gap: 12px; 
    z-index: 11000;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.popup.--show{
    opacity: 1;
    visibility: visible;
}

.popup .popup-close{
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
}

.popup .popup-close svg{
    background-color: #fff;
    border-radius: 50%;
}

.popup .popup-thumbnail{
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;   
    overflow: hidden; 
}

.popup .popup-thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup .popup-content{
    padding: 24px 0;
}

.popup .popup-content h2{
    font-size: 48px;
    line-height: normal;
}

.popup .popup-content .text{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 12px;
}

.popup .popup-content .text p{
    font-size: 16px;
    line-height: 1.12em;    
}

.popup .popup-content .btn{
    margin-top: 24px;
}
@media screen and (min-width: 640px) {
    .popup{
        width: calc(100vw - 48px);
    }

    .popup .popup-thumbnail{
        aspect-ratio: 2 / 1;
    }
}

@media screen and (min-width: 992px) {
    .popup {
        width: 100%;
        max-width: 850px;
        flex-direction: row;
        align-items: center;
    }

    .popup .popup-content{
        padding: 24px;
    }

    .popup .popup-thumbnail{
        min-width: 50%;
        width: 50%;
        aspect-ratio: 1 / 1;
    }
}