.popup {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10000;
}
.popup.active {
    opacity: 1;
    visibility: visible;
}
.popup a {
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    overflow: hidden;
}
.popup img {
    display: block;
    width: 100%;
    height: auto;
}
.close-btn {
    position:absolute;
    width:40px;
    height:40px;
    right:-20px;
    top: -20px;
    background-color:white;
    color: #192440;
    border-radius:50%;
    font-size: 22px;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}
.close-btn:hover {
    transform:rotate(360deg)
}
@media only screen and (max-width:500px){
    .popup {
        max-width: auto;
        width:300px;
        bottom: 30px;
        right: 10px;
    }
    .close-btn {
        right: 10px;
        top: 10px;
    }
}