/* Image Optimization Styles - Lazy Loading & WebP Support */

/* Lazy loading placeholder */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

img.lazy.loaded {
    opacity: 1;
    animation: none;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Prevent layout shift */
img.lazy,
img[data-src] {
    min-height: 100px;
}

/* Smooth image load */
img {
    transition: opacity 0.3s ease;
}

/* Picture element support */
picture {
    display: inline-block;
    width: 100%;
    height: 100%;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

