/* =====================================================
   LIGHTBOX.CSS
   Projeto: ARBO Eventos
===================================================== */

/* ==========================================
   LIGHTBOX
========================================== */

.lightbox{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.95);

    opacity:0;

    visibility:hidden;

    transition:.35s ease;

    z-index:99999;

    padding:30px;

}

.lightbox.active{

    opacity:1;

    visibility:visible;

}

/* ==========================================
   IMAGEM
========================================== */

.lightbox img{

    max-width:90%;

    max-height:90vh;

    object-fit:contain;

    border-radius:12px;

    background:#fff;

    box-shadow:0 20px 60px rgba(0,0,0,.45);

    animation:lightboxZoom .35s ease;

}

@keyframes lightboxZoom{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

/* ==========================================
   BOTÃO FECHAR
========================================== */

.close-lightbox{

    position:absolute;

    top:25px;

    right:35px;

    font-size:50px;

    color:#fff;

    cursor:pointer;

    user-select:none;

    transition:.3s;

    line-height:1;

}

.close-lightbox:hover{

    color:var(--color-secondary);

    transform:rotate(90deg);

}

/* ==========================================
   BOTÕES ANTERIOR / PRÓXIMO
========================================== */

.lightbox-prev,
.lightbox-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:55px;

    height:55px;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

    cursor:pointer;

    transition:.3s;

    backdrop-filter:blur(8px);

}

.lightbox-prev{

    left:25px;

}

.lightbox-next{

    right:25px;

}

.lightbox-prev:hover,
.lightbox-next:hover{

    background:var(--color-primary);

}

/* ==========================================
   LEGENDA
========================================== */

.lightbox-caption{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

    color:#fff;

    background:rgba(0,0,0,.5);

    padding:12px 24px;

    border-radius:30px;

    font-size:.95rem;

    letter-spacing:.5px;

}

/* ==========================================
   OVERLAY
========================================== */

.lightbox::before{

    content:"";

    position:absolute;

    inset:0;

    cursor:zoom-out;

}

/* ==========================================
   RESPONSIVO
========================================== */

@media(max-width:768px){

    .lightbox{

        padding:15px;

    }

    .lightbox img{

        max-width:100%;

        max-height:80vh;

    }

    .close-lightbox{

        top:15px;

        right:20px;

        font-size:40px;

    }

    .lightbox-prev,
    .lightbox-next{

        width:45px;

        height:45px;

        font-size:22px;

    }

}

@media(max-width:480px){

    .lightbox-prev,
    .lightbox-next{

        display:none;

    }

    .lightbox-caption{

        width:90%;

        text-align:center;

        font-size:.85rem;

    }

}

/* ==========================================
   FIM DO LIGHTBOX.CSS
========================================== */

