/* ==========================================================
   Cinematic Vision Widget
========================================================== */
.mtc-bm-cinematic-vision {
    --font-duo: 'Montserrat', sans-serif;
    --text-color: #000000;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-family: var(--font-duo);
    overflow: hidden;
    position: relative;
    background-color: #ffffff; 
}
.mtc-bm-cinematic-vision .marquee-container {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    pointer-events: none;
    z-index: 0;
}
.mtc-bm-cinematic-vision .marquee-inner {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}
.mtc-bm-cinematic-vision .marquee-part {
    font-size: 12vw; 
    font-weight: 800;
    line-height: 0.9;
    padding-right: 2rem;
    color: #947C6C; 
    letter-spacing: -0.05em;
}
.mtc-bm-cinematic-vision .img-container {
    position: absolute;
    z-index: 10;
    width: 30vw;
    height: 45vh;
    background-color: #000;
    border-radius: 80px;
    overflow: hidden; 
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.mtc-bm-cinematic-vision .img-container img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}
.mtc-bm-cinematic-vision .gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 15;
    opacity: 0;
}
.mtc-bm-cinematic-vision .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    color: #fff;
    box-sizing: border-box;
}
.mtc-bm-cinematic-vision .overlay-content.pos-bottom-left {
    justify-content: flex-end; align-items: flex-start; text-align: left;
}
.mtc-bm-cinematic-vision .overlay-content.pos-bottom-right {
    justify-content: flex-end; align-items: flex-end; text-align: right;
}
.mtc-bm-cinematic-vision .overlay-content.pos-top-left {
    justify-content: flex-start; align-items: flex-start; text-align: left;
}
.mtc-bm-cinematic-vision .overlay-content.pos-top-right {
    justify-content: flex-start; align-items: flex-end; text-align: right;
}
.mtc-bm-cinematic-vision .overlay-content.pos-center {
    justify-content: center; align-items: center; text-align: center;
}
.mtc-bm-cinematic-vision .text-mask {
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.mtc-bm-cinematic-vision .overlay-content h2 {
    font-size: 4vw;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    opacity: 0; 
    transform: translateY(200%); 
}
.mtc-bm-cinematic-vision .overlay-content p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
    display: block;
    opacity: 0;
    transform: translateY(200%);
}
.mtc-bm-cinematic-vision .scroll-indicator {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    color: #947C6C;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.mtc-bm-cinematic-vision .scroll-arrow {
    margin-top: 10px;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #947C6C;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: mtc-bm-bounce 2s infinite ease-in-out;
}
@keyframes mtc-bm-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .mtc-bm-cinematic-vision .marquee-container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.15;
    }
    .mtc-bm-cinematic-vision .marquee-part {
        font-size: 18vw; 
    }
    .mtc-bm-cinematic-vision .img-container {
        width: 60vw;
        height: 40vh;
        border-radius: 40px;
    }
    .mtc-bm-cinematic-vision .overlay-content h2 {
        font-size: 8vw;
    }
    .mtc-bm-cinematic-vision .overlay-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .mtc-bm-cinematic-vision .scroll-indicator {
        display: none; 
    }
}


/* ==========================================================
   Mosaic Gallery Widget (Full-Width, GSAP-Pinned)
========================================================== */

/* --- Elementor Wrapper Overrides --- */
.elementor-widget-mtc_bm_mosaic_gallery,
.elementor-widget-mtc_bm_mosaic_gallery > .elementor-widget-container {
    overflow: visible !important;
}

/* --- Main Section --- */
.duo-pin-section {
    position: relative;
    width: 100%;
    height: 100vh; /* GSAP pin will handle the scroll space */
    overflow: hidden;
    padding: 0 !important;
}

/* --- Two-Column Layout (inside the pinned viewport) --- */
.duo-h-window {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* --- Left Column: Heading text --- */
.duo-mosaic-left {
    width: 25%;
    min-width: 220px;
    padding: 100px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    flex-shrink: 0;
}

.duo-mosaic-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

.duo-mosaic-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #CCCCCC;
    margin: 0;
}

/* --- Right Column: Mosaic area --- */
.duo-mosaic-right {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

/* --- Mosaic Track & Cards --- */
.duo-custom-track {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    height: 85vh !important;
    width: max-content !important;
    gap: 0 !important;
    padding-left: 20px;
    padding-right: 5vw;
    will-change: transform;
}

.mosaic-card {
    display: flex !important;
    width: 320px !important;
    margin-right: 30px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 20px !important;
}

/* Gradient Overlay */
.mosaic-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}
.mosaic-card-content { position: relative; z-index: 2; }

/* Mosaic Sizes */
.mosaic-card.duo-short { height: 35% !important; margin-bottom: 30px !important; }
.mosaic-card.duo-tall  { height: 55% !important; margin-bottom: 0 !important; }
.mosaic-card:nth-child(odd)  { margin-bottom: 30px !important; }
.mosaic-card:nth-child(even) { margin-bottom: 0 !important; }

/* Card Typography */
.mosaic-card-content h3 {
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px !important;
    line-height: 1.2em;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
}
.mosaic-card:hover {
    opacity: 0.9;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

/* --- Scroll UI (Progress Bar + Text) --- */
.duo-scroll-ui {
    position: absolute;
    bottom: 30px;
    left: 25%;  /* Align with the right column start */
    right: 0;
    padding: 0 5vw 0 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-sizing: border-box;
}

.duo-scroll-bar {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 14px;
    position: relative;
}

.duo-scroll-progress {
    width: 0%;
    height: 3px;
    background: #947C6C;
    position: absolute;
    top: -1px;
    left: 0;
}

.duo-scroll-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    transition: opacity 0.4s ease;
    text-transform: uppercase;
}

/* Desktop: show "SCROLL TO EXPLORE", hide "SWIPE TO EXPLORE" */
.duo-scroll-mobile { display: none; }
.duo-scroll-desktop { display: inline; }

/* --- Drag Cursor for Mobile --- */
.duo-drag-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.duo-drag-cursor-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.duo-drag-cursor-arrow {
    position: absolute;
    width: 0; 
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.duo-drag-cursor-arrow.left { border-right: 5px solid #ffffff; left: 10px; }
.duo-drag-cursor-arrow.right { border-left: 5px solid #ffffff; right: 10px; }

.duo-drag-cursor.active .duo-drag-cursor-circle {
    width: 18px;
    height: 18px;
    border-width: 2px;
}
.duo-drag-cursor.active .duo-drag-cursor-arrow.left { left: 0px; }
.duo-drag-cursor.active .duo-drag-cursor-arrow.right { right: 0px; }

/* --- Mobile Reset --- */
@media (max-width: 768px) {
    .duo-pin-section {
        height: auto !important;
        overflow: visible;
    }
    .duo-h-window {
        height: auto;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0;
    }

    /* Reorder: heading(1) → swipe text(2) → cards(3) */
    .duo-mosaic-left  { order: 1; }
    .duo-scroll-ui    { order: 2; }
    .duo-mosaic-right  { order: 3; }

    /* Heading: full width, stacked on top */
    .duo-mosaic-left {
        width: 100%;
        min-width: auto;
        padding: 50px 25px 30px;
    }
    .duo-mosaic-heading {
        font-size: 32px;
    }
    .duo-mosaic-description {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Right column: full width, no overflow hidden */
    .duo-mosaic-right {
        width: 100%;
        height: auto;
        overflow: visible;
    }

    /* Track: native horizontal swipe scroll */
    .duo-custom-track {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: auto !important;
        width: auto !important;
        padding: 0 20px !important;
        padding-bottom: 10px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        gap: 15px !important;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .duo-custom-track::-webkit-scrollbar {
        display: none;
    }

    /* Cards: large, almost full-width, snap to center */
    .mosaic-card {
        width: 85vw !important;
        min-width: 85vw !important;
        height: 65vh !important;
        max-height: 500px !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        scroll-snap-align: start;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .mosaic-card.duo-short,
    .mosaic-card.duo-tall {
        height: 65vh !important;
        max-height: 500px !important;
        margin-bottom: 0 !important;
    }

    .mosaic-card:nth-child(odd),
    .mosaic-card:nth-child(even) {
        margin-bottom: 0 !important;
    }

    /* Scroll UI: show as "SWIPE TO EXPLORE" centered above cards */
    .duo-scroll-ui {
        display: flex;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 20px 25px 25px;
        justify-content: center;
        align-items: center;
    }
    .duo-scroll-bar {
        display: none;
    }

    /* Mobile: show "SWIPE TO EXPLORE", hide "SCROLL TO EXPLORE" */
    .duo-scroll-desktop { display: none; }
    .duo-scroll-mobile { display: inline; }

    .duo-scroll-text {
        font-size: 13px;
        letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.4);
        opacity: 1 !important;
    }
    .duo-scroll-mobile::before {
        content: "← ";
    }
}