/* =============================================================================
   MODERN GALLERY STYLES
   Product gallery slider styles
   ============================================================================= */

.modern-gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.modern-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
    margin-top: 2rem;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 25%;
    padding: 0.5rem 0.25rem;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--primary-color, #b70000);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    gap: 0.5rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary-color, #b70000);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: var(--primary-hover, #8b0000);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-slide {
        flex: 0 0 50%;
        padding: 0.5rem 0.25rem;
    }
    
    .gallery-slide img {
        height: 520px;
    }
}

@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 100%;
        padding: 0.5rem 0.25rem;
    }
    
    .gallery-slide img {
        height: 480px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-prev {
        left: 0.5rem;
    }
    
    .gallery-next {
        right: 0.5rem;
    }
    
    .modern-gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-slide {
        padding: 0.25rem 0.125rem;
    }
    
    .gallery-slide img {
        height: 450px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
}