/* Gallery Section Styles */
.gallery-section {
    padding: 10px 0 80px;
    min-height: 800px;
    background-color: var(--bg-body);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Light mode shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 350px;
    /* Fixed height for consistent grid */
    background-color: #f0f0f0;
    /* Loading placeholder */
    border: 5px solid white;
}

.gallery-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item-wrapper:hover img {
    transform: scale(1.08);
}

.gallery-item-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-wrapper:hover .gallery-icon {
    transform: translateY(0);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--charcoal);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-nav {
    padding: 0 15px;
    border-radius: 20px;
    width: auto;
}

.lb-data .lb-number {
    display: none !important;
}

.lb-data .lb-caption {
    font-family: 'Gallient', serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--gold);
}

/* Dark Theme Adjustments for Gallery */
[data-theme="dark"] .gallery-section {
    background-color: var(--bg-body);
}

[data-theme="dark"] .gallery-item-wrapper {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-item-wrapper:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .pagination-btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

[data-theme="dark"] .pagination-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}