html{
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    background: #f4f7fb;
    color: #0B1F5B;
    overflow-x: hidden;
}
#navbar{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 92px;
    box-sizing: border-box;
    align-items: center;
    padding: 0 40px;
    background: rgba(9, 24, 68, .9);
    backdrop-filter: blur(16px);
    transition: height .35s ease, background .35s ease, box-shadow .35s ease;
}
#navbar.scrolled{
    height: 75px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 3px 18px rgba(0,0,0,.15);
}
.nav-left,
.nav-right{
    display: flex;
    gap: 15px;
    list-style: none;
}
.nav-left{
    justify-content: flex-end;
}
.nav-right{
    justify-content: flex-start;
}
#navbar a{
    color: white;
    position: relative;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color .3s ease;
}
#navbar.scrolled a{
    color: #0B1F5B;
}
#navbar a:hover,
#navbar a.active{
    color: #FFD700;
}
#navbar.scrolled a:hover,
#navbar.scrolled a.active{
    color: #D62828;
}
#navbar a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: #FFD700;
    transition: width .3s ease;
}
#navbar a:hover::after,
#navbar a.active::after{
    width: 100%;
}
.logo img{
    width: 104px;
    display: block;
    position: relative;
    left: 20px;
    transition: width .35s ease;
}
#navbar.scrolled .logo img{
    width: 90px;
}
.menu-btn{
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
#navbar.scrolled .menu-btn{
    color: #0B1F5B;
}
.mobile-menu{
    position: fixed;
    top: 92px;
    left: -100%;
    width: 30%;
    height: 100vh;
    overflow-y: auto;
    background: white;
    display: flex;
    flex-direction: column;
    transition: left .4s ease, top .35s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    z-index: 998;
}
#navbar.scrolled + .mobile-menu{
    top: 75px;
}
.mobile-menu.show{
    left: 0;
}
.mobile-menu a{
    padding: 18px;
    text-decoration: none;
    color: #0B1F5B;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}
.mobile-menu a:hover,
.mobile-menu a.active{
    color: #D62828;
}
.menu-btn.active i::before{
    content:"\f00d";
}
.gallery-hero{
    min-height: 460px;
    display: grid;
    place-items: center;
    padding: 120px 20px 76px;
    color: white;
    text-align: center;
    background:
        linear-gradient(rgba(7,25,70,.82), rgba(7,25,70,.68)),
        url("preview-assets/school-life-960.webp") center/cover;
}
.gallery-hero-inner{
    width: min(900px, 100%);
}
.eyebrow,
.gallery-intro span,
.section-heading span,
.future-gallery span{
    color: #FFD700;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.gallery-hero h1{
    margin: 12px 0 16px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.04;
}
.gallery-hero p{
    margin: 0 auto;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.7;
}
main{
    padding: 0 20px 90px;
}
.gallery-intro,
.future-gallery{
    width: min(1120px, 100%);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 12px;
    background: white;
    box-shadow: 0 22px 48px rgba(8,24,65,.13);
}
.gallery-intro{
    margin: -58px auto 48px;
}
.gallery-intro span,
.section-heading span,
.future-gallery span{
    color: #D62828;
}
.gallery-intro h2,
.future-gallery h2{
    margin: 8px 0 10px;
    font-size: 30px;
}
.gallery-intro p,
.future-gallery p{
    max-width: 730px;
    margin: 0;
    color: #546078;
    line-height: 1.7;
}
.gallery-intro a,
.future-gallery a{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    color: #071946;
    background: #FFD700;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 15px 30px rgba(255,215,0,.24);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.gallery-intro a:hover,
.future-gallery a:hover{
    transform: translateY(-3px);
    background: #fff5a8;
    box-shadow: 0 18px 34px rgba(8,24,65,.16);
}
.featured-gallery{
    width: min(1120px, 100%);
    margin: 0 auto 66px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 28px;
    align-items: stretch;
}
.featured-photo,
.featured-copy,
.gallery-item,
.future-gallery{
    border-radius: 12px;
    background: white;
    box-shadow: 0 18px 40px rgba(8,24,65,.1);
}
.featured-photo{
    min-height: 400px;
    position: relative;
    overflow: hidden;
}
.featured-photo img{
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
    object-fit: cover;
    transition: transform .8s ease;
}
.featured-gallery:hover .featured-photo img,
.gallery-item:hover img{
    transform: scale(1.06);
}
.featured-photo span,
.gallery-item > span{
    position: absolute;
    left: 22px;
    top: 22px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #071946;
    background: #FFD700;
    font-size: 13px;
    font-weight: 900;
}
.featured-copy{
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-copy > p:first-child{
    margin: 0;
    color: #D62828;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.featured-copy h2{
    margin: 10px 0 14px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}
.featured-copy p:last-of-type{
    margin: 0;
    color: #546078;
    line-height: 1.75;
}
.gallery-stats{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}
.gallery-stats span{
    display: block;
    padding: 16px;
    border-radius: 8px;
    background: #f4f7fb;
    color: #546078;
    font-weight: 700;
}
.gallery-stats strong{
    display: block;
    color: #D62828;
    font-size: 30px;
    line-height: 1;
}
.gallery-section{
    width: min(1120px, 100%);
    margin: 0 auto;
}
.section-heading{
    text-align: center;
    margin-bottom: 22px;
}
.section-heading h2{
    margin: 8px 0 10px;
    font-size: 34px;
}
.section-heading p{
    margin: 0 auto;
    max-width: 650px;
    color: #546078;
    line-height: 1.7;
}
.gallery-filters{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}
.gallery-filters button{
    padding: 11px 18px;
    border: 1px solid #d6deeb;
    border-radius: 999px;
    color: #0B1F5B;
    background: white;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.gallery-filters button:hover,
.gallery-filters button.active{
    color: #071946;
    background: #FFD700;
    border-color: #FFD700;
    transform: translateY(-2px);
}
.gallery-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 18px;
}
.gallery-item{
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: white;
    text-align: left;
    font: inherit;
    background: #071946;
    transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover{
    transform: translateY(-8px);
    box-shadow: 0 28px 54px rgba(8,24,65,.18);
}
.gallery-item.hidden{
    display: none;
}
.gallery-item.tall{
    grid-row: span 2;
}
.gallery-item.wide{
    grid-column: span 2;
}
.gallery-item img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s ease;
}
.gallery-item::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,25,70,.88), rgba(7,25,70,.08) 58%);
}
.gallery-item div{
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
}
.gallery-item h3{
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.2;
}
.gallery-item p{
    margin: 0;
    color: #dce6f7;
    font-size: 14px;
}
.gallery-item > span{
    z-index: 2;
}
.future-gallery{
    margin: 46px auto 0;
}
.lightbox{
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(7,25,70,.78);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.show{
    opacity: 1;
    visibility: visible;
}
.lightbox-dialog{
    width: min(1040px, 100%);
    max-height: calc(100vh - 44px);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 30px 80px rgba(0,0,0,.34);
    transform: translateY(16px) scale(.96);
    transition: transform .3s ease;
}
.lightbox.show .lightbox-dialog{
    transform: translateY(0) scale(1);
}
.lightbox-close{
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #071946;
    background: #FFD700;
    cursor: pointer;
    font-size: 20px;
}
.lightbox img{
    width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: contain;
    background: #071946;
}
.lightbox-copy{
    padding: 24px;
}
.lightbox-copy h2{
    margin: 0 0 8px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 30px;
}
.lightbox-copy p{
    margin: 0;
    color: #546078;
    line-height: 1.65;
}
.site-footer{
    margin-top: 90px;
    background: #071946;
    color: #f5f8ff;
}
.footer-main{
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 42px;
    display: grid;
    grid-template-columns: 1.4fr .9fr 1fr;
    gap: 42px;
}
.footer-brand img{
    width: 82px;
    height: auto;
    margin-bottom: 16px;
}
.footer-brand h3,
.footer-links h4,
.footer-contact h4{
    margin: 0 0 16px;
}
.footer-brand h3{
    font-family: 'Merriweather', Georgia, serif;
    font-size: 24px;
    line-height: 1.25;
}
.footer-brand p,
.footer-contact p{
    margin: 0 0 12px;
    color: #cbd5ea;
    line-height: 1.6;
}
.footer-socials{
    display: flex;
    gap: 12px;
    margin-top: 22px;
}
.footer-socials a{
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #071946;
    background: #FFD700;
    text-decoration: none;
    transition: transform .3s ease, background .3s ease;
}
.footer-socials a:hover{
    background: white;
    transform: translateY(-4px);
}
.footer-links{
    display: flex;
    flex-direction: column;
}
.footer-links a{
    width: fit-content;
    margin-bottom: 10px;
    color: #cbd5ea;
    text-decoration: none;
    transition: color .3s ease, transform .3s ease;
}
.footer-links a:hover{
    color: #FFD700;
    transform: translateX(4px);
}
.footer-contact i{
    width: 22px;
    color: #FFD700;
}
.footer-bottom{
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    padding: 18px 20px;
}
.footer-bottom p{
    margin: 0;
    color: #bdc8df;
    font-size: 14px;
}
.footer-bottom .developer-credit{ margin-top: 7px; color: #eef3ff; font-size: 13px; }
.developer-credit strong{ color: #ffd75a; }
.developer-credit a{ color: #fff; font-weight: 700; text-decoration: none; }
.developer-credit a:hover{ color: #ffd75a; text-decoration: underline; }
@media(max-width:1200px){
    #navbar{
        display: flex;
        justify-content: space-between;
        padding: 0 25px;
    }
    .nav-left,
    .nav-right{
        display: none;
    }
    .menu-btn{
        display: block;
    }
    .logo{
        padding-right: 80px;
    }
    .featured-gallery{
        grid-template-columns: 1fr;
    }
    .gallery-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .footer-main{
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand{
        grid-column: 1 / -1;
    }
}
@media(max-width:760px){
    main{
        padding-left: 14px;
        padding-right: 14px;
    }
    .gallery-hero{
        min-height: 400px;
        padding: 104px 16px 58px;
    }
    .gallery-hero h1{
        font-size: 38px;
    }
    .gallery-intro,
    .future-gallery{
        display: block;
        padding: 24px;
    }
    .gallery-intro h2,
    .future-gallery h2,
    .section-heading h2{
        font-size: 27px;
    }
    .gallery-intro a,
    .future-gallery a{
        width: fit-content;
        margin-top: 20px;
    }
    .featured-photo,
    .featured-photo img{
        min-height: 300px;
    }
    .featured-copy{
        padding: 26px;
    }
    .gallery-grid{
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-item.wide{
        grid-column: span 2;
    }
    .gallery-stats{
        grid-template-columns: 1fr;
    }
    .footer-main{
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 46px;
    }
}
@media(max-width:480px){
    #navbar{
        height: 82px;
        padding: 0 16px;
    }
    #navbar.scrolled{
        height: 70px;
    }
    .logo{
        padding-right: 48px;
    }
    .logo img,
    #navbar.scrolled .logo img{
        width: 78px;
        left: 0;
    }
    .menu-btn{
        font-size: 26px;
    }
    .mobile-menu{
        top: 82px;
        width: 86%;
    }
    #navbar.scrolled + .mobile-menu{
        top: 70px;
    }
    .gallery-hero h1{
        font-size: 33px;
    }
    .gallery-grid{
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    .gallery-item.tall,
    .gallery-item.wide{
        grid-row: span 1;
        grid-column: span 1;
    }
    .gallery-filters{
        justify-content: flex-start;
    }
    .lightbox{
        padding: 12px;
    }
    .lightbox-copy{
        padding: 20px;
    }
    .lightbox-copy h2{
        font-size: 24px;
    }
}
