/* ── Image Lightbox ─────────────────────────────────────────────────── */

/* Trigger wrapper */
.nl-img-expand {
    position: relative;
    display: block;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: inherit;
}

.nl-img-expand > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover overlay */
.nl-img-expand__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    border-radius: inherit;
}

.nl-img-expand__overlay-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 8px 16px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nl-img-expand__overlay-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .nl-img-expand:hover .nl-img-expand__overlay { opacity: 1; }
    .nl-img-expand:hover > img { transform: scale(1.025); }
}

/* Touch tap feedback */
.nl-img-expand:active .nl-img-expand__overlay { opacity: 1; }


/* ── Lightbox modal ─────────────────────────────────────────────────── */

.nl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.nl-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nl-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(1200px, 94vw);
    max-height: 90vh;
}

.nl-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    transform: scale(0.93);
    transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nl-lightbox.is-open .nl-lightbox__img {
    transform: scale(1);
}

/* Close button */
.nl-lightbox__close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: background 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
    z-index: 1;
}

.nl-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nl-lightbox__close svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Prev / Next nav */
.nl-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: background 0.18s ease, transform 0.18s ease;
    user-select: none;
}

.nl-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.nl-lightbox__nav--prev { left: -56px; }
.nl-lightbox__nav--next { right: -56px; }

.nl-lightbox__nav.is-hidden { opacity: 0; pointer-events: none; }

.nl-lightbox__nav svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Counter badge */
.nl-lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .nl-lightbox__nav--prev { left: 4px; }
    .nl-lightbox__nav--next { right: 4px; }
    .nl-lightbox__stage { max-width: 100%; }
}
