/* last update : 3.5.24 */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.popup.active {
    display: block;
    opacity: 1;
}
.popup-wrap {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 400px;
    width: 90%;
    overflow-y: hidden;
}
.close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2d2f30;
    line-height: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #ffffff;
    z-index: 9;
}
.close img {
    width: 15px;
    height: auto;
}
.close:hover {
    opacity: 0.6;
}
.popup .popup-wrap .popup-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 0;
    align-items: center;
    width: 100%;
    max-width: 750px;
    background-color: #ffffff;
}
.popup .popup-wrap .popup-content.duo {
    grid-template-columns: repeat(1, 1fr);
}

.popup .popup-wrap .popup-content .popup-text {
    padding: 1rem;
    text-align: center;
}
.popup .popup-wrap .popup-content .popup-text a.txtBtn {
    margin: 2rem 0 0 0;
}
.popup .popup-wrap .popup-content .popup-img {
    height: 100%;
}
.popup .popup-wrap .popup-content .popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 992px) {

    .popup-wrap {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
        max-width: fit-content;
    }
    .popup .popup-wrap .popup-content.duo {
        grid-template-columns: repeat(2, 1fr);
    }
    .popup .popup-wrap .popup-content .popup-text {
        padding: 3rem;
    }

}