

@media (max-width: 960px) {
    .header-top-content {
        flex-wrap: wrap;
        padding: 0 1rem;
        gap: 1rem;
    }
}
/* Gallery Section */
.gallery-section {
    padding: 3rem 0 2rem 0;
    background: #f5fafe;
}

.gallery-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(32, 58, 67, 0.08);
    transition: transform 0.22s, box-shadow 0.22s;
    cursor: pointer;
    background: #eaf7fc;
}

.gallery-grid img:hover,
.gallery-grid img:focus {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(0, 116, 166, 0.13);
    z-index: 2;
}

/* Back Button */
.btn.btn-secondary {
    display: inline-block;
    margin: 0 auto;
    background: #0074a6;
    color: #fff;
    padding: 0.7rem 2.2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.09rem;
    box-shadow: 0 2px 10px rgba(0,116,166,0.06);
    text-align: center;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
    background: #005f87;
    color: #fff;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    .gallery-grid img {
        height: 150px;
    }
    .hero.small-hero h1 { font-size: 1.4rem; }
    .hero.small-hero p { font-size: 1rem; }
}
@media (max-width: 550px) {
    .gallery-section {
        padding: 1rem 0 1rem 0;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .gallery-grid img {
        height: 120px;
        border-radius: 7px;
    }
}


/* --- Hamburger Styles --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
    margin-right: 12px;
}
.hamburger .bar {
    height: 4px;
    width: 28px;
    margin: 4px auto;
    background: #231F20;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}
.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hide nav, show hamburger on screens smaller than a tablet --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 80px; /* below header */
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 32px rgba(32, 58, 67, 0.13);
        z-index: 1100;
        transform: translateY(-120%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        opacity: 0;
        pointer-events: none;
        flex-direction: column;
        align-items: center;
        width: 100vw;
        padding: 2.5rem 0 2rem 0;
        min-height: 50vh;
        max-height: 90vh;
        overflow-y: auto;
    }
    .main-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links {
        flex-direction: column;
        gap: 1.8rem;
        width: 100%;
        align-items: center;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: none;
        border-radius: 0;
        padding: 0.6rem 0;
        min-width: unset;
        width: 100%;
        gap: 1.4rem;
    }
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex;
    }
    @media (max-width: 768px) {
  .top-header {
    position: static !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }
  body {
    padding-top: 0 !important; /* Remove extra space added for fixed header */
  }
}
}



/* Ensure nav is visible on desktop/tablet and hamburger hidden */
@media (min-width: 769px) {
    .main-nav {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0 !important;
        min-height: unset !important;
        max-height: unset !important;
        overflow-y: visible !important;
        display: flex !important;
    }
    .hamburger {
        display: none !important;
    }
}

.gallery-modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.8);
            z-index: 1000;
            overflow: auto;
            justify-content: center;
            align-items: center;
        }
        .gallery-content {
            background: #fff;
            padding: 2rem;
            border-radius: 8px;
            max-width: 900px;
            margin: 60px auto;
            position: relative;
        }
        .gallery-close {
            position: absolute;
            top: 10px; right: 10px;
            background: #f44336;
            color: #fff;
            border: none;
            font-size: 1.4rem;
            border-radius: 50%;
            width: 32px; height: 32px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gallery-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            justify-content: center;
        }
        .gallery-grid img {
            max-width: 180px;
            margin: 8px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.09);
        }
        @media (max-width: 600px) {
            .gallery-content {padding: 1rem;}
            .gallery-grid img {max-width: 100px;}
        }