.noscroll {
    overflow: hidden;
}

#popup {
    z-index: 1001;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
}

#popup .vertical {
    display: none;
}

#popup .background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@media (max-aspect-ratio: 1/1) {
    #popup .vertical.background {
        display: block;
    }
    #popup .vertical.background + .background {
        display: none;
    }
}

#popup .card {
    position: relative;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    transition: box-shadow ease-out .15s;
}

#popup .card:hover {
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
    transition: box-shadow ease-out .15s;
}

#popup .card-body {
    display: table;
}

#popup .close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
    width: 48px;
    text-align: center;
    color: #ffffff;
    z-index: 1;
    cursor: pointer;
    opacity: 1;
}

#popup .close:hover {
    color: #ee1740;
}

#popup .img {
    max-width: 320px;
}

@media (min-width: 720px) {
    #popup .img {
        max-width: 450px;
    }
}
@media (min-width: 840px) {
    #popup .img {
        max-width: 640px;
    }
}
@media (min-width: 1280px) {
    #popup .img {
        max-width: 840px;
    }
}
    
@media (max-aspect-ratio: 1/1) {
    #popup .vertical.img + .img {
        display: none;
    }
    
    #popup .vertical.img {
        display: block;
        max-width: 300px;
    }    

    @media (min-width: 720px) {
        #popup .vertical.img {
            max-width: 360px;
        }
    }
    @media (min-width: 840px) {
        #popup .vertical.img {
            max-width: 450px;
        }
    }
    @media (min-width: 1080px) {
        #popup .vertical.img {
            max-width: 540px;
        }
    }
}

#popup .content {
    background-color: #ffffff;
    display: table-caption;
    caption-side: bottom;
    margin-top: -1px;
}

#popup .content-body {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
}

#popup .text {
    padding: 15px 25px;
    color: #1f1f1f;
    overflow-y: auto;
}

#popup .title {
    text-align: center;
}

@media (max-width: 991px) {
    #popup .title {
        font-size: 14px;
        line-height: 1.38;
        letter-spacing: 2.3px;
    } 
}

#popup .body {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 1em;
    text-align: justify;
}

@media (min-width: 991px) {
    #popup .body {
        font-size: 12px;
        letter-spacing: 0.9px;
    }
}

#popup .btn {
    margin-bottom: 10px;
}
