

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].lazy-loaded {
    opacity: 1;
}

img[loading="lazy"].lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[loading="lazy"].lazy-error {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    min-height: 100px;
}

.lazy-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.lazy-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: placeholder-shimmer 2s infinite;
}

@keyframes placeholder-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.galary-item__image[loading="lazy"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.galary-item__image[loading="lazy"].lazy-loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

@media (max-width: 768px) {
    img[loading="lazy"] {
        transition: opacity 0.2s ease;
    }
    
    .lazy-placeholder {
        min-height: 150px;
        font-size: 12px;
    }
}

.lazy-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.lazy-progress.loading {
    width: 100%;
    animation: progress-pulse 1s infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.galary-modal__image[loading="lazy"] {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.swiper-slide img[loading="lazy"] {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img[loading="lazy"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

img[loading="lazy"][data-preload="true"] {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

img[loading="lazy"][data-preload="true"].lazy-loaded {
    opacity: 1;
    transform: scale(1);
}

img[loading="lazy"][data-blur="true"] {
    filter: blur(5px);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

img[loading="lazy"][data-blur="true"].lazy-loaded {
    filter: blur(0);
}

img[loading="lazy"][data-delay] {
    animation-delay: var(--delay, 0s);
}

img[loading="lazy"][data-placeholder] {
    background-image: var(--placeholder);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

img[loading="lazy"][data-progressive="true"] {
    background: #f0f0f0;
    transition: all 0.3s ease;
}

img[loading="lazy"][data-progressive="true"].lazy-loaded {
    background: transparent;
} 