 /* Base Styles */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }
 
     body {
            font-family: 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #222;
            -webkit-font-smoothing:antialiased;
            -moz-osx-font-smoothing:grayscale;
        }

        /* Color & font variables - matched to index.css palette for consistency */
        :root {
            /* Primary palette (used by index.css) */
            --clc-white: #ffffff;
            --clc-primary: #6B2D6B; /* deep purple */
            --clc-primary-navy: #4A1F4A;
            --clc-accent-gold: #FF8C42;
            --clc-text: #222222;
            --clc-gray-800: #2b2b2b;
            --clc-gray-600: #6b6b6b;

            /* Backwards-compatible names used by this file (map to same values) */
            --primary-blue: var(--clc-primary);
            --primary-dark: var(--clc-primary-navy);
            --accent-gold: var(--clc-accent-gold);
            --light-bg: #F5F9FF;
            --white: var(--clc-white);
            --text-dark: var(--clc-text);
            --text-light: var(--clc-gray-600);

              /* Font stacks */
            --clc-font-body: 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --clc-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
            --clc-font-accent: 'Playfair Display', serif;

            /* Spacing & sizes */
            --clc-spacing-4: 1rem;
            --clc-text-xs: 0.75rem;
            --clc-text-sm: 0.875rem;
            --clc-text-base: 1rem;
            --clc-text-xl: 1.25rem;
            --clc-radius-lg: 15px;
            --clc-shadow-md: 0 6px 24px rgba(0,0,0,0.08);
        }
        
        /* Navigation */
        nav {
            background: var(--white);
            padding: 1rem 5%;
            box-shadow: 0 2px 15px rgba(30, 136, 229, 0.1);
            /* non-sticky nav */
            position: relative;
            width: 100%;
            z-index: 50;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* Use Playfair Display for headings for a modern, elegant look */
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
        }

        /* nav-container now provided by assets/CSS/base.css */

        /* Logo text styles moved to base.css for consistency */

        /* nav-links container now provided by assets/CSS/base.css; link styles remain below */

              .nav-links a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 600;
            font-size: var(--clc-text-base);
            transition: color 0.3s;
            position: relative;
            font-family: var(--clc-font-body);
        }

        .nav-links a:hover {
            color: var(--clc-primary-navy);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--clc-accent-gold);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

             .hamburger {
  width: 30px; /* Or whatever size you want your clickable area */
  height: 30px;
  display: flex;
  flex-direction: column; /* To stack the spans vertically */
  justify-content: space-around; /* To distribute the spans */
  align-items: center; /* To center the spans horizontally */
  cursor: pointer; /* To indicate it's clickable */
}

.hamburger span {
  display: block;
  width: 30px; /* Width of the hamburger lines */
  height: 5px; /* Height/thickness of the hamburger lines */
  background-color: #333; /* Color of the hamburger lines */
  border-radius: 2px; /* Slightly rounded corners */
}

@media (min-width: 769px) {
  .hamburger {
    display: none; /* Hidden on large screens */
  }
}

/* Make navbar sticky ONLY on mobile */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* stays above all elements */
  }

  /* Push page content down so it doesn't hide behind navbar */
  body {
    padding-top: 80px; /* adjust based on navbar height */
  }
}

         /* Page Hero */
        .page-hero {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
            padding: 10rem 5% 5rem;
            text-align: center;
            color: white;
        }

        .page-hero h1 {
            font-size: 4rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .page-hero p {
            font-size: 1.5rem;
            color: var(--accent-gold);
        }
 

 /* Gallery Grid */
 .gallery-section {
     padding: 3rem 5%;
     background: #f8f9fa;
 }
 
 .gallery-grid {
     max-width: 1400px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 2rem;
 }
 
 .gallery-item {
     position: relative;
     border-radius: 15px;
     overflow: hidden;
     background: white;
     box-shadow: 0 4px 20px rgba(0,0,0,0.1);
     transition: all 0.3s ease;
 }
 
 .gallery-item-inner {
     position: relative;
     overflow: hidden;
     aspect-ratio: 3/4;
 }
 
 .gallery-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s ease;
 }
 
 .gallery-item:hover img {
     transform: scale(1.1);
 }
 
 .gallery-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
     padding: 2rem;
     color: white;
     opacity: 0;
     transform: translateY(20px);
     transition: all 0.3s ease;
 }
 
 .gallery-item:hover .gallery-overlay {
     opacity: 1;
     transform: translateY(0);
 }
 
 .gallery-info h3 {
     font-family: 'Playfair Display', serif;
     font-size: 1.5rem;
     margin-bottom: 0.5rem;
 }
 
 .gallery-date {
     font-size: 0.9rem;
     opacity: 0.8;
     margin-bottom: 1rem;
 }
 
 .view-btn {
     background: none;
     border: 2px solid white;
     color: white;
     padding: 0.5rem;
     border-radius: 50%;
     cursor: pointer;
     transition: all 0.3s ease;
 }
 
 .view-btn:hover {
     background: white;
     color: #6B2D6B;
 }
 
 /* Lightbox */
 .lightbox {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0,0,0,0.9);
     display: none;
     z-index: 2000;
 }
 
 .lightbox.active {
     display: flex;
     justify-content: center;
     align-items: center;
 }
 
 .lightbox-content {
     position: relative;
     max-width: 90%;
     max-height: 90vh;
     margin: auto;
 }
 
 .lightbox-image-container {
     position: relative;
     width: 100%;
     height: 100%;
 }
 
 #lightbox-image {
     max-width: 100%;
     max-height: 80vh;
     object-fit: contain;
 }
 
 .close-btn,
 .nav-btn {
     background: none;
     border: none;
     color: white;
     font-size: 1.5rem;
     cursor: pointer;
     transition: all 0.3s ease;
     position: absolute;
 }
 
 .close-btn {
     top: 1rem;
     right: 1rem;
 }
 
 .nav-btn {
     top: 50%;
     transform: translateY(-50%);
     padding: 1rem;
 }
 
 .prev-btn {
     left: 1rem;
 }
 
 .next-btn {
     right: 1rem;
 }
 
 .close-btn:hover,
 .nav-btn:hover {
     color: #FF8C42;
 }
 
 .lightbox-info {
     color: white;
     padding: 1rem;
     text-align: center;
 }
 
 /* Responsive Design */
 @media (max-width: 1024px) {
     .gallery-grid {
         grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
     }
 }
 
 
 @media (max-width: 480px) {
     .page-hero h1 {
                font-size: 2.5rem;
            }
 
     .gallery-grid {
         grid-template-columns: 1fr;
     }
 
     .gallery-info h3 {
         font-size: 1.2rem;
     }
 }


        /* Responsive */
        @media (max-width: 768px) {
            .page-hero h1 {
                font-size: 2.5rem;
            }

            .gallery-grid {
                grid-template-columns: 1fr;
            }

            .filter-container {
                gap: 0.5rem;
            }

            .filter-btn {
                padding: 0.6rem 1.5rem;
                font-size: 0.9rem;
            }

            .category-title {
                font-size: 1.8rem;
            }

            .groups-header h2 {
                font-size: 2rem;
            }
        }

           /* FOOTER SECTION */
        footer {
            background: #0a0a0a;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .footer-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a0a 100%);
            z-index: 0;
        }

        .footer-background::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at center, rgba(107, 45, 107, 0.15) 0%, transparent 70%);
            animation: footerPulse 15s ease-in-out infinite;
        }

        .footer-background::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 140, 66, 0.05) 50%, transparent 100%);
            animation: footerSlide 10s linear infinite;
        }

        @keyframes footerPulse {
            0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
            50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
        }

        @keyframes footerSlide {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .footer-top {
            padding: 5rem 5% 3rem;
            position: relative;
            z-index: 2;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 4rem;
        }

        .footer-logo-section {
            animation: fadeInLeft 1s ease-out;
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

         /* footer logo visuals are page-specific; base.css provides sizing and img rules */


        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .footer-logo-text h3 {
            font-size: 1.5rem;
            margin-bottom: 0.3rem;
            font-weight: 700;
        }

        .footer-logo-text p {
            font-size: 0.8rem;
            color: #FF8C42;
            font-style: italic;
        }

        .footer-description {
            font-size: 1rem;
            line-height: 1.8;
            color: #aaa;
            margin-bottom: 2rem;
        }

        .footer-mission {
            background: rgba(107, 45, 107, 0.2);
            border-left: 4px solid #FF8C42;
            padding: 1.5rem;
            border-radius: 10px;
            font-style: italic;
            color: #ddd;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* Footer Columns */
        .footer-column {
            animation: fadeInUp 1s ease-out;
            animation-fill-mode: both;
        }

        .footer-column:nth-child(2) { animation-delay: 0.2s; }
        .footer-column:nth-child(3) { animation-delay: 0.4s; }
        .footer-column:nth-child(4) { animation-delay: 0.6s; }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .footer-column h4 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: #FF8C42;
            font-weight: 700;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-column h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: linear-gradient(90deg, #FF8C42 0%, transparent 100%);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 1rem;
        }

        .footer-links a {
            color: #aaa;
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.3s ease;
            display: inline-block;
            position: relative;
            padding-left: 20px;
        }

        .footer-links a::before {
            content: '→';
            position: absolute;
            left: 0;
            opacity: 0;
            transition: all 0.3s ease;
            color: #FF8C42;
        }

        .footer-links a:hover {
            color: #FF8C42;
            transform: translateX(10px);
        }

        .footer-links a:hover::before {
            opacity: 1;
            left: 0;
        }

        /* Contact Info in Footer */
        .footer-contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
            color: #aaa;
            transition: all 0.3s ease;
        }

        .footer-contact-item:hover {
            color: #FF8C42;
            transform: translateX(5px);
        }

        .footer-contact-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .footer-contact-item a {
            color: inherit;
            text-decoration: none;
        }

        /* Footer Bottom */
        .footer-bottom {
            padding: 2rem 5%;
            position: relative;
            z-index: 2;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
        }

        .footer-bottom-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .footer-copyright {
            color: #888;
            font-size: 0.95rem;
        }

        .footer-copyright strong {
            color: #FF8C42;
        }

        /* Footer Social Media */
        .footer-social {
            display: flex;
            gap: 1rem;
        }

        .footer-social-link {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            cursor: pointer;
            text-decoration: none;
        }

        .footer-social-link:hover {
            background: #FF8C42;
            border-color: #FF8C42;
            transform: translateY(-10px) rotate(360deg) scale(1.1);
            box-shadow: 0 15px 30px rgba(255, 140, 66, 0.5);
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #6B2D6B 0%, #8B4789 100%);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(107, 45, 107, 0.4);
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-10px) scale(1.1);
            box-shadow: 0 15px 40px rgba(107, 45, 107, 0.6);
        }

        /* Responsive Footer */
        @media (max-width: 1024px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
                gap: 3rem;
            }

            .footer-logo-section {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 768px) {
            .footer-container {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }

            .footer-bottom-container {
                flex-direction: column;
                text-align: center;
            }

            .footer-top {
                padding: 3rem 5% 2rem;
            }
        }
        /* Responsive Footer */
        @media (max-width: 1024px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
                gap: 3rem;
            }

            .footer-logo-section {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 768px) {
            .footer-container {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }

            .footer-bottom-container {
                flex-direction: column;
                text-align: center;
            }

            .footer-top {
                padding: 3rem 5% 2rem;
            }
        }
        @media (max-width: 1024px) {
            .contact-content {
                grid-template-columns: 1fr;
            }

            .contact-form-wrapper,
            .contact-info-wrapper {
                padding: 3rem;
            }

            .contact-hero h2 {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 768px) {
            .contact-form-wrapper,
            .contact-info-wrapper {
                padding: 2rem;
            }

            .contact-hero {
                padding: 3rem 5%;
            }
        }
        @media (max-width: 768px) {
            .section-header h2 {
                font-size: 2rem;
            }

            .services-grid,
            .programs-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 768px) {
            .vision-header h2 {
                font-size: 2rem;
            }

            .vision-main h3 {
                font-size: 1.5rem;
            }

            .vision-main p {
                font-size: 1.1rem;
            }

            .vision-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 968px) {
            .welcome-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .welcome-content h2 {
                font-size: 2rem;
            }

            .welcome-image {
                order: -1;
            }
        }
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .hero-welcome {
                font-size: 1rem;
            }

            .hero-tagline {
                font-size: 1.3rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 300px;
            }

            .service-time-main {
                font-size: 1.1rem;
            }
        }

        /* ========== COMPREHENSIVE MOBILE RESPONSIVE FOR GALLERY PAGE ========== */

        /* Tablet Breakpoint (768px - 1024px) */
        @media (max-width: 1024px) {
            .gallery-hero {
                height: 50vh;
            }

            .gallery-hero h2 {
                font-size: 2rem;
            }

            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }

            .gallery-filters {
                gap: 0.8rem;
                margin-bottom: 2.5rem;
            }

            .gallery-filters button {
                padding: 0.7rem 1.3rem;
                font-size: 0.95rem;
            }
        }

        /* Mobile Breakpoint (480px - 768px) */
        @media (max-width: 768px) {
            html {
                font-size: 14px;
            }

            nav {
                padding: 0.8rem 4%;
            }

            /* Gallery Hero */
            .gallery-hero {
                height: 45vh;
                min-height: 350px;
                background-attachment: scroll;
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
            }

            .gallery-hero-content {
                width: 95%;
            }

            .gallery-hero h2 {
                font-size: clamp(1.8rem, 5vw, 2.4rem);
                margin-bottom: 0.8rem;
            }

            .gallery-hero p {
                font-size: 0.95rem;
                line-height: 1.6;
            }

            /* Gallery Section */
            .gallery-section {
                padding: 2.5rem 4%;
            }

            .section-title {
                font-size: 1.8rem;
                margin-bottom: 1.5rem;
            }

            /* Gallery Filters */
            .gallery-filters {
                display: flex;
                gap: 0.8rem;
                margin-bottom: 2rem;
                flex-wrap: wrap;
                justify-content: center;
            }

            .gallery-filters button {
                padding: 0.7rem 1.2rem;
                font-size: 0.9rem;
                border: 1px solid #ddd;
                border-radius: 5px;
                background: white;
                cursor: pointer;
                transition: all 0.3s;
                white-space: nowrap;
            }

            .gallery-filters button:hover,
            .gallery-filters button.active {
                background: #9C27B0;
                color: white;
                border-color: #9C27B0;
            }

            /* Gallery Grid */
            .gallery-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1.2rem;
                margin-bottom: 2rem;
            }

            .gallery-item {
                position: relative;
                overflow: hidden;
                border-radius: 8px;
                aspect-ratio: 1;
                cursor: pointer;
                transition: all 0.3s;
            }

            .gallery-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.3s;
            }

            .gallery-item:hover img {
                transform: scale(1.05);
            }

            .gallery-item-overlay {
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.5);
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transition: opacity 0.3s;
            }

            .gallery-item:hover .gallery-item-overlay {
                opacity: 1;
            }

            .gallery-item-icon {
                font-size: 2rem;
                color: white;
            }

            /* Load More Button */
            .load-more-btn {
                width: 100%;
                max-width: 300px;
                padding: 1rem;
                font-size: 1rem;
                border: none;
                border-radius: 6px;
                background: #9C27B0;
                color: white;
                cursor: pointer;
                margin: 2rem auto;
                display: block;
                transition: all 0.3s;
            }

            .load-more-btn:hover {
                background: #BA68C8;
                transform: translateY(-2px);
            }

            /* Modal/Lightbox */
            .gallery-modal {
                display: none;
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.9);
                z-index: 1000;
                align-items: center;
                justify-content: center;
            }

            .gallery-modal.active {
                display: flex;
            }

            .gallery-modal-content {
                position: relative;
                max-width: 90vw;
                max-height: 90vh;
                overflow: auto;
            }

            .gallery-modal-image {
                width: 100%;
                height: auto;
            }

            .gallery-modal-close {
                position: absolute;
                top: 1rem;
                right: 1rem;
                background: white;
                color: black;
                border: none;
                border-radius: 50%;
                width: 2.5rem;
                height: 2.5rem;
                font-size: 1.5rem;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            /* Footer */
            footer {
                padding: 2rem 4%;
                margin-top: 2rem;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .footer-section h3 {
                font-size: 1.1rem;
                margin-bottom: 0.8rem;
            }

            .footer-section p,
            .footer-section a {
                font-size: 0.9rem;
            }
        }

        /* Small Mobile (Below 480px) */
        @media (max-width: 480px) {
            html {
                font-size: 13px;
            }

            nav {
                padding: 0.6rem 3%;
            }

            /* Gallery Hero */
            .gallery-hero {
                height: 40vh;
                min-height: 300px;
            }

            .gallery-hero-content {
                width: 98%;
            }

            .gallery-hero h2 {
                font-size: clamp(1.5rem, 4vw, 2rem);
                margin-bottom: 0.6rem;
            }

            .gallery-hero p {
                font-size: 0.9rem;
                line-height: 1.5;
            }

            /* Gallery Section */
            .gallery-section {
                padding: 2rem 3%;
            }

            .section-title {
                font-size: 1.5rem;
                margin-bottom: 1.2rem;
            }

            /* Gallery Filters */
            .gallery-filters {
                gap: 0.6rem;
                margin-bottom: 1.5rem;
            }

            .gallery-filters button {
                padding: 0.6rem 1rem;
                font-size: 0.85rem;
                border-radius: 4px;
            }

            /* Gallery Grid */
            .gallery-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
                margin-bottom: 1.5rem;
            }

            .gallery-item {
                aspect-ratio: 4/3;
                border-radius: 6px;
            }

            .gallery-item-icon {
                font-size: 1.5rem;
            }

            /* Load More Button */
            .load-more-btn {
                max-width: 280px;
                padding: 0.9rem;
                font-size: 0.95rem;
                margin: 1.5rem auto;
                border-radius: 4px;
            }

            /* Modal/Lightbox */
            .gallery-modal-content {
                max-width: 95vw;
                max-height: 85vh;
            }

            .gallery-modal-close {
                width: 2.2rem;
                height: 2.2rem;
                font-size: 1.2rem;
                top: 0.8rem;
                right: 0.8rem;
            }

            /* Footer */
            footer {
                padding: 1.5rem 3%;
                margin-top: 1.5rem;
            }

            .footer-content {
                gap: 1.2rem;
            }

            .footer-section h3 {
                font-size: 1rem;
                margin-bottom: 0.6rem;
            }

            .footer-section p,
            .footer-section a {
                font-size: 0.85rem;
                line-height: 1.5;
            }
        }

        /* Ultra Small (Under 380px) */
        @media (max-width: 380px) {
            .gallery-hero h2 {
                font-size: clamp(1.3rem, 3.5vw, 1.7rem);
            }

            .section-title {
                font-size: 1.3rem;
            }

            .gallery-grid {
                gap: 0.8rem;
            }

            .gallery-item {
                aspect-ratio: 1;
            }

            .gallery-filters button {
                padding: 0.5rem 0.8rem;
                font-size: 0.8rem;
            }
        }