
#popupOverlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.65);
    z-index:9999;

    opacity:0;
    visibility:hidden;
    transition:opacity .5s ease, visibility 1.5s ease;
}

#popupOverlay.show{
    opacity:1;
    visibility:visible;
}

#popupOverlay.hide{
    opacity:0;
    visibility:hidden;
}

#popupContent{
    position:relative;
    transform:scale(.7);
    transition:transform 1.4s ease;
}

#popupOverlay.show #popupContent{
    transform:scale(1);
}

#popupContent img{
    max-width:90vw;
    max-height:85vh;
    border-radius:20px;
    box-shadow:0 0 10px rgba(0,0,0,.5);
}

#closePopup{
    position:absolute;
    top:-20px;
    right:-15px;
    width:35px;
    height:35px;
    background:#fff;
    color:#000;
    border-radius:50%;
    text-align:center;
    line-height:40px;
    font-size:36px;
    font-weight:bold;
    cursor:pointer;
    user-select:none;
}

