/* Gallery Lazy Loading Styles */
.swiper-lazy-preloader {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    animation: swiper-preloader-spin 1s infinite linear;
    box-sizing: border-box;
    border: 4px solid var(--corporate-green);
    border-radius: 50%;
    border-top-color: transparent;
}

.swiper-lazy-loading {
    opacity: 0;
}

.swiper-lazy-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

@keyframes swiper-preloader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Gallery overlay improvements */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 170, 54, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 5;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Performance optimizations */
.gallerySwiper img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .swiper-lazy-preloader {
        animation: none;
    }
    
    .gallery-overlay {
        transition: none;
    }
    
    .swiper-lazy-loaded {
        transition: none;
    }
}
