/* Premium Blue & Gold Palette Integrated */
:root {
    --primary: #0a3221; /* Rich Deep Navy Green */
    --primary-light: #0b8d66; /* Mid Navy Green */
    --accent: #e0a96d; /* Soft Luxury Gold */
    --accent-hover: #dd994b; /* Vibrant Gold */
    --background: #ffffff; /* Pure White Background */
    --card-sub-bg: #f8f9fa; /* Ultra Light Gray for contrast */
    --text-muted: #616e7d;
}

* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}
 
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--primary);
    overflow-x: hidden;
    line-height: 1.6;
}


/* =========================================================
   PREMIUM HEADER & NAV STYLES
   ========================================================= */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background-color: #ffffff;
    position: relative;
    z-index: 1010;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
    height: auto;
    cursor: pointer;
}

.school-name {
    margin-left: 0px;
}

.school-name h2 {
    font-size: 20px;
    color: #062b1a; 
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.school-name p {
    font-size: 11px;
    color: #0e845c;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}


/* =========================================================
   PREMIUM FLOATING NAVIGATION BAR
   ========================================================= */

nav {
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px; 
    box-shadow: 0 8px 25px rgba(10, 50, 33, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 20px 60px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
}

nav a:hover::after,
nav a.active::after {
    width: 70%;
}


/* =========================================================
   RESPONSIVE NAVIGATION
   ========================================================= */

@media (max-width: 768px) {

    header {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 20px;
        text-align: left;
        z-index: 1010;
    }

    nav {
        border-radius: 20px;
        flex-wrap: wrap;
        width: 90%;
    }

    nav a {
        padding: 15px 20px;
        font-size: 14px;
    }
}


/* =========================================================
   MAIN CONTENT TITLE
   ========================================================= */

.page-title {
    text-align: center;
    margin: 40px 0 20px 0;
}

.page-title h1 {
    font-size: 32px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.back-btn {
    display: none;
    margin: 20px auto;
    padding: 10px 25px;
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.back-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: scale(1.05);
}


/* =========================================================
   FOLDERS GRID LAYOUT
   ========================================================= */

.folder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px 5%;
}

.folder-card {
    background: var(--card-sub-bg);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    position: relative;
}

.folder-cover-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.folder-card h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.folder-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.folder-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(10, 50, 33, 0.1);
}


/* =========================================================
   GALLERY GRID LAYOUT - DESKTOP
   ========================================================= */

.gallery-container {
    display: none; 
    max-width: 1300px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 5%;
}

.gallery-item {
    background: var(--card-sub-bg);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    text-align: center;
    position: relative; 
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(10, 50, 33, 0.08);
}

.img-container {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    cursor: pointer;
    display: block;
}

.gallery-item img:hover {
    transform: scale(1.02);
}


/* =========================================================
   IMAGE WATERMARK FOOTER STRIP
   ========================================================= */

.image-watermark-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    background: rgba(10, 50, 33, 0.75); 
    backdrop-filter: blur(3px);
    color: #ffffff;
    padding: 6px 10px;
    font-size: 11px;
    text-align: left;
    pointer-events: none; 
    border-top: 1px solid rgba(224, 169, 109, 0.4); 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    font-family: sans-serif;
    box-sizing: border-box;
}

.wm-left {
    font-weight: bold;
    color: var(--accent);
    font-size: 10px;
    text-transform: uppercase;
}

.wm-right {
    text-align: right;
    font-size: 9px;
    opacity: 0.9;
    line-height: 1.2;
}

.wm-right span {
    display: block;
}


/* =========================================================
   GALLERY TITLE
   ========================================================= */

.gallery-item h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 5px 8px 5px;
}


/* =========================================================
   MODERNIZED IMAGE LIGHTBOX MODAL
   ========================================================= */

.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 50, 33, 0.95); 
    backdrop-filter: blur(8px);
}


/* Wrapper that bounds image and watermark together */
.modal-wrapper {
    position: relative;
    margin: auto;
    max-width: 85%;
    max-height: 80vh;
    display: table;
    animation: zoomIn 0.3s ease;
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}


/* =========================================================
   LIGHTBOX WATERMARK OVERLAY
   ========================================================= */

.modal-watermark-footer {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: calc(100% - 6px);
    background: rgba(10, 50, 33, 0.85);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--accent);
    border-radius: 0 0 9px 9px;
    box-sizing: border-box;
    pointer-events: none;
    font-family: sans-serif;
}

.modal-watermark-footer .m-wm-left {
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-watermark-footer .m-wm-right {
    text-align: right;
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.95;
}


/* =========================================================
   LIGHTBOX ANIMATION
   ========================================================= */

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 2010;
}

.close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}


/* =========================================================
   MOBILE RESPONSIVE RULES
   ========================================================= */

@media (max-width: 900px) {

    header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .logo {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .school-name {
        margin-left: 0;
    }

    nav {
        margin: 10px 4% 25px 4%; 
        border-radius: 20px; 
        flex-wrap: wrap;
    }

    nav a {
        flex: 1 1 45%; 
        padding: 12px 10px;
        font-size: 14px;
    }

    .folder-container,
    .gallery-container {
        gap: 15px;
        padding: 10px 4%;
    }

    .folder-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }

    .image-watermark-footer {
        font-size: 9px;
        padding: 4px 8px;
    }

    .wm-left {
        font-size: 8px;
    }

    .wm-right {
        font-size: 8px;
    }

    .modal-watermark-footer {
        padding: 6px 12px;
        font-size: 11px;
    }

    .modal-watermark-footer .m-wm-left {
        font-size: 10px;
    }

    .modal-watermark-footer .m-wm-right {
        font-size: 9px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   MOBILE GALLERY - SWIPE / SLIDE VIEW
   Only affects screens 768px and below
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------
       Gallery horizontal swipe container
       ----------------------------------------- */

    .gallery-container {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-wrap: nowrap;

        overflow-x: auto;
        overflow-y: hidden;

        gap: 15px;

        padding: 10px 12px 25px 12px;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-container::-webkit-scrollbar {
        display: none;
    }


    /* -----------------------------------------
       Gallery card / image width
       ----------------------------------------- */

    .gallery-item {
        flex: 0 0 calc(100vw - 24px);

        width: calc(100vw - 24px);
        min-width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);

        padding: 10px;

        scroll-snap-align: center;
        scroll-snap-stop: always;

        border-radius: 16px;

        box-sizing: border-box;
    }


    /* -----------------------------------------
       Responsive image area
       ----------------------------------------- */

    .img-container {
        width: 100%;

        height: auto;

        aspect-ratio: 16 / 11;

        margin-bottom: 10px;

        border-radius: 10px;

        overflow: hidden;

        position: relative;
    }


    /* -----------------------------------------
       Gallery image
       ----------------------------------------- */

    .gallery-item img {
        width: 100%;
        height: 100%;

        display: block;

        object-fit: cover;
        object-position: center;

        max-width: 100%;
    }


    /* -----------------------------------------
       Image title
       ----------------------------------------- */

    .gallery-item h4 {
        font-size: 15px;

        line-height: 1.4;

        padding: 5px 4px 7px 4px;

        white-space: normal;

        overflow-wrap: break-word;
    }


    /* -----------------------------------------
       Image watermark
       ----------------------------------------- */

    .image-watermark-footer {
        position: absolute;

        left: 0;
        bottom: 0;

        width: 100%;

        padding: 5px 8px;

        box-sizing: border-box;

        display: flex;

        justify-content: space-between;

        align-items: center;

        gap: 8px;
    }


    .wm-left {
        flex: 0 0 auto;

        font-size: 8px;
    }


    .wm-right {
        flex: 1;

        min-width: 0;

        font-size: 8px;

        text-align: right;

        overflow: hidden;
    }


    .wm-right span {
        display: block;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    /* -----------------------------------------
       Mobile lightbox
       ----------------------------------------- */

    .modal {
        padding-top: 55px;

        width: 100%;
        height: 100%;

        overflow: hidden;
    }


    .modal-wrapper {
        width: 94%;

        max-width: 94%;

        max-height: 82vh;

        display: block;
    }


    .modal-content {
        width: 100%;

        max-width: 100%;

        height: auto;

        max-height: 78vh;

        object-fit: contain;

        border-width: 2px;
    }


    /* -----------------------------------------
       Mobile modal watermark
       ----------------------------------------- */

    .modal-watermark-footer {
        left: 2px;

        bottom: 2px;

        width: calc(100% - 4px);

        padding: 6px 9px;

        gap: 8px;

        box-sizing: border-box;
    }


    .modal-watermark-footer .m-wm-left {
        font-size: 9px;

        white-space: nowrap;
    }


    .modal-watermark-footer .m-wm-right {
        font-size: 8px;

        min-width: 0;

        overflow: hidden;

        text-align: right;
    }


    .modal-watermark-footer .m-wm-right span {
        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    /* -----------------------------------------
       Mobile close button
       ----------------------------------------- */

    .close {
        top: 10px;

        right: 18px;

        font-size: 34px;

        z-index: 2010;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE PHONES
   ========================================================= */

@media (max-width: 380px) {

    .gallery-container {
        padding-left: 8px;

        padding-right: 8px;

        gap: 10px;
    }

    .gallery-item {
        flex-basis: calc(100vw - 16px);

        min-width: calc(100vw - 16px);

        max-width: calc(100vw - 16px);
    }

    .img-container {
        aspect-ratio: 4 / 3;
    }

    .gallery-item h4 {
        font-size: 14px;
    }
}


/* =========================================================
   FOOTER STYLES
   ========================================================= */

footer {
    background-color: var(--primary); 
    color: #ffffff;

    padding: 50px 5% 20px 5%;

    border-top: 4px solid var(--accent); 

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.footer-container {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    flex-wrap: wrap;

    max-width: 1200px;

    margin: 0 auto;

    gap: 40px;

    padding-bottom: 30px;
}


/* -----------------------------------------
   Footer Brand & Logo
   ----------------------------------------- */

.footer-col.brand-col {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    flex: 1;

    min-width: 250px;
}


.footer-logo {
    width: 100px !important;

    height: auto !important;

    max-width: 100px !important;

    background: #ffffff;

    padding: 5px;

    border-radius: 8px;

    object-fit: contain;
}


.brand-text h2 {
    font-size: 18px;

    font-weight: 700;

    color: #ffffff;

    margin: 0;

    line-height: 1.4;
}


/* -----------------------------------------
   Footer Links
   ----------------------------------------- */

.footer-links-wrapper {
    display: flex;

    gap: 50px;

    flex-wrap: wrap;

    flex: 2;

    justify-content: flex-end;
}


.footer-col {
    min-width: 180px;
}


.footer-col h3 {
    font-size: 16px;

    color: var(--accent);

    margin-bottom: 15px;

    font-weight: 600;

    border-bottom: 2px solid rgba(255, 255, 255, 0.1);

    display: inline-block;

    padding-bottom: 4px;
}


.footer-col ul {
    list-style: none;

    padding: 0;

    margin: 0;
}


.footer-col ul li {
    margin-bottom: 8px;
}


.footer-col ul li a,
.footer-col p {
    color: #cbd5e1;

    text-decoration: none;

    font-size: 14px;

    transition: color 0.3s;
}


.footer-col ul li a:hover {
    color: var(--accent);

    text-decoration: underline;
}


/* -----------------------------------------
   Social Icons
   ----------------------------------------- */

.social-icons {
    display: flex;

    gap: 12px;

    margin-top: 10px;
}


.social-icons a {
    display: flex;

    justify-content: center;

    align-items: center;

    width: 35px;

    height: 35px;

    background: rgba(255, 255, 255, 0.1);

    color: white;

    border-radius: 50%;

    font-size: 16px;

    text-decoration: none;

    transition: background 0.3s, color 0.3s;
}


.social-icons a:hover {
    background: var(--accent);

    color: var(--primary);
}


/* -----------------------------------------
   Footer Bottom
   ----------------------------------------- */

.footer-bottom {
    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding-top: 20px;

    font-size: 13px;

    color: #94a3b8;
}


/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .footer-col.brand-col {
        flex-direction: column;

        align-items: center;
    }

    .footer-links-wrapper {
        justify-content: center;

        gap: 30px;

        width: 100%;
    }
/* ========================================================= FIXED MOBILE HAMBURGER MENU ========================================================= */

/* Desktop - Keep hamburger hidden */ .menu-toggle { display: none; }

/* Mobile hamburger and navigation */ @media screen and (max-width: 768px) {

/* Keep existing header layout */ header { position: relative !important; display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; width: 100%; padding: 15px 20px !important; text-align: left !important; }

.brand-container { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; flex: 1; min-width: 0; }

.logo { width: 55px !important; height: auto !important; margin: 0 !important; flex-shrink: 0; }

.school-name { margin: 0 !important; min-width: 0; }

.school-name h2 { font-size: 16px !important; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.school-name p { font-size: 9px !important; white-space: nowrap; }

/* Hamburger button */ .menu-toggle { display: flex !important; position: relative; width: 45px !important; height: 45px !important; min-width: 45px; padding: 8px !important; margin: 0 0 0 10px !important; background: var(--primary) !important; border: 2px solid var(--accent) !important; border-radius: 10px !important; align-items: center !important; justify-content: center !important; flex-direction: column !important; gap: 5px !important; cursor: pointer; z-index: 9999 !important; opacity: 1 !important; visibility: visible !important; }

/* Three visible gold lines */ .menu-toggle span { display: block !important; width: 24px !important; height: 3px !important; min-height: 3px; flex-shrink: 0; background: var(--accent) !important; border-radius: 3px !important; opacity: 1; visibility: visible; transform: none; transition: all 0.3s ease; }

/* Mobile navigation closed */ header nav#mainNav { position: absolute !important; top: calc(100% + 8px) !important; left: 15px !important; right: 15px !important; width: auto !important; margin: 0 !important; padding: 8px !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 2px; background: var(--primary) !important; border-radius: 15px !important; box-shadow: 0 10px 30px rgba(10, 50, 33, 0.30) !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(-10px) !important; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important; z-index: 9998 !important; }

/* Navigation open */ header nav#mainNav.active { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: translateY(0) !important; }

/* Navigation links */ header nav#mainNav a { display: block !important; width: 100% !important; flex: none !important; padding: 14px 18px !important; margin: 0 !important; color: rgba(255, 255, 255, 0.95) !important; text-align: center !important; font-size: 14px !important; border-radius: 10px !important; }

header nav#mainNav a:hover, header nav#mainNav a.active { color: var(--accent) !important; background-color: rgba(255, 255, 255, 0.08) !important; }

header nav#mainNav a::after { bottom: 4px !important; height: 3px !important; }

/* Hamburger transforms to X when active */ .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; }

.menu-toggle.active span:nth-child(2) { opacity: 0 !important; }

.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg) !important; } }

/* Extra small phones */ @media screen and (max-width: 380px) {

header { padding: 12px 15px !important; }

.logo { width: 50px !important; }

.school-name h2 { font-size: 14px !important; }

.school-name p { font-size: 8px !important; }

.menu-toggle { width: 42px !important; height: 42px !important; min-width: 42px !important; }

.menu-toggle span { width: 22px !important; } }



    /* Mobile navigation open */
    nav.mobile-open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    /* Navigation links */
    nav a {
        width: 100%;

        padding: 14px 18px;

        font-size: 14px;

        text-align: center;

        border-radius: 10px;
    }


    nav a::after {
        bottom: 5px;

        height: 3px;
    }


    nav a:hover,
    nav a.active {
        background-color: rgba(255, 255, 255, 0.08);
    }

}


/* =========================================================
   SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 380px) {

    header {
        padding: 12px 15px;
    }


    .logo {
        width: 50px;
    }


    .school-name h2 {
        font-size: 14px;
    }


    .school-name p {
        font-size: 8px;
    }


    .hamburger {
        width: 42px;
        height: 42px;
    }


    .hamburger span {
        width: 22px;
    }
}
    /* =========================================================
   FIXED MOBILE HAMBURGER MENU
   PUT THIS AT THE VERY END OF gallerystyles.css
   ========================================================= */


/* DESKTOP - HAMBURGER HIDDEN */

.menu-toggle {
    display: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

    /* HEADER */

    header {
        position: relative !important;

        display: flex !important;

        flex-direction: row !important;

        justify-content: space-between !important;

        align-items: center !important;

        width: 100%;

        padding: 15px 20px !important;

        text-align: left !important;
    }


   

    .logo {
        width: 55px !important;

        height: auto !important;

        margin: 0 !important;

        flex-shrink: 0;
    }


    .school-name {
        margin: 0 !important;

        min-width: 0;
    }


    .school-name h2 {
        font-size: 16px !important;

        line-height: 1.1;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .school-name p {
        font-size: 9px !important;

        white-space: nowrap;
    }


   

    /* =====================================================
       MOBILE NAVIGATION
       ===================================================== */

    header nav#mainNav {
        position: absolute !important;

        top: calc(100% + 8px) !important;

        left: 15px !important;

        right: 15px !important;

        width: auto !important;

        margin: 0 !important;

        padding: 8px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        justify-content: flex-start !important;

        gap: 2px;

        background: var(--primary) !important;

        border-radius: 15px !important;

        box-shadow:
            0 10px 30px rgba(10, 50, 33, 0.30) !important;

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        transform: translateY(-10px) !important;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease !important;

        z-index: 9998 !important;
    }


    /* NAVIGATION OPEN */

    header nav#mainNav.active {
        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: translateY(0) !important;
    }


    /* NAV LINKS */

    header nav#mainNav a {
        display: block !important;

        width: 100% !important;

        flex: none !important;

        padding: 14px 18px !important;

        margin: 0 !important;

        color: rgba(255, 255, 255, 0.95) !important;

        text-align: center !important;

        font-size: 14px !important;

        border-radius: 10px !important;
    }


    header nav#mainNav a:hover,
    header nav#mainNav a.active {
        color: var(--accent) !important;

        background-color:
            rgba(255, 255, 255, 0.08) !important;
    }


    header nav#mainNav a::after {
        bottom: 4px !important;

        height: 3px !important;
    }


    /* =====================================================
       HAMBURGER → X
       ===================================================== */

    .menu-toggle.active span:nth-child(1) {
        transform:
            translateY(8px)
            rotate(45deg) !important;
    }


    .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }


    .menu-toggle.active span:nth-child(3) {
        transform:
            translateY(-8px)
            rotate(-45deg) !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media screen and (max-width: 380px) {

    header {
        padding: 12px 15px !important;
    }


    .logo {
        width: 50px !important;
    }


    .school-name h2 {
        font-size: 14px !important;
    }


    .school-name p {
        font-size: 8px !important;
    }


    .menu-toggle {
        width: 42px !important;

        height: 42px !important;

        min-width: 42px !important;
    }


    .menu-toggle span {
        width: 22px !important;
    }

}

@media screen and (max-width: 768px) {

    .menu-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 10001 !important;
        cursor: pointer;
    }

    header nav#mainNav {
        display: flex !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        flex-direction: column !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-10px) !important;
        z-index: 10000 !important;
    }

    header nav#mainNav.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}

/* FIX: Hide gallery photos until a folder is opened */
@media screen and (max-width: 768px) {
    .gallery-container {
        display: none;
    }
}
