/* Gallery Section */
.gallery-section {
    background: #f8f9fa;
    padding: 5rem 2rem;
    overflow: hidden;
}

.gallery-slider-wrapper {
    position: relative;
    margin-top: 3rem;
}

/* Horizontal Gallery */
.horizontal-gallery {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.horizontal-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Auto-scrolling animation */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.horizontal-gallery.auto-scroll {
    animation: autoScroll 30s linear infinite;
}

.horizontal-gallery:hover {
    animation-play-state: paused;
}

.animated-gallery-item {
    min-width: 350px;
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.animated-gallery-item:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255,152,0,0.4);
    z-index: 10;
}

.animated-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.animated-gallery-item:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44,62,80,0.95);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.animated-gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,152,0,0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-nav-btn:hover {
    background: #f57c00;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(255,152,0,0.5);
}

.gallery-nav-btn.prev {
    left: -25px;
}

.gallery-nav-btn.next {
    right: -25px;
}

/* Responsive */
@media (max-width: 768px) {
    .animated-gallery-item {
        min-width: 280px;
        height: 350px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-nav-btn.prev {
        left: 10px;
    }
    
    .gallery-nav-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .animated-gallery-item {
        min-width: 250px;
        height: 300px;
    }
}