/* =========================================
   GOLDEN JUBILEE SCHOOL
   PREMIUM VIRTUAL ART GALLERY
========================================= */


/* =========================================
   ROOT
========================================= */

:root {

    --navy: #062653;
    --deep-navy: #031b3d;

    --gold: #d7ad45;
    --light-gold: #f3d98a;

    --blue: #2869b3;
    --light-blue: #eef6ff;

    --white: #ffffff;

    --text: #172d50;
    --muted: #69758a;

    --border: rgba(10, 45, 90, 0.10);

    --shadow:
        0 12px 35px rgba(0, 31, 73, 0.12);

    --shadow-hover:
        0 20px 50px rgba(0, 31, 73, 0.20);

}


/* =========================================
   RESET
========================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: "DM Sans", sans-serif;

    color: var(--text);

    background: #f8fbff;

    overflow-x: hidden;

}


/* =========================================
   HEADER
========================================= */

.main-header {

    height: 74px;

    width: 100%;

    background:
        linear-gradient(
            135deg,
            #031c40,
            #082e61
        );

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 48px;

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.18);

}


/* =========================================
   HEADER LEFT
========================================= */

.header-left {

    display: flex;

    align-items: center;

    gap: 15px;

}


.school-logo {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--gold);

    font-size: 42px;

}


.school-info h1 {

    color: #ffffff;

    font-family:
        "Playfair Display",
        serif;

    font-size: 25px;

    font-weight: 700;

    line-height: 1.1;

}


.school-info p {

    margin-top: 3px;

    color: #f3ce70;

    font-size: 13px;

    letter-spacing: 0.4px;

}


/* =========================================
   NAVIGATION
========================================= */

.navigation {

    display: flex;

    align-items: center;

    gap: 34px;

}


.navigation a {

    position: relative;

    text-decoration: none;

    color: #ffffff;

    font-size: 14px;

    font-weight: 500;

    padding: 27px 0;

    transition: 0.3s ease;

}


.navigation a:hover {

    color: var(--light-gold);

}


.navigation a i {

    font-size: 9px;

    margin-left: 4px;

}


.navigation a.active {

    color: var(--light-gold);

}


.navigation a.active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 10px;

    height: 3px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            #f7d98a
        );

}


/* =========================================
   MOBILE BUTTON
========================================= */

.menu-btn {

    display: none;

    border: 0;

    background: transparent;

    color: white;

    font-size: 24px;

    cursor: pointer;

}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {

    display: none;

    position: fixed;

    top: 74px;

    left: 0;

    width: 100%;

    z-index: 999;

    background: #052653;

    padding: 15px 25px;

    box-shadow:
        0 15px 30px rgba(0,0,0,.2);

}


.mobile-menu a {

    display: block;

    color: white;

    text-decoration: none;

    padding: 13px;

    border-bottom:
        1px solid rgba(255,255,255,.08);

}


.mobile-menu a:hover,
.mobile-menu .mobile-active {

    color: var(--light-gold);

}


.mobile-menu.show {

    display: block;

}


/* =========================================
   HERO
========================================= */

.gallery-hero {

    min-height: 158px;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    background:

        radial-gradient(
            ellipse at 50% 45%,
            rgba(255,255,255,1) 20%,
            rgba(245,250,255,.95) 60%,
            rgba(220,239,250,.9) 100%
        );

}


/* Watercolor effect */

.gallery-hero::before {

    content: "";

    position: absolute;

    width: 500px;

    height: 300px;

    left: -170px;

    top: -80px;

    background:
        radial-gradient(
            ellipse,
            rgba(122,194,229,.28),
            transparent 68%
        );

    filter: blur(15px);

}


.gallery-hero::after {

    content: "";

    position: absolute;

    width: 600px;

    height: 250px;

    right: -150px;

    top: -40px;

    background:
        radial-gradient(
            ellipse,
            rgba(135,202,230,.22),
            transparent 70%
        );

    filter: blur(18px);

}


/* =========================================
   PALETTE DECORATION
========================================= */

.paint-left {

    position: absolute;

    left: -20px;

    top: 30px;

    font-size: 130px;

    color: rgba(115,174,211,.15);

    transform: rotate(-20deg);

}


.paint-right {

    position: absolute;

    right: 15px;

    top: 28px;

    font-size: 90px;

    color: rgba(184,137,56,.15);

    transform: rotate(25deg);

}


/* =========================================
   HERO CONTENT
========================================= */

.hero-content {

    position: relative;

    z-index: 2;

    text-align: center;

}


.title-decoration {

    color: var(--gold);

    font-size: 24px;

    margin-bottom: -2px;

}


.hero-content h2 {

    font-family:
        "Playfair Display",
        serif;

    font-size: 43px;

    color: var(--navy);

    font-weight: 700;

    letter-spacing: .3px;

}


.gold-line {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin: 7px auto 10px;

}


.gold-line span {

    width: 48px;

    height: 1px;

    background: var(--gold);

}


.gold-line b {

    color: var(--gold);

    font-size: 17px;

}


.hero-content p {

    font-size: 15px;

    color: #667085;

    letter-spacing: .2px;

}


.ornament {

    color: var(--gold);

    font-size: 13px;

    margin-top: 9px;

    letter-spacing: 2px;

}


/* =========================================
   GALLERY CONTAINER
========================================= */

.gallery-container {

    max-width: 1280px;

    margin: auto;

    padding:
        0 20px 35px;

}


/* =========================================
   GRID
========================================= */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

}


/* =========================================
   ART CARD
========================================= */

.art-card {

    background: rgba(255,255,255,.96);

    border-radius: 8px;

    overflow: hidden;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}


.art-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-hover);

}


/* =========================================
   ART IMAGE
========================================= */

.art-image {

    position: relative;

    height: 300px;

    margin: 8px 8px 0;

    overflow: hidden;

    border-radius: 5px;

    background: #edf2f7;

}


.art-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    cursor: pointer;

    transition:
        transform .5s ease;

}


.art-card:hover .art-image img {

    transform: scale(1.06);

}


/* =========================================
   VIEW ICON
========================================= */

.view-icon {

    position: absolute;

    right: 10px;

    top: 10px;

    width: 34px;

    height: 34px;

    border-radius: 50%;

    background:
        rgba(4,32,68,.78);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transform: scale(.8);

    transition: .3s ease;

    cursor: pointer;

}


.art-card:hover .view-icon {

    opacity: 1;

    transform: scale(1);

}


.view-icon i {

    font-size: 12px;

}


/* =========================================
   STUDENT INFO
========================================= */

.student-info {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 9px 13px 11px;

}


.student-icon {

    width: 22px;

    height: 22px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #286bb5;

}


.student-icon i {

    font-size: 16px;

}


.student-info h3 {

    color: #102b52;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.2;

}


.student-info p {

    margin-top: 2px;

    color: #61708a;

    font-size: 10.5px;

}


/* =========================================
   BOTTOM MESSAGE
========================================= */

.gallery-footer {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    margin-top: 18px;

    color: var(--gold);

    font-size: 19px;

}


.gallery-footer div {

    background:
        linear-gradient(
            135deg,
            #062653,
            #0b376d
        );

    color: white;

    border-radius: 30px;

    padding: 10px 25px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .2px;

    box-shadow:
        0 8px 22px rgba(3,30,65,.20);

}


.gallery-footer i {

    color: var(--gold);

    margin-right: 8px;

}


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 2000;

    background:
        rgba(2,17,38,.92);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    opacity: 0;

    visibility: hidden;

    transition: .3s ease;

}


.lightbox.active {

    opacity: 1;

    visibility: visible;

}


.lightbox img {

    max-width: 90vw;

    max-height: 85vh;

    object-fit: contain;

    border-radius: 7px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.5);

}


.close-lightbox {

    position: absolute;

    top: 25px;

    right: 30px;

    width: 45px;

    height: 45px;

    border: 0;

    border-radius: 50%;

    background: white;

    color: var(--navy);

    font-size: 20px;

    cursor: pointer;

    transition: .3s ease;

}


.close-lightbox:hover {

    background: var(--gold);

    color: white;

    transform: rotate(90deg);

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .main-header {

        padding: 0 25px;

    }


    .navigation {

        gap: 18px;

    }


    .navigation a {

        font-size: 12px;

    }


    .school-info h1 {

        font-size: 21px;

    }


    .gallery-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .main-header {

        height: 70px;

    }


    .navigation {

        display: none;

    }


    .menu-btn {

        display: block;

    }


    .school-logo {

        width: 40px;

        font-size: 32px;

    }


    .school-info h1 {

        font-size: 17px;

    }


    .school-info p {

        font-size: 10px;

    }


    .gallery-hero {

        min-height: 170px;

    }


    .hero-content h2 {

        font-size: 34px;

    }


    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

    }


    .art-image {

        height: 140px;

    }


    .gallery-footer {

        margin-bottom: 20px;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .main-header {

        padding: 0 15px;

    }


    .school-info h1 {

        font-size: 15px;

    }


    .school-info p {

        display: none;

    }


    .gallery-grid {

        grid-template-columns:
            1fr;

    }


    .gallery-container {

        padding-left: 14px;

        padding-right: 14px;

    }


    .hero-content h2 {

        font-size: 29px;

    }


    .hero-content p {

        font-size: 13px;

    }


    .art-image {

        height: 190px;

    }


    .gallery-footer div {

        padding: 9px 17px;

        font-size: 11px;

    }

}