/* Responsive Image Optimization Styles */

/* Base image styles */
.img-optimized {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Logo specific styles */
.company-logo-img,
.premium-logo,
.recent-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Cover image styles */
.premium-cover-image,
.cover-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Product/Service/Project image grid */
.content-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* Thumbnail styles */
.img-thumbnail.optimized {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .company-logo-img,
    .premium-logo,
    .recent-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    .premium-cover-image,
    .cover-image {
        height: 150px;
    }
    
    .content-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .company-logo-img,
    .premium-logo,
    .recent-logo {
        max-width: 60px;
        max-height: 60px;
    }
    
    .premium-cover-image,
    .cover-image {
        height: 120px;
    }
    
    .content-image {
        height: 120px;
    }
    
    .img-thumbnail.optimized {
        max-width: 40px;
        max-height: 40px;
    }
}

/* Loading states */
.img-optimized[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* WebP fallback support */
.no-webp .webp-image {
    display: none;
}

.no-webp .fallback-image {
    display: block;
}

.webp .webp-image {
    display: block;
}

.webp .fallback-image {
    display: none;
}
