/* GALLERY OVERRIDE STYLES - FILTERING COMPATIBLE */
/* Ensures gallery images are visible but allows filtering */

.gallery-item {
    /* Don't use !important for display - let filtering work */
    opacity: 1;
    visibility: visible;
    position: relative;
    margin-bottom: 20px;
}

/* When item should be visible */
.gallery-item.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* When item should be hidden (filtered out) */
.gallery-item.hide {
    display: none !important;
}

.gallery-item img {
    /* Don't use !important for display - let filtering work */
    opacity: 1;
    visibility: visible;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Ensure gallery grid is visible */
.gallery-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Debug borders to see what's happening */
.gallery-item {
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
