/* ==========================================
   GRACELAND SCHOOLS - GALLERY
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#0c4b3e;

    --primary-dark:#07352d;

    --secondary:#d7a928;

    --light:#f6f8f7;

    --text:#68716d;

    --dark:#17201d;

    --white:#fff;

    --border:#e4e9e7;

}

html{
    scroll-behavior:smooth;
}

body{

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color:var(--dark);

    line-height:1.7;

    background:#fff;

}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

button{
    font-family:inherit;
}

.container{

    width:90%;

    max-width:1200px;

    margin:auto;

}

/* ==========================================
   HERO
========================================== */

.page-hero{

    min-height:390px;

    display:flex;

    align-items:center;

    position:relative;

    background:

        linear-gradient(
            rgba(7,53,45,.35),
            rgba(7,53,45,.35)
        ),
        url("../img/sch-building.jpg")
        center/cover no-repeat;

}

.hero-overlay{

    position:absolute;

    inset:0;

}

.hero-content{

    position:relative;

    color:#fff;

    text-align:center;

}

.hero-label{

    color:var(--secondary);

    font-size:13px;

    font-weight:bold;

    letter-spacing:2px;

}

.hero-content h1{

    font-size:55px;

    line-height:1.2;

    margin:12px 0;

}

.hero-content p{

    max-width:700px;

    margin:auto;

    color:#e0e8e5;

}

.breadcrumb{

    display:flex;

    justify-content:center;

    gap:10px;

    margin-top:25px;

    font-size:14px;

}

.breadcrumb a{

    color:var(--secondary);

}


/* ==========================================
   INTRO
========================================== */

.gallery-intro{

    padding:85px 0 45px;

}

.section-heading{

    max-width:750px;

    margin:auto;

    text-align:center;

}

.section-heading > span{

    color:var(--secondary);

    font-size:13px;

    font-weight:bold;

    letter-spacing:2px;

}

.section-heading h2{

    color:var(--primary);

    font-size:40px;

    line-height:1.3;

    margin:10px 0 15px;

}

.section-heading p{

    color:var(--text);

}


/* ==========================================
   GALLERY SECTION
========================================== */

.gallery-section{

    background:var(--light);

    padding:45px 0 90px;

}


/* FILTER */

.gallery-filter{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:45px;

}

.filter-btn{

    border:1px solid var(--border);

    background:#fff;

    color:#555;

    padding:10px 20px;

    border-radius:30px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    transition:.3s;

}

.filter-btn:hover,
.filter-btn.active{

    background:var(--primary);

    color:#fff;

    border-color:var(--primary);

}


/* ==========================================
   GALLERY GRID
========================================== */

.gallery-grid{

    display:grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:20px;

}


/* GALLERY ITEM */

.gallery-item{

    position:relative;

    height:280px;

    overflow:hidden;

    border-radius:7px;

    background:#ddd;

    cursor:pointer;

    animation:fadeIn .5s ease;

}

.gallery-item img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:
        transform .5s ease;

}

.gallery-item:hover img{

    transform:scale(1.08);

}


/* OVERLAY */

.gallery-overlay{

    position:absolute;

    inset:0;

    padding:22px;

    display:flex;

    align-items:flex-end;

    justify-content:space-between;

    background:
        linear-gradient(
            transparent 35%,
            rgba(0,0,0,.82)
        );

    opacity:0;

    transition:.35s;

}

.gallery-item:hover .gallery-overlay{

    opacity:1;

}

.gallery-overlay span{

    color:var(--secondary);

    font-size:11px;

    font-weight:bold;

    text-transform:uppercase;

    letter-spacing:1px;

}

.gallery-overlay h3{

    color:#fff;

    font-size:17px;

    margin-top:3px;

}

.view-image{

    width:42px;

    height:42px;

    border:0;

    border-radius:50%;

    background:var(--secondary);

    color:#fff;

    cursor:pointer;

    flex-shrink:0;

}

.view-image:hover{

    background:#fff;

    color:var(--primary);

}


/* ==========================================
   LIGHTBOX
========================================== */

.lightbox{

    position:fixed;

    inset:0;

    z-index:3000;

    background:
        rgba(0,0,0,.94);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:30px;

    opacity:0;

    visibility:hidden;

    transition:.3s;

}

.lightbox.active{

    opacity:1;

    visibility:visible;

}

.lightbox-content{

    max-width:1000px;

    width:90%;

    text-align:center;

}

.lightbox-content img{

    max-height:75vh;

    width:auto;

    max-width:100%;

    margin:auto;

    object-fit:contain;

    border-radius:5px;

}

.lightbox-content h3{

    color:#fff;

    margin-top:15px;

    font-size:18px;

}


/* CLOSE */

.lightbox-close{

    position:absolute;

    right:30px;

    top:25px;

    width:45px;

    height:45px;

    border:0;

    border-radius:50%;

    background:#fff;

    color:var(--primary);

    font-size:20px;

    cursor:pointer;

}


/* PREVIOUS/NEXT */

.lightbox-prev,
.lightbox-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:50px;

    height:50px;

    border:0;

    border-radius:50%;

    background:var(--secondary);

    color:#fff;

    cursor:pointer;

    font-size:18px;

}

.lightbox-prev{

    left:30px;

}

.lightbox-next{

    right:30px;

}

.lightbox-prev:hover,
.lightbox-next:hover{

    background:#fff;

    color:var(--primary);

}


/* ==========================================
   CTA
========================================== */

.cta{
background:
        linear-gradient(100deg, rgba(5,48,98,.65), rgba(10,79,156,.65)),
        url("../img/gallery2.jpg") center/cover;
    padding:70px 0;

    color:#fff;

}

.cta-content{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:40px;

}

.cta-content span{

    color:var(--secondary);

    font-size:12px;

    font-weight:bold;

    letter-spacing:2px;

}

.cta-content h2{

    font-size:34px;

    line-height:1.3;

    max-width:700px;

    margin:8px 0;

}

.cta-content p{

    color:#d9e5e1;

}

.cta-btn{

    background:var(--secondary);

    color:#fff;

    padding:15px 24px;

    border-radius:4px;

    white-space:nowrap;

    font-weight:bold;

}

.cta-btn:hover{

    background:#fff;

    color:var(--primary);

}

/* ==========================================
   ANIMATION
========================================== */

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/* ==========================================
   TABLET
========================================== */

@media(max-width:1050px){

    .nav{

        gap:15px;

    }

    .gallery-grid{

        grid-template-columns:
            repeat(3,1fr);

    }

    .footer-grid{

        grid-template-columns:
            repeat(2,1fr);

    }

}


/* ==========================================
   MOBILE NAV
========================================== */

@media(max-width:800px){

    .top-content{

        flex-direction:column;

        justify-content:center;

        padding:8px 0;

        gap:3px;

    }

    .menu-toggle{

        display:block;

    }

    .nav{

        position:absolute;

        top:82px;

        left:0;

        width:100%;

        background:#fff;

        padding:20px 5%;

        flex-direction:column;

        align-items:flex-start;

        gap:5px;

        display:none;

        box-shadow:
            0 10px 25px
            rgba(0,0,0,.1);

    }

    .nav.show{

        display:flex;

    }

    .nav > a{

        width:100%;

        padding:8px 0;

    }

    .dropdown{

        width:100%;

    }

    .dropdown-menu{

        position:static;

        display:none;

        opacity:1;

        visibility:visible;

        transform:none;

        box-shadow:none;

        width:100%;

        padding-left:15px;

    }

    .dropdown:hover .dropdown-menu{

        display:block;

    }

    .apply-btn{

        text-align:center;

        margin-top:5px;

    }


    .hero-content h1{

        font-size:42px;

    }


    .gallery-grid{

        grid-template-columns:
            repeat(2,1fr);

    }


    .cta-content{

        flex-direction:column;

        align-items:flex-start;

    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media(max-width:550px){

    .hero-content h1{

        font-size:34px;

    }

    .page-hero{

        min-height:330px;

    }

    .gallery-intro{

        padding-top:60px;

    }

    .section-heading h2{

        font-size:30px;

    }

    .gallery-grid{

        grid-template-columns:1fr;

    }

    .gallery-item{

        height:300px;

    }

    .gallery-overlay{

        opacity:1;

    }

    .gallery-filter{

        gap:7px;

    }

    .filter-btn{

        padding:8px 14px;

        font-size:12px;

    }

    .lightbox-prev{

        left:10px;

    }

    .lightbox-next{

        right:10px;

    }

    .lightbox-close{

        right:15px;

        top:15px;

    }

    .cta-content h2{

        font-size:27px;

    }

    .footer-grid{

        grid-template-columns:1fr;

    }

    .footer-bottom{

        flex-direction:column;

        text-align:center;

    }

}