/* ============================
   WJP GALLERY (Scoped Styles)
============================ */

.wjp-gallery{
    max-width:1200px;
    margin:auto;
    padding:30px 16px;
}

.wjp-gallery .wjp-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

@media(max-width:900px){
    .wjp-gallery .wjp-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:520px){
    .wjp-gallery .wjp-grid{
        grid-template-columns:1fr;
    }
}

.wjp-gallery .wjp-card{
    position:relative;
    overflow:hidden;
    border-radius:10px;
    height:230px;
    background:#ffffff;
}

.wjp-gallery .wjp-card::before {
    content:"";
    position:absolute;
    inset:0;
    background-image:var(--bg);
    background-size:cover;
    background-position:center;
    filter:blur(25px);
    transform:scale(1.2);
    opacity:0.65;
}

.wjp-gallery .thumb{
    position:relative;
    z-index:2;
    max-width:100%;
    max-height:100%;
    margin:auto;
    display:block;
    object-fit:contain;
    padding:6px;
}

.wjp-gallery .wjp-card:hover .thumb{
    transform:scale(1.03);
    transition:0.3s;
}


/* ============================
   LIGHTBOX (Scoped Styles)
============================ */

.wjp-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.wjp-lightbox.open{
    display:flex;
}

.wjp-lightbox .panel{
    background:#000;
    padding:10px;
    border-radius:10px;
}

.wjp-lightbox .imgwrap img{
    max-width:95vw;
    max-height:90vh;
}

.wjp-lightbox .wjp-close{
    position:absolute;
    top:20px;
    right:20px;
    color:#fff;
    font-size:32px;
    background:none;
    border:none;
    cursor:pointer;
}
