
/* Gallery  */
   
        :root {
            --glass-blue: rgba(74, 144, 226, 0.85);
            --deep-maroon: #8B0000;
            --sacred-gold: #D4AF37;
            --pure-white: #FFFFFF;
            --light-gray: #F8F9FA;
            --dark-blue: #1A365D;
            --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
            --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.12);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.7;
            color: #333;
            background-color: var(--light-gray);
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 1.5rem;
        }

        .scripture-font {
            font-family: 'Crimson Text', serif;
            font-style: italic;
        }

        /* Header & Navigation - Replicated from index.html */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            transition: all 0.4s ease;
            padding: 1rem 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow-soft);
        }

        header.scrolled {
            padding: 0.6rem 0;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: var(--shadow-strong);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .logo-container {
            display: flex;
            align-items: center;
            position: relative;
        }

        .logo-image {
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        /* Logo Shimmer Animation */
        @keyframes logoShimmer {
            0% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
            50% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7)); }
            100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
        }

        .logo-image img {
            animation: logoShimmer 10s infinite;
        }

        .logo-container:hover .logo-image {
            transform: scale(1.05);
        }

        .logo-text {
            margin-left: 1rem;
        }

        .logo-text h1 {
            font-size: 1.8rem;
            margin-bottom: 0.2rem;
            color: var(--dark-blue);
            line-height: 1.2;
        }

        .logo-text p {
            font-size: 0.9rem;
            color: var(--deep-maroon);
            font-weight: 500;
            letter-spacing: 1px;
        }

        .nav-desktop {
            display: flex;
            align-items: center;
        }

        .nav-desktop ul {
            display: flex;
            list-style: none;
        }

        .nav-desktop li {
            margin-left: 2rem;
            position: relative;
        }

        .nav-desktop a {
            text-decoration: none;
            color: var(--dark-blue);
            font-weight: 500;
            font-size: 1rem;
            padding: 0.5rem 0;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-desktop a:hover {
            color: var(--deep-maroon);
        }

        .nav-desktop a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--sacred-gold);
            transition: width 0.3s ease;
        }

        .nav-desktop a:hover::after {
            width: 100%;
        }

        .mega-menu {
            position: absolute;
            top: 100%;
            left: -2rem;
            width: 800px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(15px);
            border-radius: 12px;
            padding: 2rem;
            box-shadow: var(--shadow-strong);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.4s ease;
            z-index: 100;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .has-mega-menu:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(10px);
        }

        .mega-menu-column h4 {
            font-size: 1rem;
            color: var(--deep-maroon);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(139, 0, 0, 0.1);
        }

        .mega-menu-column a {
            display: block;
            padding: 0.5rem 0;
            font-size: 0.9rem;
            color: #555;
            transition: all 0.3s ease;
        }

        .mega-menu-column a:hover {
            color: var(--deep-maroon);
            padding-left: 0.5rem;
        }

        .mega-menu-column i {
            margin-right: 0.5rem;
            color: var(--glass-blue);
            width: 18px;
            text-align: center;
        }

        .mobile-menu-btn {
            display: none;
            font-size: 1.5rem;
            background: none;
            border: none;
            color: var(--dark-blue);
            cursor: pointer;
        }

        /* Hero Canvas - Breath of Life */
        .hero-gallery {
    height: 60vh;
    min-height: 500px; /* Add minimum height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Increased padding-top instead of margin-top */
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.1) 0%,
        rgba(26, 54, 93, 0.1) 50%,
        rgba(212, 175, 55, 0.1) 100%
    );
}

        .gradient-mesh {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 60%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
            animation: floatMesh 20s infinite alternate ease-in-out;
        }

        @keyframes floatMesh {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(-2%, -2%) scale(1.05); }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: var(--dark-blue);
            max-width: 800px;
            padding: 0 2rem;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            text-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
            line-height: 1.2;
        }

        .hero-content p {
            font-size: 1.3rem;
            margin-bottom: 2.5rem;
            opacity: 0.8;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Magnetic Filter Buttons */
        .gallery-filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            padding: 2rem 0;
            background: white;
            position: sticky;
            top: 80px;
            z-index: 900;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .filter-btn {
            padding: 0.8rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            background: transparent;
            color: var(--dark-blue);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .filter-btn.active {
            background: var(--deep-maroon);
            color: white;
            border-color: var(--deep-maroon);
        }

        .filter-btn:hover:not(.active) {
            color: var(--deep-maroon);
            border-color: var(--deep-maroon);
            transform: translateY(-3px);
        }

        .filter-btn.magnetic {
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* Divine Grid - Masonry Layout */
        .gallery-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        .masonry-grid {
            columns: 3;
            column-gap: 2rem;
        }

        .gallery-item {
            break-inside: avoid;
            margin-bottom: 2rem;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow-soft);
            background: white;
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(30px);
            will-change: transform, opacity;
        }

        .gallery-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* 3D Tilt Effect Container */
        .tilt-container {
            width: 100%;
            height: 100%;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .tilt-container {
            transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
        }

        /* Sacred Gold Glint Effect */
        .tilt-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent 30%,
                rgba(212, 175, 55, 0.1) 50%,
                transparent 70%
            );
            transform: rotate(45deg);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 2;
        }

        .gallery-item:hover .tilt-container::before {
            opacity: 1;
        }

        /* Progressive Image Loading */
        .image-container {
            position: relative;
            width: 100%;
            padding-bottom: 75%; /* 4:3 aspect ratio */
            overflow: hidden;
        }

        .image-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .gallery-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .gallery-image.loaded {
            opacity: 1;
        }

        .gallery-info {
            padding: 1.5rem;
        }

        .gallery-info h3 {
            font-size: 1.2rem;
            color: var(--dark-blue);
            margin-bottom: 0.5rem;
        }

        .gallery-info p {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .gallery-category {
            display: inline-block;
            padding: 0.3rem 1rem;
            background: rgba(139, 0, 0, 0.1);
            color: var(--deep-maroon);
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-top: 0.8rem;
        }

        /* Lumen Lightbox */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .lightbox.active {
            display: flex;
            opacity: 1;
        }

        .lightbox-content {
            max-width: 90vw;
            max-height: 90vh;
            position: relative;
            transform: scale(0.8);
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .lightbox.active .lightbox-content {
            transform: scale(1);
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 10px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .lightbox-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
            padding: 2rem;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        .lightbox-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .lightbox-close:hover {
            background: var(--deep-maroon);
            transform: rotate(90deg);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 2rem;
            transform: translateY(-50%);
        }

        .lightbox-nav button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .lightbox-nav button:hover {
            background: var(--sacred-gold);
            transform: scale(1.1);
        }

        /* Mobile Menu */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(15px);
            z-index: 3000; /* Higher than lightbox */
            padding: 2rem;
            transform: translateX(-100%);
            transition: transform 0.4s ease;
            overflow-y: auto;
        }

        .mobile-menu.active {
            transform: translateX(0);
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .mobile-menu-close {
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--dark-blue);
            cursor: pointer;
        }

        .mobile-nav ul {
            list-style: none;
        }

        .mobile-nav li {
            margin-bottom: 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .mobile-nav a {
            display: block;
            padding: 1rem 0;
            font-size: 1.1rem;
            color: var(--dark-blue);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Footer - Replicated from index.html */
        footer {
            background: var(--dark-blue);
            color: white;
            padding: 4rem 2rem 2rem;
            margin-top: 4rem;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
        }

        .footer-column h4 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: white;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-column h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--sacred-gold);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 0.8rem;
        }

        .footer-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-column ul li a:hover {
            color: white;
            padding-left: 5px;
        }

        .footer-logo {
            display: flex;
            justify-content: flex-start;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-icon:hover {
            background: var(--sacred-gold);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #aaa;
            font-size: 0.9rem;
        }

        /* Mobile Responsiveness */
        @media (max-width: 1024px) {
            .masonry-grid {
                columns: 2;
            }
            
            .footer-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            .nav-desktop {
                display: none;
            }
            
            .hero-content h1 {
                font-size: 2.5rem;
            }
            
            .hero-content p {
                font-size: 1.1rem;
            }
            
            .masonry-grid {
                columns: 1;
                column-gap: 0;
            }
            
            /* Stream of Grace - Single Column Layout */
            .gallery-container {
                padding: 1rem;
            }
            
            .gallery-item {
                margin-bottom: 1.5rem;
            }
            
            /* Snap Scrolling for Mobile */
            .gallery-container {
                height: calc(100vh - 200px);
                overflow-y: auto;
                scroll-snap-type: y mandatory;
            }
            
            .gallery-item {
                scroll-snap-align: start;
                min-height: 70vh;
            }
            
            .gallery-filters {
                flex-wrap: wrap;
                gap: 0.5rem;
                padding: 1rem;
            }
            
            .filter-btn {
                min-width: 48px;
                min-height: 48px;
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }
            
            .footer-container {
                grid-template-columns: 1fr;
            }
            
            .footer-column {
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            
            .footer-column h4::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .footer-logo {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 2rem;
            }
            
            .hero-content p {
                font-size: 1rem;
            }
            
            .logo-text h1 {
                font-size: 1.4rem;
            }
            
            .lightbox-nav button {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }
    
    