/* Gallery-specific styles with Filipino Fire theme */
.gallery-section {
    padding: 3rem 0;
    background: var(--pearl-white);
    min-height: 80vh;
}

/* Gallery Filter Buttons */
.gallery-filter {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-radius: 15px;
}

.filter-btn {
    background: white;
    color: var(--ocean-deep);
    border: 2px solid var(--fire-orange);
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--sunset-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* Photo Gallery Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', serif;
}

.photo-caption {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.photo-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--sunset-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--fire-orange);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.125rem;
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(251, 191, 36, 0.8) 100%);
    border-radius: 0 0 10px 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: var(--sunset-gradient);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.5);
}

.lightbox-prev {
    margin-left: -80px;
}

.lightbox-next {
    margin-right: -80px;
}

/* Loading Animation */
.photo-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--ocean-deep);
}

.gallery-empty h3 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.gallery-empty p {
    font-size: 1.125rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-filter {
        padding: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin: 0.25rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        margin-left: -60px;
    }
    
    .lightbox-next {
        margin-right: -60px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lightbox-nav {
        position: static;
        margin-top: 1rem;
        justify-content: center;
        gap: 2rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        margin: 0;
        position: static;
    }
}
