/* Lazy Loading Styles for Gallery */

/* Lazy loading images start with opacity 0 */
.gallery-item img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Loaded images fade in */
.gallery-item img.loaded {
    opacity: 1;
}

/* Blur effect for placeholder images */
.gallery-item img[data-src] {
    filter: blur(5px);
}

.gallery-item img.loaded {
    filter: blur(0);
}

/* Loading animation for gallery items */
@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }
    50% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #f0f0f0;
    }
}

.gallery-item.loading {
    background-color: #f0f0f0;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Ensure gallery items have background while loading */
.gallery-item {
    background-color: #f0f0f0;
    min-height: 220px;
}