/* ==========================================================
   Landing V2 - Gallery Lightbox Navigation
   ========================================================== */

html.is-gallery-lightbox-open,
body.is-gallery-lightbox-open{
    overflow:hidden;
}

.lv2-gallery-lightbox{
    padding:42px 84px 28px;
}

.lv2-gallery-lightbox-content{
    width:min(1120px,calc(100vw - 180px));
    max-height:calc(100vh - 70px);
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
}

.lv2-gallery-lightbox-stage{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:0;
    flex:1 1 auto;
}

.lv2-gallery-lightbox-stage img{
    display:block;
    width:auto;
    max-width:100%;
    max-height:calc(100vh - 210px);
    object-fit:contain;
    border-radius:16px;
}

.lv2-gallery-lightbox-meta{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    min-height:26px;
    color:#fff;
}

.lv2-gallery-lightbox-meta p{
    margin:0;
    color:#fff;
    font-size:15px;
    font-weight:600;
    text-align:center;
}

.lv2-gallery-lightbox-meta span{
    flex:0 0 auto;
    padding:4px 8px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:999px;
    color:rgba(255,255,255,.82);
    font-size:11px;
    font-weight:700;
}

.lv2-gallery-lightbox-nav{
    position:fixed;
    z-index:1003;
    top:50%;
    width:50px;
    height:50px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.3);
    border-radius:50%;
    background:rgba(13,38,30,.68);
    color:#fff;
    font-size:18px;
    cursor:pointer;
    transform:translateY(-50%);
    backdrop-filter:blur(8px);
    transition:background .18s ease, transform .18s ease;
}

.lv2-gallery-lightbox-nav:hover,
.lv2-gallery-lightbox-nav:focus{
    background:#087b5b;
    outline:none;
}

.lv2-gallery-lightbox-nav:hover{
    transform:translateY(-50%) scale(1.05);
}

.lv2-gallery-lightbox-nav.is-prev{
    left:24px;
}

.lv2-gallery-lightbox-nav.is-next{
    right:24px;
}

.lv2-gallery-lightbox-thumbs{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:9px;
    padding:4px 2px 3px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:thin;
}

.lv2-gallery-lightbox-thumb{
    flex:0 0 76px;
    width:76px;
    height:52px;
    padding:2px;
    border:2px solid transparent;
    border-radius:9px;
    background:rgba(255,255,255,.08);
    opacity:.62;
    overflow:hidden;
    cursor:pointer;
    transition:border-color .18s ease,opacity .18s ease,transform .18s ease;
}

.lv2-gallery-lightbox-thumb img{
    display:block;
    width:100%;
    height:100%;
    border-radius:6px;
    object-fit:cover;
}

.lv2-gallery-lightbox-thumb:hover{
    opacity:.9;
}

.lv2-gallery-lightbox-thumb.is-active{
    border-color:#fff;
    opacity:1;
    transform:translateY(-1px);
}

.lv2-gallery-lightbox .lv2-lightbox-close{
    z-index:1004;
}

@media(max-width:767.98px){
    .lv2-gallery-lightbox{
        padding:54px 14px 18px;
    }

    .lv2-gallery-lightbox-content{
        width:100%;
        max-height:calc(100vh - 74px);
        gap:10px;
    }

    .lv2-gallery-lightbox-stage img{
        max-height:calc(100vh - 190px);
        border-radius:12px;
    }

    .lv2-gallery-lightbox-nav{
        width:42px;
        height:42px;
        top:45%;
        background:rgba(13,38,30,.78);
    }

    .lv2-gallery-lightbox-nav.is-prev{
        left:8px;
    }

    .lv2-gallery-lightbox-nav.is-next{
        right:8px;
    }

    .lv2-gallery-lightbox-meta{
        gap:10px;
    }

    .lv2-gallery-lightbox-meta p{
        max-width:75%;
        font-size:13px;
    }

    .lv2-gallery-lightbox-thumb{
        flex-basis:64px;
        width:64px;
        height:46px;
    }
}
