.gallery-page{
    width: 680px;
    padding: 20px 40px;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    max-height: 50vh;
    overflow-y: auto;
}

.gallery-grid img{
    display: block;
    width: 100%;

    aspect-ratio: 1.2/1;
    object-fit: cover;
    border-radius: 14px;

    transition: transform 0.25s ease;
    cursor: pointer;
}

.gallery-grid img:hover{
    transform: scale(1.03);
}

.gallery-grid::-webkit-scrollbar,
.terms-grid::-webkit-scrollbar{
    width: 8px;
}

.gallery-grid::-webkit-scrollbar-thumb,
.terms-grid::-webkit-scrollbar-thumb{
    background: #e2f4f4;
    border-radius: 999px;
}

.lightbox{
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: 0.25s;
}

.lightbox.active{
    opacity: 1;
    pointer-events: all;
}

.lightbox img{
    max-width: 80%;
    max-height: 80vh;

    border-radius: 20px;
}







/* RESPONSIVO */


@media (max-width: 760px){
    .gallery-page{
        width:min(92vw, 480px);

        margin:20px;
        border-radius:40px;
    }

    .language-switch{
        position:absolute;

        top:260px; 

        right:35px;

        z-index:10;
        margin:0;
    }

    .gallery-page .top-bar{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:20px;
    }
    
    .gallery-page .category-title{
        flex-wrap:wrap;
    }

     
    .gallery-page .gallery-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-page .gallery-item{
        aspect-ratio:1/1;
    }

    .gallery-page .sections-page{
        flex-direction:column;
        width:100%;
    }

    .gallery-page .nav-button{
        width:100%;
        box-sizing:border-box;
    }
    

}

@media (max-width: 460px){

    .gallery-page{
        width:92vw;
    }
}    