.gallery-section {
    position: relative;
    background-image: url('../img/gallery_bg_hanuman.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    border-top: 3px solid rgba(216, 67, 21, 0.35);
    border-bottom: 3px solid rgba(216, 67, 21, 0.35);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(52px, 6vh, 64px) 0 clamp(20px, 3vh, 32px);
    scroll-margin-top: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-overlay {
    display: none !important;
}

.gallery-section .gallery-container {
    height: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.gallery-header-block {
    text-align: center;
    flex-shrink: 0;
}

.gallery-section .gallery-heading-sub {
    display: block;
    font-family: 'Marcellus', serif;
    font-weight: 700;
    font-size: clamp(0.82rem, 0.95vw, 1.05rem);
    color: #FFE082;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    margin-bottom: 4px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.gallery-section .gallery-heading-main {
    font-family: 'Marcellus', serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 1.8vw, 1.95rem);
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

/* Category Filter Navigation */
.gallery-section .gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(6px, 0.8vw, 10px);
    margin-bottom: clamp(6px, 0.9vh, 10px);
}

.gallery-section .filter-btn {
    font-family: 'Marcellus', serif;
    font-weight: 700;
    font-size: clamp(0.8rem, 0.88vw, 0.92rem);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2D1408;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: clamp(5px, 0.8vh, 8px) clamp(16px, 1.4vw, 22px);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    line-height: 1.2;
}

.gallery-section .filter-btn:hover {
    background: #FFFFFF;
    color: #D84315;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 160, 0, 0.35);
}

.gallery-section .filter-btn.active {
    background: linear-gradient(135deg, #FFA000 0%, #E65100 100%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.45);
    transform: translateY(-2px);
}

/* Responsive Gallery Grid Base */
.gallery-section .gallery-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    gap: clamp(8px, 1vw, 14px);
    perspective: 1200px;
}

/* 6-Card Desktop Bento Grid (Fits seamlessly in 100VH) */
@media (min-width: 992px) {
    .gallery-section .gallery-grid.is-bento {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: clamp(8px, 1vw, 14px);
        margin-bottom: clamp(6px, 0.8vh, 10px);
    }

    .gallery-section .gallery-grid.is-bento .gallery-item {
        grid-column: span 1;
        grid-row: span 1;
        height: 100%;
        min-height: 0;
    }

    /* Hide extra initial cards when in 'All Photos' 6-card bento mode */
    .gallery-section .gallery-grid.is-bento .gallery-item.d-none-initial {
        display: none !important;
    }
}

/* Category Filtered Flex Grid (When user clicks a specific category) */
.gallery-section .gallery-grid:not(.is-bento) {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 1.4vw, 18px);
    margin-bottom: clamp(6px, 1vh, 12px);
    overflow-y: auto;
}

.gallery-section .gallery-grid:not(.is-bento) .gallery-item {
    flex: 0 0 calc(25% - 18px);
    max-width: 320px;
    min-width: 250px;
    height: clamp(180px, 25vh, 240px);
    min-height: 0;
}

/* Individual Card Focal Positions (6 Active Photos) */
.gallery-section .gallery-item.item-1 img, .modal-photo-card[data-index="0"] img { object-position: center 40%; }
.gallery-section .gallery-item.item-2 img, .modal-photo-card[data-index="1"] img { object-position: center 45%; }
.gallery-section .gallery-item.item-3 img, .modal-photo-card[data-index="2"] img { object-position: center 20%; }
.gallery-section .gallery-item.item-4 img, .modal-photo-card[data-index="3"] img { object-position: center 35%; }
.gallery-section .gallery-item.item-5 img, .modal-photo-card[data-index="4"] img { object-position: center 40%; }
.gallery-section .gallery-item.item-6 img, .modal-photo-card[data-index="5"] img { object-position: center 40%; }

.gallery-section .gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    background: #1C1C1E;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    will-change: transform;
    height: 100%;
    width: 100%;
    min-height: 0;
}

/* 3D Light Reflection Shine Overlay */
.gallery-section .gallery-card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 235, 190, 0.28) 0%, transparent 65%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.gallery-section .gallery-item:hover .gallery-card-shine {
    opacity: 1;
}

.gallery-section .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

/* Optimized focal positions so key details never get cropped */
.gallery-section .gallery-item.item-hero img {
    object-position: center 25%; /* Preserves Lord Hanuman's golden crown and face */
}

.gallery-section .gallery-item[data-category="maharajji"] img {
    object-position: 40% 30%; /* Focuses on Maharaj-ji blessing the devotee */
}

.gallery-section .gallery-item[data-category="bhandara"] img {
    object-position: center 45%; /* Balances devotee prasad serving hall */
}

.gallery-section .gallery-item[data-category="kirtan"] img {
    object-position: center 35%; /* Captures kirtan assembly and devotion */
}

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

.gallery-section .gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 20, 0.94) 0%, rgba(18, 18, 20, 0.42) 55%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(14px, 2vh, 22px) clamp(14px, 1.6vw, 20px);
    transition: opacity 0.35s ease;
    z-index: 3;
    box-sizing: border-box;
}

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

.gallery-section .item-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.68rem, 0.75vw, 0.75rem);
    font-weight: 600;
    color: #E6C687;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-section .item-title {
    font-family: 'Marcellus', serif;
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 clamp(6px, 0.8vh, 10px) 0;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.gallery-section .gallery-item.item-hero .item-title {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
}

.gallery-section .gallery-expand-badge {
    align-self: flex-start;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 0.75vw, 0.78rem);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(230, 198, 135, 0.2);
    border: 1px solid #E6C687;
    color: #E6C687;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transform: translateY(6px);
    transition: all 0.3s ease;
}

.gallery-section .gallery-item:hover .gallery-expand-badge {
    transform: translateY(0);
    background: #E6C687;
    color: #1C1C1E;
}

/* Custom 3D Lightbox Styles */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 14, 0.96);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 40px;
}

.gallery-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-modal .lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 2.8rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2020;
    line-height: 1;
}

.gallery-lightbox-modal .lightbox-close:hover {
    color: #E6C687;
    transform: rotate(90deg) scale(1.1);
}

.gallery-lightbox-modal .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 2020;
}

.gallery-lightbox-modal .lightbox-nav:hover {
    background: #E6C687;
    border-color: #E6C687;
    color: #1C1C1E;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(230, 198, 135, 0.4);
}

.gallery-lightbox-modal .lightbox-prev {
    left: 40px;
}

.gallery-lightbox-modal .lightbox-next {
    right: 40px;
}

.gallery-lightbox-modal .lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2010;
}

.gallery-lightbox-modal .lightbox-counter {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #E6C687;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.gallery-lightbox-modal .lightbox-img-container {
    max-width: 100%;
    max-height: 72vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(230, 198, 135, 0.3);
}

.gallery-lightbox-modal.active .lightbox-img-container {
    transform: scale(1);
}

.gallery-lightbox-modal .lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gallery-lightbox-modal .lightbox-caption {
    margin-top: 20px;
    color: #FFFFFF;
    text-align: center;
    font-family: 'Marcellus', serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

/* Mobile Gallery Navigation (Hidden on desktop by default) */
.gallery-mobile-controls {
    display: none;
}

@media (min-width: 769px) and (max-width: 991.98px), (max-height: 560px) and (min-width: 769px) {
    .gallery-section {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 75px 0 50px;
        overflow: visible;
    }

    .gallery-section .gallery-container {
        height: auto;
        max-height: none;
        min-height: auto;
        flex: none;
    }
    
    .gallery-section .gallery-heading-main {
        font-size: 2.1rem;
        margin-bottom: 14px;
    }
    
    .gallery-section .gallery-grid,
    .gallery-section .gallery-grid.is-bento,
    .gallery-section .gallery-grid:not(.is-bento) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        gap: 16px;
        perspective: none;
    }

    .gallery-section .gallery-grid .gallery-item,
    .gallery-section .gallery-grid.is-bento .gallery-item,
    .gallery-section .gallery-grid:not(.is-bento) .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        width: 100%;
        height: 100%;
        max-width: none;
    }

    .gallery-section .gallery-grid .gallery-item.item-hero,
    .gallery-section .gallery-grid.is-bento .gallery-item.item-hero {
        grid-column: 1 / -1 !important;
        height: 320px;
    }

    .gallery-lightbox-modal .lightbox-prev {
        left: 15px;
    }
    
    .gallery-lightbox-modal .lightbox-next {
        right: 15px;
    }
}

/* Mobile-Only Horizontal Slider and Controls (<= 768px) */
@media (max-width: 768px) {
    .gallery-section {
        background-attachment: scroll !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-x: clip !important;
        display: block !important;
        padding: clamp(75px, 9.5vh, 90px) 0 clamp(40px, 5vh, 50px) !important;
        scroll-margin-top: 75px !important;
        box-sizing: border-box !important;
    }

    .gallery-section .gallery-container {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .gallery-header-block {
        text-align: center !important;
        margin-bottom: 6px !important;
        flex-shrink: 0 !important;
    }

    .gallery-section .gallery-heading-sub {
        font-size: 0.8rem !important;
        letter-spacing: 2.8px !important;
        color: #FFE082 !important;
        margin-bottom: 4px !important;
    }

    .gallery-section .gallery-heading-main {
        font-size: clamp(1.4rem, 5.4vw, 1.85rem) !important;
        margin-bottom: 14px !important;
        line-height: 1.25 !important;
        color: #FFFFFF !important;
    }

    .gallery-section .gallery-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .gallery-section .filter-btn {
        padding: 7px 15px !important;
        font-size: 0.74rem !important;
        border-radius: 20px !important;
        letter-spacing: 0.6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 160, 0, 0.3) !important;
        color: #FFE082 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
    }

    .gallery-section .filter-btn:hover,
    .gallery-section .filter-btn.active {
        background: linear-gradient(135deg, #FFA000 0%, #D84315 100%) !important;
        border-color: transparent !important;
        color: #FFFFFF !important;
        box-shadow: 0 4px 15px rgba(230, 81, 0, 0.45) !important;
    }

    /* Slider Track with Native Smooth Scroll-Snap */
    .gallery-section .gallery-grid,
    .gallery-section .gallery-grid.is-bento,
    .gallery-section .gallery-grid:not(.is-bento) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        gap: 14px !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        perspective: none !important;
        position: relative !important;
    }

    .gallery-section .gallery-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* Mobile Slide Card (100% Full-Width Focus) */
    .gallery-section .gallery-grid .gallery-item,
    .gallery-section .gallery-grid.is-bento .gallery-item,
    .gallery-section .gallery-grid:not(.is-bento) .gallery-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: clamp(250px, 40vh, 320px) !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        transform: none !important;
    }

    .gallery-section .gallery-grid .gallery-item.item-hero,
    .gallery-section .gallery-grid.is-bento .gallery-item.item-hero {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: clamp(250px, 40vh, 320px) !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .gallery-section .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }

    .gallery-section .gallery-item-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(14, 5, 2, 0.94) 0%, rgba(14, 5, 2, 0.45) 50%, transparent 80%) !important;
        border-radius: 16px !important;
        padding: 16px 14px !important;
    }

    .gallery-section .item-category {
        font-size: 0.72rem !important;
        margin-bottom: 3px !important;
        color: #FFA000 !important;
    }

    .gallery-section .item-title {
        font-size: 1.12rem !important;
        margin-bottom: 6px !important;
        color: #FFFFFF !important;
    }

    .gallery-section .gallery-expand-badge {
        transform: translateY(0) !important;
        opacity: 1 !important;
        font-size: 0.72rem !important;
        padding: 4px 12px !important;
        background: rgba(255, 255, 255, 0.16) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 20px !important;
        align-self: flex-start !important;
        color: #FFE082 !important;
    }

    .gallery-action-wrapper {
        text-align: center !important;
        margin: 12px 0 6px 0 !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .gallery-view-all-btn {
        padding: 9px 24px !important;
        font-size: 0.85rem !important;
        border-radius: 26px !important;
        box-shadow: 0 5px 18px rgba(216, 67, 21, 0.4) !important;
    }

    /* Mobile Slider Navigation Bar */
    .gallery-mobile-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-top: 10px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .gallery-mobile-btn {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #FFE082 !important;
        border: 1px solid rgba(255, 160, 0, 0.35) !important;
        border-radius: 20px !important;
        padding: 6px 12px !important;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.4px !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
        transition: all 0.25s ease !important;
        user-select: none !important;
        white-space: nowrap !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .gallery-mobile-btn:active {
        transform: scale(0.96) !important;
        background: rgba(255, 160, 0, 0.25) !important;
        color: #FFFFFF !important;
        border-color: #FFA000 !important;
    }

    .gallery-mobile-btn i {
        font-size: 0.68rem !important;
    }

    .gallery-mobile-dots {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 4px !important;
    }

    .gallery-mobile-dot {
        width: 6px !important;
        height: 6px !important;
        border-radius: 3px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .gallery-mobile-dot.active {
        width: 16px !important;
        height: 6px !important;
        border-radius: 3px !important;
        background: linear-gradient(135deg, #FFA000 0%, #D84315 100%) !important;
        box-shadow: 0 2px 8px rgba(255, 160, 0, 0.45) !important;
    }

    .gallery-lightbox-modal .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.2rem;
    }

    .gallery-lightbox-modal .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .gallery-lightbox-modal .lightbox-prev {
        left: 15px;
    }
    
    .gallery-lightbox-modal .lightbox-next {
        right: 15px;
    }
}


/* Gallery Empty State (When photos are updating) */
.gallery-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1.5px dashed rgba(255, 160, 0, 0.45);
    border-radius: 24px;
    padding: clamp(45px, 7vh, 75px) clamp(24px, 4vw, 50px);
    margin: 20px auto 10px;
    max-width: 760px;
    width: 100%;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.gallery-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 160, 0, 0.12);
    border: 1.5px solid rgba(255, 160, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #FFA000;
    font-size: 2rem;
    box-shadow: 0 0 25px rgba(255, 160, 0, 0.25);
}

.gallery-empty-title {
    font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.gallery-empty-desc {
    font-family: 'Noto Serif Devanagari', 'Marcellus', serif;
    font-size: clamp(0.95rem, 1.1vw, 1.12rem);
    color: #FFE082;
    max-width: 580px;
    line-height: 1.65;
    margin: 0;
    opacity: 0.95;
}


/* =========================================================
   VIEW ALL PHOTOS BUTTON & MODAL
   ========================================================= */
.gallery-action-wrapper {
    text-align: center;
    flex-shrink: 0;
    margin-top: clamp(8px, 1.2vh, 12px);
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

.gallery-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFA000 0%, #D84315 100%);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 224, 130, 0.45);
    padding: clamp(6px, 0.9vh, 9px) clamp(20px, 1.6vw, 28px);
    border-radius: 30px;
    font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
    font-size: clamp(0.82rem, 0.92vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(216, 67, 21, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 6;
}

.gallery-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 160, 0, 0.5);
    background: linear-gradient(135deg, #FFB300 0%, #E65100 100%);
    color: #FFFFFF;
}

/* All Photos Full Showcase Modal */
.all-photos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: clamp(12px, 2.5vh, 28px);
    box-sizing: border-box;
}

.all-photos-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.all-photos-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 4, 2, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.all-photos-modal-dialog {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #1C0A04 0%, #100502 100%);
    border: 1.5px solid rgba(255, 160, 0, 0.35);
    border-radius: 20px;
    width: 100%;
    max-width: 1300px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    overscroll-behavior: contain;
}

.all-photos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(14px, 2vh, 20px) clamp(20px, 2.5vw, 28px);
    border-bottom: 1px solid rgba(255, 160, 0, 0.2);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.all-photos-badge {
    font-family: 'Noto Serif Devanagari', 'Plus Jakarta Sans', serif;
    font-size: 0.75rem;
    color: #FFE082;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.all-photos-modal-title {
    font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: #FFFFFF;
    margin: 0;
}

.all-photos-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.all-photos-modal-close:hover {
    background: #E65100;
    border-color: #E65100;
    transform: rotate(90deg);
}

.all-photos-modal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px clamp(20px, 2.5vw, 28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.modal-filter-btn {
    font-family: 'Marcellus', serif;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #FFE082;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-filter-btn.active, .modal-filter-btn:hover {
    background: linear-gradient(135deg, #FFA000 0%, #D84315 100%);
    color: #FFFFFF;
    border-color: transparent;
}

.all-photos-modal-body {
    padding: clamp(16px, 2.5vh, 24px) clamp(20px, 2.5vw, 28px);
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    flex: 1 1 auto;
    min-height: 0 !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 160, 0, 0.5) rgba(0, 0, 0, 0.3);
}

.all-photos-modal-body::-webkit-scrollbar {
    width: 10px;
}
.all-photos-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
}
.all-photos-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFA000 0%, #D84315 100%);
    border-radius: 5px;
    border: 2px solid rgba(20, 7, 3, 0.8);
}
.all-photos-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFB300 0%, #E65100 100%);
}

.all-photos-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .all-photos-modal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .all-photos-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .all-photos-modal-grid {
        grid-template-columns: 1fr;
    }
}

.modal-photo-card {
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #140703;
    border: 1px solid rgba(255, 160, 0, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-photo-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 160, 0, 0.6);
    box-shadow: 0 10px 25px rgba(255, 160, 0, 0.28);
}

.modal-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(10, 4, 2, 0.94) 0%, rgba(10, 4, 2, 0.45) 60%, transparent 100%);
}

.modal-photo-cat {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    color: #FFA000;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.modal-photo-title {
    font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
    font-size: 0.88rem;
    color: #FFFFFF;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   HINDI (DEVANAGARI) LANGUAGE OVERRIDES
   Ensures zero letter-spacing gaps and flawless Devanagari font
   ========================================================= */
html[lang="hi"] .gallery-section *:not(i):not([class*="fa-"]):not([class^="fa-"]),
html[lang="hi"] .all-photos-modal *:not(i):not([class*="fa-"]):not([class^="fa-"]),
html[lang="hi"] .gallery-lightbox-modal *:not(i):not([class*="fa-"]):not([class^="fa-"]) {
    letter-spacing: normal !important;
    text-transform: none !important;
}

html[lang="hi"] .gallery-heading-sub,
html[lang="hi"] .gallery-heading-main,
html[lang="hi"] .filter-btn,
html[lang="hi"] .item-title,
html[lang="hi"] .item-category,
html[lang="hi"] .gallery-expand-badge span,
html[lang="hi"] .gallery-view-all-btn span,
html[lang="hi"] .all-photos-badge,
html[lang="hi"] .all-photos-modal-title,
html[lang="hi"] .modal-filter-btn,
html[lang="hi"] .modal-photo-cat,
html[lang="hi"] .modal-photo-title,
html[lang="hi"] .lightbox-caption {
    font-family: 'Noto Serif Devanagari', serif !important;
    letter-spacing: normal !important;
}
