/* Lazy Loading Image Styles */

/* Images being lazy loaded */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Loading state */
img.loading {
    opacity: 0.5;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Loaded state */
img.loaded {
    opacity: 1;
}

/* Error state */
img.error {
    opacity: 0.3;
    border: 2px dashed rgba(255, 100, 100, 0.3);
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Native lazy loading hint */
img[loading="lazy"] {
    /* Browser will handle loading */
    min-height: 100px; /* Prevent layout shift */
}
