/* Gallery Section Styles - Local Image Version */
    .gallery-section {
        padding: 5rem 0 3rem;
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(255, 251, 240, 0.95), rgba(255, 249, 226, 0.9));
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-image: linear-gradient(to right, var(--saffron), var(--spiritual-green), var(--divine-purple)) 1;
    }
    
    .gallery-title {
        font-family: 'Cinzel Decorative', cursive;
        text-align: center;
        font-size: 3rem;
        color: var(--earth-brown);
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(to right, var(--saffron), var(--divine-purple), var(--spiritual-green));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.05);
    }
    
    .gallery-title:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 4px;
        background: linear-gradient(to right, var(--saffron), var(--temple-gold), var(--spiritual-green));
        border-radius: 2px;
    }
    
    .gallery-subtitle {
        text-align: center;
        font-size: 1.2rem;
        color: var(--spiritual-green);
        margin-bottom: 3rem;
        font-style: italic;
    }
    
    .gallery-row {
        margin-bottom: 2rem;
    }
    
    .gallery-col {
        padding: 15px;
    }
    
    .gallery-item {
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        height: 300px;
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 3px solid transparent;
        background-clip: padding-box;
    }
    
    .gallery-item:before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 22px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    /* Unique border styles for each gallery item */
    .temple-view:before {
        background: linear-gradient(45deg, var(--saffron), var(--temple-gold), #ff6600);
    }
    
    .meditation:before {
        background: linear-gradient(45deg, var(--spiritual-green), #00cc99, #00ffcc);
    }
    
    .rituals:before {
        background: linear-gradient(45deg, var(--divine-purple), #cc33ff, #9900ff);
    }
    
    .community:before {
        background: linear-gradient(45deg, var(--lotus-pink), #ff66b2, #ff3399);
    }
    
    .teachings:before {
        background: linear-gradient(45deg, var(--sky-blue), #66ccff, #3399ff);
    }
    
    .gallery-item:hover:before {
        opacity: 1;
    }
    
    .gallery-img-container {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 17px;
        background: #f0f0f0;
    }
    
    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        filter: brightness(0.9) contrast(1.1);
    }
    
    /* Unique hover animations for each image */
    .temple-view:hover .gallery-img {
        transform: scale(1.15) rotate(-2deg);
        filter: brightness(1.1) sepia(0.3) saturate(1.3);
    }
    
    .meditation:hover .gallery-img {
        transform: scale(1.2) translateY(-10px);
        filter: brightness(1.2) blur(0.5px);
    }
    
    .rituals:hover .gallery-img {
        transform: scale(1.1) rotate(3deg);
        filter: brightness(1.1) contrast(1.3);
    }
    
    .community:hover .gallery-img {
        transform: scale(1.25) translateX(-5px);
        filter: brightness(1.15) saturate(1.5);
    }
    
    .teachings:hover .gallery-img {
        transform: scale(1.18) translateY(5px);
        filter: brightness(1.05) sepia(0.2);
    }
    
    .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
        border-radius: 17px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 2rem;
        opacity: 0;
        transition: all 0.5s ease;
        transform: translateY(20px);
    }
    
    .gallery-item:hover .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-content {
        text-align: center;
        color: white;
        transform: translateY(20px);
        transition: all 0.5s ease 0.1s;
    }
    
    .gallery-item:hover .gallery-content {
        transform: translateY(0);
    }
    
    .gallery-content h4 {
        font-family: 'Cinzel Decorative', cursive;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .gallery-content p {
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 1rem;
    }
    
    .gallery-icon {
        font-size: 2.5rem;
        margin-top: 0.5rem;
        animation: iconFloat 3s infinite ease-in-out;
        color: var(--temple-gold);
    }
    
    @keyframes iconFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    /* Unique hover effects for each gallery item */
    .temple-view:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(255, 153, 51, 0.3);
    }
    
    .meditation:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(10, 158, 127, 0.3);
    }
    
    .rituals:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(138, 43, 226, 0.3);
    }
    
    .community:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(255, 105, 180, 0.3);
    }
    
    .teachings:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(135, 206, 235, 0.3);
    }
    
    /* Second row adjustments */
    .second-row .gallery-col {
        padding: 15px;
    }
    
    /* Image instructions */
    .image-instructions {
        margin-top: 3rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .image-instructions .alert {
        border-radius: 15px;
        border: 2px solid var(--spiritual-green);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .image-instructions h5 {
        color: var(--spiritual-green);
        margin-bottom: 1rem;
    }
    
    .image-instructions ol {
        padding-left: 1.5rem;
    }
    
    .image-instructions ul {
        padding-left: 2rem;
        margin-top: 0.5rem;
    }
    
    .image-instructions code {
        background: rgba(10, 158, 127, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        color: var(--spiritual-green);
        font-weight: bold;
    }
    
    /* Responsive adjustments */
    @media (max-width: 992px) {
        .gallery-title {
            font-size: 2.5rem;
        }
        
        .gallery-item {
            height: 250px;
        }
        
        .gallery-content h4 {
            font-size: 1.5rem;
        }
    }
    
    @media (max-width: 768px) {
        .gallery-title {
            font-size: 2rem;
        }
        
        .gallery-subtitle {
            font-size: 1rem;
        }
        
        .gallery-item {
            height: 220px;
        }
        
        .gallery-content h4 {
            font-size: 1.3rem;
        }
        
        .gallery-content p {
            font-size: 0.9rem;
        }
        
        .gallery-icon {
            font-size: 2rem;
        }
        
        .gallery-col {
            margin-bottom: 20px;
        }
        
        .second-row .gallery-col {
            margin-bottom: 0;
        }
    }
    
    @media (max-width: 576px) {
        .gallery-item {
            height: 200px;
        }
    }