/* ===== VISOR FOTOGALERIA SIMPLE ===== */

.fg-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
    transition: background .3s ease;
}

.fg-overlay.active{
    display: flex;
    background: rgba(0,0,0,0.92);
}

.fg-box{
    position: relative;
    cursor: default;
    transform: scale(.9);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

.fg-overlay.active .fg-box{
    transform: scale(1);
    opacity: 1;
}

.fg-box img{
    height: 80vh;
    width: auto;
    object-fit: contain;
    transition: transform .1s ease;
}

.fg-close{
    position: absolute;
    top: -35px;
    right: -10px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
}

.fg-nav{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    padding: 20px;
}

.fg-prev{ left: 30px; }
.fg-next{ right: 30px; }