/*=========================================================
                    GOOGLE FONT
=========================================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*=========================================================
                    ROOT VARIABLES
=========================================================*/

:root{
    --primary:#0b1f3a;
    --primary-light:#16355f;
    --primary-dark:#071426;
    --secondary:#F8FCF7;
    --white:#FFFFFF;
    --black:#000000;
    --text:#374151;
    --border:#E5E7EB;
    --shadow:0 2px 8px rgba(0,0,0,.08);
    --shadow-hover:0 25px 60px rgba(0,0,0,.15);
    --radius:20px;
    --transition:.35s ease;
}



/*=========================================================
                    RESET
=========================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:var(--black);
    background:var(--white);
    overflow-x:hidden;
}

img{
    width:100%;
    display:block;
}


/*=========================================================
                    GALLERY HERO
=========================================================*/

.gallery-hero{
    padding:60px 0 30px;
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

/*=========================================================
                    HERO CONTAINER
=========================================================*/

.gallery-heading{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    max-width:900px;
    margin:0 auto;
    animation:fadeUp .6s ease;
}

/*=========================================================
                    EYEBROW
=========================================================*/

.gallery-heading .eyebrow{
    display:inline-block;
    padding:8px 18px;
    border-radius:50px;
    background:#eaf7e8;
    color:#0b1f3a;
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:18px;
}

/*=========================================================
                    TITLE
=========================================================*/

.gallery-heading .section-heading{
    font-size:46px;
    font-weight:700;
    color:#0b1f3a;
    line-height:1.2;
    margin-bottom:12px;
}

/*=========================================================
                    ANIMATION
=========================================================*/

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/*=========================================================
                    RESPONSIVE
=========================================================*/

@media (max-width:992px){

    .gallery-heading .section-heading{
        font-size:38px;
    }

    .gallery-hero{
        padding:50px 0 25px;
    }
}

@media (max-width:768px){

    .gallery-heading .section-heading{
        font-size:32px;
    }

    .gallery-heading .eyebrow{
        font-size:12px;
        padding:6px 14px;
    }
}

@media (max-width:576px){

    .gallery-heading .section-heading{
        font-size:26px;
        line-height:1.3;
    }

    .gallery-hero{
        padding:40px 0 20px;
    }
}

/*=========================================================
                    COMMON
=========================================================*/

.container{
    width:min(1320px,92%);
    margin:auto;
}

section{
    padding:100px 0;
}

/*=========================================================
                    GALLERY SECTION
=========================================================*/

.gallery-section{
    padding:50px 0;
    background:linear-gradient(180deg,#FFFFFF 0%,#F8FAFC 100%);
}

/*=========================================================
                    TOP LAYOUT
=========================================================*/

.gallery-top{
    display:grid;
    grid-template-columns:1.8fr 1fr;
    gap:25px;
    margin-bottom:40px;
}

/*=========================================================
                    BIG IMAGE (FIXED 100%)
=========================================================*/

.gallery-main{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    background:#fff;
    border:1px solid #4169e1;
    box-shadow:var(--shadow);
}

.gallery-main img{
    width:100%;
    height:430px;
    object-fit:cover;
    display:block;

    border-radius:20px;

    transition:transform .35s ease, opacity .25s ease;

    will-change: transform;
}

/* IMPORTANT: remove overflow scaling issue */
.gallery-main:hover img{
    transform:scale(1.01);
}

/* fade effect */
.gallery-main img.fade{
    opacity:.4;
    transform:scale(1);
}

/*=========================================================
                    SIDE IMAGES
=========================================================*/

.gallery-side{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.gallery-side img{
    width:100%;
    height:200px;
    object-fit:cover;
    border:2px solid #4169e1;
    border-radius:14px;
    box-shadow:var(--shadow);
    cursor:pointer;
    transition:transform .3s ease, border-color .3s ease;
}

.gallery-side img:hover{
    transform:translateY(-6px);
    border-color:var(--primary);
}

.gallery-side img.active{
    border:3px solid var(--primary);
    transform:scale(1.03);
}

/*=========================================================
                    BOTTOM GRID
=========================================================*/

.gallery-bottom{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
}

.gallery-bottom img{
    width:100%;
    height:160px;
    object-fit:cover;
    border:2px solid #4169e1;
    border-radius:14px;
    box-shadow:var(--shadow);
    cursor:pointer;
    transition:transform .3s ease, border-color .3s ease;
}

.gallery-bottom img:hover{
    transform:translateY(-6px);
    border-color:var(--primary);
}

.gallery-bottom img.active{
    border:3px solid var(--primary);
    transform:scale(1.03);
}

/*=========================================================
                    RESPONSIVE (FIXED TYPO)
=========================================================*/

@media (max-width:1200px){
    .gallery-main img{ height:400px; }
    .gallery-side img{ height:180px; }
    .gallery-bottom img{ height:150px; }
}

@media (max-width:992px){

    section{
        padding:80px 0;
    }

    .gallery-top{
        grid-template-columns:1fr;
    }

    .gallery-main img{ height:350px; }

    .gallery-side{
        grid-template-columns:repeat(4,1fr);
    }

    .gallery-bottom{
        grid-template-columns:repeat(3,1fr);
    }
}

@media (max-width:768px){

    .gallery-main img{ height:300px; }

    .gallery-side{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-bottom{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:576px){

    .gallery-main img{ height:240px; }

    .gallery-side img{ height:100px; }

    .gallery-bottom img{ height:100px; }
}