/* Outer wrapper */
.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fff;
}

/* Track */
.gallery-track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

/* Pause on hover */
.gallery-wrapper:hover .gallery-track {
    animation-play-state: paused;
}

/* Items */
.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 16px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Seamless animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .gallery-item {
        width: 220px;
    }
    .gallery-item img {
        height: 160px;
    }
}

/* Modal Image */
.modal-img {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    background: #000;
}
