/* ================================================
   LEMON STAGGER GALLERY
   ================================================ */

.lemon-stagger-container {
    position: relative;
    width: 100%;
}

/* DESKTOP GRID */
.lemon-stagger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

/* ITEM */
.lemon-stagger-item {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: none;
    text-decoration: none;
}

/* IMAGE */
.lemon-stagger-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    transition: transform 0.4s ease;
}

.lemon-stagger-item:hover .lemon-stagger-img {
    transform: scale(1.03);
}

/* OVERLAY */
.lemon-stagger-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* PLUS CURSOR */
.lemon-stagger-plus {
    position: absolute;
    font-size: 32px;
    color: #000;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
}

/* DOTS (desktop hidden) */
.lemon-stagger-dots {
    display: none;
}


/* ================================================
   MOBILE GRID SLIDER
   ================================================ */

@media (max-width: 767px) {

    .lemon-stagger-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0;
        scrollbar-width: none;
    }

    .lemon-stagger-grid::-webkit-scrollbar { display: none; }

    .lemon-stagger-item {
        min-width: 100%;
        scroll-snap-align: start;
        cursor: default;
    }

    .lemon-stagger-dots {
        display: flex;
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        gap: 6px;
        z-index: 5;
    }

    .lemon-stagger-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.3);
        cursor: pointer;
        transition: background 0.2s;
    }

    .lemon-stagger-dot.active { background: #000; }
}


/* ================================================
   LIGHTBOX — BACKDROP
   ================================================ */

.lemon-lightbox-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 9998;
}

.lemon-lightbox-backdrop.is-open { display: block; }


/* ================================================
   LIGHTBOX — FULL SCREEN PANEL
   ================================================ */

.lemon-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    outline: none;
}

.lemon-lightbox.is-open { display: block; }

/* CLOSE BUTTON — top left, like Zara */
.lemon-lightbox-close {
    position: fixed;
    top: 14px;
    left: 16px;
    font-size: 17px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    color: #000;
    padding: 6px 8px;
    transition: opacity 0.2s;
}

.lemon-lightbox-close:hover { opacity: 0.45; }


/* ================================================
   LIGHTBOX — CONTINUOUS VERTICAL SCROLL CANVAS
   ================================================ */

.lemon-lightbox-inner {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    /* No scroll-snap: natural continuous scroll */
}

.lemon-lightbox-inner::-webkit-scrollbar { display: none; }

/* Each slide: natural height, images flow continuously */
.lemon-lightbox-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 4px 0;
}

.lemon-lightbox-slide img {
    max-width: 80%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}


/* ================================================
   THUMBNAILS — fixed, bottom-left overlay
   Stacked vertically, max 4 visible, rest scroll
   ================================================ */

.lemon-lightbox-thumbs {
    position: fixed;
    bottom: 24px;
    left: 16px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* 4 thumbs × 52px + 3 gaps × 5px = 223px */
    max-height: 223px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lemon-lightbox-thumbs::-webkit-scrollbar { display: none; }

.lemon-lightbox-thumb {
    /* reset button styles explicitly — avoid all:unset which breaks sizing */
    appearance: none;
    -webkit-appearance: none;
    background: #f5f5f5;
    border: 2px solid transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    /* fixed dimensions */
    display: block;
    cursor: pointer;
    width: 44px;
    height: 52px;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0.45;
    transition: border-color 0.18s, opacity 0.18s;
}

.lemon-lightbox-thumb:hover { opacity: 0.75; }

.lemon-lightbox-thumb.active {
    border-color: #000;
    opacity: 1;
}

.lemon-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}


/* ================================================
   MOBILE — same layout, slightly smaller thumbs
   ================================================ */

@media (max-width: 767px) {

    .lemon-lightbox-slide {
        padding-top: 0;
    }

    .lemon-lightbox-thumbs {
        bottom: 18px;
        left: 10px;
        gap: 4px;
        /* 4 thumbs × 46px + 3 gaps × 4px = 196px */
        max-height: 196px;
    }

    .lemon-lightbox-thumb {
        width: 38px;
        height: 46px;
    }
}

button.lemon-lightbox-close:focus,
.lemon-lightbox-thumb:focus,
.lemon-lightbox-thumb:hover{
    background-color:transparent!important;;
    color:black!important;
}

/* ================================================
   NUDE STYLE – PRODUCT LAYOUT
   (clean, fluid, no hacks)
   ================================================ */
