﻿/* ===== Scrolling Gallery Section ===== */
.gallery-scroll {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fff5, #f2f9f0);
    padding: 60px 0;
}

.gallery-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2e7d32;
    font-family: 'Segoe UI', sans-serif;
}

/* Track that scrolls */
.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

/* Individual items */
.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    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, box-shadow 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(-10px) scale(1.05);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

    /* Text */
    .gallery-item h4 {
        font-size: 18px;
        margin: 12px 10px 6px;
        color: #2e7d32;
        font-weight: bold;
    }

    .gallery-item p {
        font-size: 14px;
        padding: 0 15px 20px;
        color: #555;
    }

/* ===== Keyframes for infinite scroll ===== */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-item {
        width: 250px;
    }

        .gallery-item img {
            height: 160px;
        }

    .gallery-title {
        font-size: 22px;
    }
}
