/* Gallery Specific Styles */

:root {
    --navy: #0A1F44;
    --gold: #C9A74F;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --shadow-color: rgba(0,0,0,0.1);
}

/* Gallery Filter Buttons */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0 3rem;
    gap: 1rem;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--navy);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background-color: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.filter-btn.active {
    background-color: var(--gold);
    color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-image-container {
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.gallery-image-container * {
    pointer-events: none;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 31, 68, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gold);
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.overlay-content i {
    font-size: 1.5rem;
    color: var(--gold);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background-color: var(--gold);
    transform: rotate(360deg);
}

.category-icon i {
    font-size: 2rem;
    color: var(--navy);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: var(--white);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--navy);
    font-weight: 600;
}

.category-card p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* Custom Lightbox Styling */
.lb-data .lb-caption {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    color: var(--gold) !important;
}

.lb-data .lb-details {
    width: 100% !important;
    text-align: center !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.5 !important;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1 !important;
}

/* Hidden elements for filter functionality */
.gallery-item[data-category].hide {
    display: none;
}

/* Animation for filtered items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item:not(.hide) {
    animation: fadeIn 0.5s ease forwards;
}
