:root{
    --gal-navy:#0B1D42;
    --gal-blue:#1E96D6;
    --gal-blue-light:#5FC7F0;
}

/* ---- album grid ---- */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:28px;
}
.gallery-card{
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    border:1px solid #E1E8F2;
    cursor:pointer;
    transition:transform .25s ease, box-shadow .25s ease;
}
.gallery-card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 40px -18px rgba(11,29,66,0.28);
}
.gallery-cover{
    position:relative;
    width:100%;
    aspect-ratio:4/3;
    background:#0B1D42;
    overflow:hidden;
}
.gallery-cover img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1s ease;
}
.gallery-cover img.active{ opacity:1; }
.gallery-cover .gallery-count{
    position:absolute;
    top:12px; right:12px;
    background:rgba(11,29,66,0.72);
    color:#fff;
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    padding:4px 10px;
    border-radius:999px;
    z-index:2;
}
.gallery-cover .gallery-dots{
    position:absolute;
    bottom:12px; left:0; right:0;
    display:flex;
    justify-content:center;
    gap:5px;
    z-index:2;
}
.gallery-cover .gallery-dots span{
    width:5px; height:5px; border-radius:50%;
    background:rgba(255,255,255,0.45);
    transition:background .3s ease, transform .3s ease;
}
.gallery-cover .gallery-dots span.active{
    background:#fff;
    transform:scale(1.3);
}
.gallery-card-body{ padding:20px 22px 22px; }
.gallery-card-body h3{
    font-size:18px;
    color:var(--gal-navy);
    margin:0 0 8px;
}
.gallery-card-body p{
    font-size:13.8px;
    color:#5B6B85;
    line-height:1.6;
    margin:0;
}

/* ---- lightbox ---- */
.gallery-lightbox{
    position:fixed;
    inset:0;
    background:rgba(6,12,30,0.94);
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.gallery-lightbox.open{ display:flex; }

.gl-close{
    position:absolute;
    top:20px; right:24px;
    width:42px; height:42px;
    border-radius:50%;
    background:rgba(255,255,255,0.1);
    border:none;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .2s ease;
}
.gl-close:hover{ background:rgba(255,255,255,0.2); }

.gl-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:52px; height:52px;
    border-radius:50%;
    background:rgba(255,255,255,0.1);
    border:none;
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .2s ease, transform .2s ease;
    z-index:2;
}
.gl-arrow:hover{ background:var(--gal-blue); }
.gl-arrow.prev{ left:18px; }
.gl-arrow.next{ right:18px; }
.gl-arrow svg{ width:22px; height:22px; }

.gl-content{
    max-width:min(90vw, 1100px);
    max-height:88vh;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.gl-image-wrap{
    max-width:100%;
    max-height:72vh;
    display:flex;
    align-items:center;
    justify-content:center;
}
.gl-image-wrap img{
    max-width:100%;
    max-height:72vh;
    object-fit:contain;
    border-radius:10px;
    box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
}
.gl-meta{
    margin-top:18px;
    text-align:center;
    color:#fff;
    max-width:640px;
}
.gl-meta .gl-caption{
    font-size:15px;
    line-height:1.6;
    color:rgba(255,255,255,0.92);
}
.gl-meta .gl-counter{
    margin-top:8px;
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    letter-spacing:.06em;
    color:var(--gal-blue-light);
    text-transform:uppercase;
}

@media (max-width: 640px){
    .gl-arrow{ width:42px; height:42px; }
    .gl-arrow.prev{ left:6px; }
    .gl-arrow.next{ right:6px; }
    .gl-close{ top:12px; right:12px; }
}
