/* =========================================
GALLERY PAGE
NATFOE & IMP 2026
========================================= */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#f5f7fb;
    color:#18202c;
}


/* =========================================
HERO
========================================= */

.gallery-hero{

    min-height:520px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:120px 20px 90px;

    position:relative;

    overflow:hidden;

    background:
        linear-gradient(
            135deg,
            rgba(0,27,94,.98),
            rgba(0,52,110,.94)
        );
}


.gallery-hero::before{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    background:rgba(255,193,7,.08);

    top:-250px;
    right:-120px;
}


.gallery-hero::after{

    content:"";

    position:absolute;

    width:380px;
    height:380px;

    border-radius:50%;

    background:rgba(255,255,255,.035);

    bottom:-220px;
    left:-120px;
}


.gallery-hero-content{

    max-width:900px;

    position:relative;

    z-index:2;

    color:#fff;
}


.gallery-kicker{

    display:inline-block;

    padding:8px 20px;

    border-radius:40px;

    background:#ffc107;

    color:#001b5e;

    font-size:12px;

    font-weight:800;

    letter-spacing:2px;

    margin-bottom:20px;
}


.gallery-hero h1{

    margin:0;

    font-size:64px;

    line-height:1.1;

    font-weight:800;

    letter-spacing:-1px;
}


.gallery-hero h1 span{

    color:#ffc107;
}


.hero-line{

    width:90px;

    height:4px;

    background:#ffc107;

    border-radius:20px;

    margin:25px auto;
}


.gallery-hero p{

    max-width:780px;

    margin:auto;

    font-size:18px;

    line-height:1.8;

    color:rgba(255,255,255,.88);
}


.gallery-meta{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:12px;

    margin-top:35px;
}


.gallery-meta div{

    padding:11px 18px;

    border:1px solid
        rgba(255,255,255,.20);

    border-radius:40px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    font-size:13px;

    color:white;
}


.gallery-meta i{

    color:#ffc107;

    margin-right:7px;
}


/* =========================================
MAIN
========================================= */

.gallery-main{

    padding:90px 5%;

    background:#f5f7fb;
}


.gallery-container{

    width:100%;

    max-width:1400px;

    margin:auto;
}


/* =========================================
HEADING
========================================= */

.gallery-heading{

    text-align:center;

    max-width:850px;

    margin:0 auto 40px;
}


.gallery-heading > span{

    color:#d69f00;

    font-size:12px;

    font-weight:800;

    letter-spacing:2px;
}


.gallery-heading h2{

    margin:10px 0;

    font-size:44px;

    color:#001b5e;

    font-weight:800;
}


.gallery-heading h2 strong{

    color:#d69f00;
}


.heading-line{

    width:70px;

    height:4px;

    background:#ffc107;

    margin:15px auto 20px;

    border-radius:20px;
}


.gallery-heading p{

    color:#606875;

    line-height:1.8;

    font-size:16px;

    margin:0;
}


/* =========================================
FILTERS
========================================= */

.gallery-filters{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:12px;

    margin:45px 0 25px;
}


.filter-btn{

    border:none;

    background:white;

    color:#002147;

    padding:13px 24px;

    border-radius:40px;

    font-size:13px;

    font-weight:700;

    cursor:pointer;

    border:1px solid #e0e4eb;

    transition:.3s;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,.04);
}


.filter-btn i{

    margin-right:7px;
}


.filter-btn:hover{

    border-color:#ffc107;

    transform:translateY(-2px);
}


.filter-btn.active{

    background:#002147;

    color:white;

    border-color:#002147;

    box-shadow:
        0 8px 20px
        rgba(0,33,71,.18);
}


.filter-btn.active i{

    color:#ffc107;
}


/* =========================================
STATUS
========================================= */

.gallery-status{

    text-align:right;

    margin-bottom:18px;

    color:#777;

    font-size:13px;
}


.gallery-status strong{

    color:#002147;
}


/* =========================================
PHOTO GRID
========================================= */

.photo-grid{

    columns:4 280px;

    column-gap:20px;
}


.photo-card{

    position:relative;

    display:block;

    break-inside:avoid;

    margin-bottom:20px;

    overflow:hidden;

    border-radius:18px;

    background:#001b5e;

    cursor:pointer;

    box-shadow:
        0 8px 25px
        rgba(0,31,78,.10);

    animation:
        galleryFade .5s ease;
}


@keyframes galleryFade{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


.photo-card img{

    width:100%;

    height:auto;

    min-height:220px;

    object-fit:cover;

    display:block;

    transition:
        transform .6s ease,
        filter .5s ease;
}


/* =========================================
OVERLAY
========================================= */

.photo-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    padding:20px;

    opacity:0;

    transition:.4s;

    background:
        linear-gradient(
            180deg,
            rgba(0,20,60,.10),
            rgba(0,20,60,.92)
        );
}


.photo-card:hover .photo-overlay{

    opacity:1;
}


.photo-card:hover img{

    transform:scale(1.07);

    filter:saturate(1.08);
}


/* =========================================
NUMBER
========================================= */

.photo-number{

    width:38px;

    height:38px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#ffc107;

    color:#001b5e;

    font-size:12px;

    font-weight:800;
}


/* =========================================
PHOTO INFO
========================================= */

.photo-info{

    margin-top:auto;

    padding-right:45px;
}


.photo-info span{

    display:block;

    color:#ffc107;

    font-size:10px;

    font-weight:800;

    letter-spacing:1.2px;

    text-transform:uppercase;

    margin-bottom:5px;
}


.photo-info h3{

    margin:0;

    color:white;

    font-size:18px;

    line-height:1.35;
}


/* =========================================
VIEW BUTTON
========================================= */

.view-photo{

    position:absolute;

    right:20px;

    bottom:20px;

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    border:1px solid
        rgba(255,255,255,.35);

    background:
        rgba(255,255,255,.15);

    color:white;

    cursor:pointer;

    backdrop-filter:blur(8px);

    transition:.3s;
}


.view-photo:hover{

    background:#ffc107;

    color:#001b5e;

    transform:scale(1.08);
}


/* =========================================
EMPTY
========================================= */

.empty-gallery{

    display:none;

    text-align:center;

    padding:80px 20px;

    color:#777;
}


.empty-gallery.show{

    display:block;
}


.empty-gallery i{

    font-size:50px;

    color:#ffc107;

    margin-bottom:20px;
}


.empty-gallery h3{

    margin:0 0 8px;

    color:#002147;
}


/* =========================================
CTA
========================================= */

.gallery-cta{

    padding:90px 5%;

    background:
        linear-gradient(
            135deg,
            #00153d,
            #032965
        );

    color:white;

    text-align:center;
}


.gallery-cta-content{

    max-width:800px;

    margin:auto;
}


.gallery-cta-content > span{

    color:#ffc107;

    font-size:12px;

    font-weight:800;

    letter-spacing:2px;
}


.gallery-cta h2{

    font-size:40px;

    line-height:1.3;

    margin:15px 0;
}


.gallery-cta h2 strong{

    color:#ffc107;
}


.gallery-cta p{

    color:rgba(255,255,255,.78);

    line-height:1.8;

    margin-bottom:30px;
}


.back-home-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:14px 28px;

    background:#ffc107;

    color:#001b5e;

    text-decoration:none;

    border-radius:40px;

    font-weight:700;

    transition:.35s;
}


.back-home-btn:hover{

    background:white;

    transform:translateY(-3px);
}


/* =========================================
LIGHTBOX
========================================= */

.lightbox{

    position:fixed;

    inset:0;

    z-index:99999;

    display:none;

    align-items:center;

    justify-content:center;

    padding:30px;

}


.lightbox.active{

    display:flex;
}


.lightbox-background{

    position:absolute;

    inset:0;

    background:
        rgba(0,10,30,.94);

    backdrop-filter:blur(8px);
}


.lightbox-content{

    position:relative;

    z-index:2;

    width:min(1100px,92vw);

    max-height:92vh;

    display:flex;

    flex-direction:column;

    align-items:center;
}


.lightbox-image-wrapper{

    max-width:100%;

    max-height:78vh;

    display:flex;

    justify-content:center;

    align-items:center;
}


.lightbox-image-wrapper img{

    max-width:100%;

    max-height:78vh;

    object-fit:contain;

    border-radius:10px;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.5);
}


/* =========================================
LIGHTBOX CAPTION
========================================= */

.lightbox-caption{

    width:100%;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    margin-top:18px;

    padding:0 10px;

    color:white;
}


.lightbox-caption span{

    color:#ffc107;

    font-size:11px;

    font-weight:800;

    letter-spacing:1px;

    text-transform:uppercase;
}


.lightbox-caption h3{

    margin:4px 0 0;

    font-size:18px;
}


.lightbox-counter{

    flex-shrink:0;

    padding:8px 15px;

    border-radius:30px;

    background:rgba(255,255,255,.10);

    color:#fff;

    font-size:13px;
}


/* =========================================
LIGHTBOX CONTROLS
========================================= */

.lightbox-close,
.lightbox-prev,
.lightbox-next{

    position:absolute;

    z-index:5;

    border:none;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    color:white;

    background:
        rgba(255,255,255,.12);

    border:1px solid
        rgba(255,255,255,.20);

    backdrop-filter:blur(8px);

    transition:.3s;
}


.lightbox-close{

    top:25px;

    right:25px;

    width:48px;

    height:48px;

    border-radius:50%;

    font-size:20px;
}


.lightbox-prev,
.lightbox-next{

    top:50%;

    transform:translateY(-50%);

    width:52px;

    height:52px;

    border-radius:50%;

    font-size:18px;
}


.lightbox-prev{

    left:25px;
}


.lightbox-next{

    right:25px;
}


.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{

    background:#ffc107;

    color:#001b5e;
}


/* =========================================
BODY LOCK
========================================= */

body.lightbox-open{

    overflow:hidden;
}


/* =========================================
TABLET
========================================= */

@media(max-width:1100px){

    .photo-grid{

        columns:3 250px;
    }


    .gallery-hero h1{

        font-size:52px;
    }

}


/* =========================================
TABLET
========================================= */

@media(max-width:768px){

    .gallery-hero{

        min-height:470px;

        padding:120px 20px 70px;
    }


    .gallery-hero h1{

        font-size:42px;
    }


    .gallery-hero p{

        font-size:16px;
    }


    .gallery-meta{

        gap:8px;
    }


    .gallery-meta div{

        font-size:11px;

        padding:9px 13px;
    }


    .gallery-main{

        padding:70px 20px;
    }


    .gallery-heading h2{

        font-size:36px;
    }


    .photo-grid{

        columns:2 220px;
    }


    .lightbox-prev{

        left:12px;
    }


    .lightbox-next{

        right:12px;
    }

}


/* =========================================
MOBILE
========================================= */

@media(max-width:576px){

    .gallery-hero{

        min-height:430px;

        padding:110px 18px 60px;
    }


    .gallery-kicker{

        font-size:10px;

        padding:7px 14px;
    }


    .gallery-hero h1{

        font-size:32px;
    }


    .gallery-hero p{

        font-size:14px;

        line-height:1.7;
    }


    .gallery-meta{

        flex-direction:column;

        align-items:center;

        margin-top:25px;
    }


    .gallery-meta div{

        width:max-content;
    }


    .gallery-main{

        padding:60px 15px;
    }


    .gallery-heading h2{

        font-size:30px;
    }


    .gallery-heading p{

        font-size:14px;
    }


    .gallery-filters{

        gap:8px;
    }


    .filter-btn{

        padding:11px 15px;

        font-size:11px;
    }


    .gallery-status{

        text-align:center;

        margin-bottom:15px;
    }


    .photo-grid{

        columns:1;
    }


    .photo-card{

        margin-bottom:15px;

        border-radius:15px;
    }


    .photo-card img{

        min-height:250px;
    }


    /*
    Always show a small visual control
    on mobile because there is no hover.
    */

    .photo-overlay{

        opacity:1;

        background:
            linear-gradient(
                180deg,
                transparent 35%,
                rgba(0,20,60,.82)
            );
    }


    .photo-number{

        width:34px;

        height:34px;
    }


    .photo-info h3{

        font-size:17px;
    }


    .gallery-cta{

        padding:70px 20px;
    }


    .gallery-cta h2{

        font-size:28px;
    }


    .gallery-cta p{

        font-size:14px;
    }


    .lightbox{

        padding:15px;
    }


    .lightbox-image-wrapper{

        max-height:72vh;
    }


    .lightbox-image-wrapper img{

        max-height:72vh;

        border-radius:7px;
    }


    .lightbox-close{

        top:15px;

        right:15px;

        width:42px;

        height:42px;
    }


    .lightbox-prev,
    .lightbox-next{

        width:42px;

        height:42px;

        top:auto;

        bottom:95px;
    }


    .lightbox-prev{

        left:15px;
    }


    .lightbox-next{

        right:15px;
    }


    .lightbox-caption{

        margin-top:12px;

        padding:0;

        align-items:flex-end;
    }


    .lightbox-caption h3{

        font-size:15px;
    }


    .lightbox-counter{

        font-size:11px;

        padding:7px 11px;
    }

}