/* ===================================
   Elementor Mobile Grid Carousel
   CSS Scroll-Snap approach — no DOM changes
   =================================== */

/* The scroll wrapper (applied via JS to the grid container) */
.emgc-scroll-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 16px !important;

    /* Allow both horizontal carousel scroll and vertical page scroll */
    touch-action: pan-x pan-y !important;

    /* Hide scrollbar */
    scrollbar-width: none !important;          /* Firefox */
    -ms-overflow-style: none !important;        /* IE/Edge */
}
.emgc-scroll-wrapper::-webkit-scrollbar {
    display: none !important;                   /* Chrome/Safari */
}

/* Each grid item becomes a scroll-snap slide */
.emgc-scroll-item {
    flex: 0 0 85% !important;       /* Show 85% so user sees a peek of the next card */
    max-width: 85% !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
}

/* ---- Controls row: dots only ---- */
.emgc-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 0 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Pagination dots container */
.emgc-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 0 1 auto !important;
}

/* Individual bar (inactive) */
.emgc-dot {
    display: inline-block !important;
    width: 22px !important;
    height: 3px !important;
    border-radius: 2px !important;
    background: #ccc !important;
    cursor: pointer !important;
    transition: background 0.3s ease, width 0.3s ease !important;
}

/* Active bar — wider + dark */
.emgc-dot.active {
    background: #222 !important;
    width: 34px !important;
}
