.gallery-section {
    background: linear-gradient(135deg, #FFF4E5 0%, #FFE6D5 50%, #FFD9C0 100%);
    padding: 100px 0;
    border-top: 3px solid rgba(216, 67, 21, 0.2);
}

.gallery-section .gallery-heading-sub {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #C5A880;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-section .gallery-heading-main {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 2.6rem;
    color: #1C1C1E;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Category Filter Navigation */
.gallery-section .gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.gallery-section .filter-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1C1C1E;
    background: #FFFFFF;
    border: 1px solid rgba(28, 28, 30, 0.12);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.gallery-section .filter-btn:hover {
    border-color: #C5A880;
    color: #C5A880;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.2);
}

.gallery-section .filter-btn.active {
    background: #C5A880;
    border-color: #C5A880;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.35);
    transform: translateY(-2px);
}

/* Responsive Gallery Grid Base */
.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 270px;
    gap: 24px;
    perspective: 1200px;
}

/* Dynamic Bento Architecture Grid (Active on 'All Photos' Tab) */
.gallery-section .gallery-grid.is-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
}

.gallery-section .gallery-grid.is-bento .gallery-item.item-hero {
    grid-column: span 7;
    grid-row: span 2;
}

.gallery-section .gallery-grid.is-bento .gallery-item:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
}

.gallery-section .gallery-grid.is-bento .gallery-item:nth-child(3) {
    grid-column: span 5;
    grid-row: span 1;
}

.gallery-section .gallery-grid.is-bento .gallery-item:nth-child(4) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-section .gallery-grid.is-bento .gallery-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-section .gallery-grid.is-bento .gallery-item:nth-child(6) {
    grid-column: span 4;
    grid-row: span 1;
}

.gallery-section .gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    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;
}

/* 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;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.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.92) 0%, rgba(18, 18, 20, 0.35) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: opacity 0.4s ease;
    z-index: 3;
}

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

.gallery-section .item-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #E6C687;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.gallery-section .item-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.gallery-section .gallery-expand-badge {
    align-self: flex-start;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(230, 198, 135, 0.2);
    border: 1px solid #E6C687;
    color: #E6C687;
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transform: translateY(10px);
    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: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

@media (max-width: 991.98px) {
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-section .gallery-heading-main {
        font-size: 2.2rem;
    }
    
    .gallery-section .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
        gap: 16px;
    }

    .gallery-section .gallery-item.item-hero,
    .gallery-section .gallery-item:nth-child(2),
    .gallery-section .gallery-item:nth-child(3),
    .gallery-section .gallery-item:nth-child(4),
    .gallery-section .gallery-item:nth-child(5),
    .gallery-section .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }

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

@media (max-width: 575.98px) {
    .gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .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;
    }
}
