/* DoorWin: Recent Work Marquee (Before & After pairs) */
/* --- Work marquee (Merged Pairs, Infinite Loop) --- */
    .work-marquee {
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 30px 0 40px;
        overflow: hidden;
    }

    .work-marquee-header {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 16px 20px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
    }

    .work-marquee-title {
        margin: 0;
        font-size: 20px;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.2;
    }

    .work-marquee-sub { margin: 6px 0 0; font-size: 15px; color: #64748b; }

    .work-marquee-cta {
        font-weight: 700;
        color: #0ea5e9;
        text-decoration: none;
        white-space: nowrap;
        font-size: 15px;
    }
    .work-marquee-cta:hover { text-decoration: underline; color: #0284c7; }

    .work-marquee-viewport {
        position: relative;
        width: 100%;
        display: flex;
        overflow: hidden;
        /* Fades on edges */
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }

    .work-marquee-track {
        display: flex;
        width: -webkit-max-content;
        width: max-content;
        gap: 24px;
        animation: work-marquee-scroll 60s linear infinite;
        will-change: transform;
        transform: translate3d(0,0,0);
        backface-visibility: hidden;
    }

    .work-marquee-track:hover { animation-play-state: paused; }

    .work-marquee-group {
        display: flex;
        gap: 24px;
        padding: 0;
        flex-shrink: 0;
    }

    /* --- Container for the merged pair --- */
    .work-marquee-pair {
        display: flex;
        gap: 0; /* CRITICAL: No gap between Before and After */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: #0f172a;
    }

    .work-marquee-pair:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
        border-color: #cbd5e1;
    }

    a.work-marquee-item {
        position: relative;
        flex: 0 0 auto;
        width: 200px;
        height: 266px;
        overflow: hidden;
        text-decoration: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    /* Remove right border from the last item (After image) */
    a.work-marquee-item:last-child { border-right: none; }

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

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

    .work-marquee-badge {
        position: absolute;
        left: 10px;
        bottom: 10px;
        padding: 5px 9px;
        border-radius: 6px;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255,255,255,0.15);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        z-index: 2;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        white-space: nowrap;
    }

    /* --- POS TOP RIGHT MODIFIER --- */
    .work-marquee-badge.pos-top-right {
        bottom: auto;
        left: auto;
        top: 12px;
        right: 12px;
        background: rgba(51, 65, 85, 0.9); /* Slightly different color for city badge */
    }

    @keyframes work-marquee-scroll {
        from { transform: translate3d(0,0,0); }
        to { transform: translate3d(-50%,0,0); }
    }

    @media (prefers-reduced-motion: reduce) {
        .work-marquee-track { animation: none; }
        .work-marquee-track:hover { animation-play-state: running; }
    }
