﻿/* ===== Scrolling Gallery Section ===== */
.gallery-scroll {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f9f9f9;
    padding: 40px 0;
}

/* Track that scrolls */
.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

/* Individual items */
.gallery-item {
    flex: 0 0 auto;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.4s ease;
}

    .gallery-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-bottom: 4px solid #4caf50;
        transition: transform 0.6s ease;
    }

    /* Hover effects */
    .gallery-item:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }

        .gallery-item:hover img {
            transform: scale(1.08);
        }

    /* Text */
    .gallery-item h4 {
        font-size: 20px;
        margin: 15px 10px 8px;
        color: #333;
    }

    .gallery-item p {
        font-size: 15px;
        padding: 0 15px 20px;
        color: #666;
    }

/* ===== Keyframes for infinite scroll ===== */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .gallery-item {
        width: 250px;
    }

        .gallery-item img {
            height: 160px;
        }
}
