#gallery {
    padding: var(--section-padding) 10%;
    background: white;
}

/* DESKTOP */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .3s ease;
}

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

/* LIGHTBOX */
.lightbox-container {
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.9);
    z-index: 9999;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    z-index: 2;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 3;
}

/* MOBIELE GALERIJ */
@media (max-width: 768px) {

    .gallery-grid {

        display: flex;

        overflow-x: auto;

        gap: 12px;

        padding-left: 16px;
        padding-right: 0;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;

    }

    .gallery-grid::-webkit-scrollbar {

        display: none;

    }

    .gallery-item {

        flex: 0 0 70vw;

        width: 70vw;

        height: 70vw;

        object-fit: cover;

        scroll-snap-align: center;

        border-radius: 12px;

    }

}