/**
 * Scrolling Image Gallery Styles
 * Optimized for better performance
 */

.scrolling-image-gallery-section {
    padding: 60px 0;
    overflow: hidden;
    background-color: #f5f5f5;
    width: 100%;
}

.gallery-title-container {
    margin-bottom: 30px;
    text-align: center;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.scrolling-gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.scrolling-gallery-track {
    display: flex;
    align-items: center;
    gap: 20px;
    will-change: transform;
    /* Use hardware acceleration for smoother animations */
    transform: translateZ(0);
}

.gallery-image {
    flex: 0 0 auto;
    width: 250px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Add media queries for better responsiveness */
@media (max-width: 768px) {
    .scrolling-image-gallery-section {
        padding: 40px 0;
    }
    
    .gallery-title {
        font-size: 28px;
    }
    
    .gallery-image {
        width: 200px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        width: 180px;
        height: 140px;
    }
    
    .scrolling-gallery-track {
        gap: 15px;
    }
} 