.gallery {
    display: flex;
    flex-wrap: wrap;
    /*gap: 15px; */
    gap: 0px; 
    justify-content: flex-start; 
}

.gallery-item {
    /*flex: 0 0 calc(25% - 15px); 
    max-width: calc(25% - 15px);*/
    flex: 0 0 calc(25% - 0px);
    max-width: calc(25% - 0px);
    box-sizing: border-box;
    height: 35vh;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.95); 
    pointer-events: none; 
}

@media (max-width: 992px) {
    .gallery-item {
        flex: 0 0 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    .lightbox {
        top: 10% !important;
        position: fixed;

    }

}

@media (max-width: 576px) {
    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .lightbox {
        top: 10% !important;
        position: fixed;

    }
}


.gallery-item img {
    width: 100%;  
    height: 100%; 
    object-fit: cover; 
    border-radius: 5px;
    object-position: center;
}


.fade {
    transition: opacity 0.5s ease-in-out;
}

.gallery-item img {
    display: block;
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.filter-button {
    margin: 5px;
    background: none;
}

.lb-close {
    top: 10px !important;
    right: 10px !important;
}

.hidden {
    opacity: 0;
}