/* ================================================
   DUAL MARQUEE GALLERY
   Two rows: top scrolls left, bottom scrolls right
   ================================================ */

.marquee-gallery-section {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 0;
    /* Hide section if no images loaded yet */
    min-height: 0;
}

.marquee-track-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
}

/* Each row */
.marquee-track {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    cursor: grab;
    scroll-behavior: auto; /* changed to auto for immediate drag, smooth might lag */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.marquee-track::-webkit-scrollbar {
    display: none;
}

.marquee-track:active {
    cursor: grabbing;
}

/* Pause on hover removed */

/* Inner container - holds two copies of images side by side */
.marquee-inner {
    display: flex;
    gap: 6px;
    width: max-content;
    will-change: transform;
}

/* Scroll LEFT (default) */
/* .marquee-left .marquee-inner { animation removed } */

/* Scroll RIGHT */
/* .marquee-right .marquee-inner { animation removed } */

/* Individual image item */
.marquee-item {
    flex-shrink: 0;
    width: 220px;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.marquee-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.marquee-item:hover img {
    transform: scale(1.05);
}

/* Keyframes removed */

/* Hide entire section if empty */
.marquee-gallery-section.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-item {
        width: 150px;
        height: 180px;
        border-radius: 8px;
    }
    .marquee-track-wrapper {
        gap: 4px;
        padding: 8px 0;
    }
}
