/* ══════════════════════════════════════════════════════════════
   Loop Loop Infinite Slider
   ══════════════════════════════════════════════════════════════ */

.loop-slider-section {
    position: relative;
    width: 100%;
    /* Strict full viewport height to align with physical bounds */
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden;
    background: #f5f3ef;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

.loop-slider-sticky {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f5f3ef;
    overflow: hidden;
}

/* ── Project List (full-screen images) ── */
.loop-project-list {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loop-project {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform;
}

.loop-project img {
    position: absolute;
    top: -15vh;
    left: 0;
    width: 100%;
    height: 130vh;
    object-fit: cover;
    object-position: center 50%;
    display: block;
    will-change: transform;
}

/* ── Center Card ── */












/* Card content transition */


/* ── Center White Strip (Minimap) ── */
.loop-minimap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: clamp(300px, 80vw, 1000px);
    height: 300px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.loop-minimap-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Info Container (Behind image, spans full width) ── */
.loop-minimap-info-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below the image */
}

.loop-minimap-item-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4vw;
    will-change: transform;
}

.loop-info-left, .loop-info-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2.5rem 0;
    color: #111;
    font-family: var(--font-en), sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    width: 30%;
}

.loop-info-right {
    text-align: right;
    align-items: flex-end;
}

.loop-info-left p, .loop-info-right p {
    margin: 0;
}

.loop-info-desc {
    margin-top: auto;
}

/* ── Minimap Image Mask ── */
.loop-minimap-img-preview {
    position: relative;
    width: clamp(150px, 25vw, 250px);
    height: 100%;
    overflow: hidden;
    z-index: 2; /* Above the text */
}

.loop-minimap-img-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    overflow: hidden;
}

.loop-minimap-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
    will-change: transform;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .loop-slider-section {
        /* Replace overflow: hidden with clip to prevent breaking child position: sticky */
        overflow: clip !important;
    }

    .loop-slider-sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
    }
    
    .loop-minimap {
        width: 90vw;
        height: 200px;
    }

    .loop-minimap-img-item {
        /* Create a 1px physical overlap on top and bottom to eliminate fractional sub-pixel rendering gaps during translation */
        height: calc(100% + 2px) !important;
        top: -1px !important;
    }

    .loop-project img {
        /* Provide enough vertical physical buffer so the parallax offset never exposes the empty background */
        top: -20vh !important;
        height: 140vh !important;
    }

    .loop-info-left, .loop-info-right {
        padding: 1.5rem 0;
        font-size: 0.6rem;
    }
}
