/* Gallery Page Styles */

/* Gallery Header */
.gallery-header {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.gallery-header-content h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

.gallery-header-content p {
    font-size: var(--font-size-lg);
    color: var(--text-medium);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Categories */
.gallery-categories {
    padding: var(--space-10) 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.category-btn {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-medium);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

/* Photo Gallery */
.photo-gallery {
    padding: var(--space-20) 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.1);
    background: rgba(255, 107, 53, 0.8);
    border-color: var(--primary-color);
}

.gallery-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    z-index: 10000;
    padding: 0 !important;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-close {
    top: var(--space-6);
    right: var(--space-6);
}

.lightbox-prev {
    left: var(--space-6);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--space-6);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close img,
.lightbox-prev img,
.lightbox-next img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Gallery CTA */
.gallery-cta {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    text-align: center;
}

.gallery-cta h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.gallery-cta p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.cta-buttons .btn-primary {
    background: var(--text-white);
    color: var(--primary-color);
    border: 2px solid var(--text-white);
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: var(--text-white);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* Gallery Filter Animation */
.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all var(--transition-base);
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-header-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-4);
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .category-tabs {
        gap: var(--space-2);
    }
    
    .category-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }
    
    .lightbox-content {
        padding: var(--space-6);
    }
    
    .lightbox-close {
        top: var(--space-4);
        right: var(--space-4);
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev {
        left: var(--space-4);
    }
    
    .lightbox-next {
        right: var(--space-4);
    }
    
    .gallery-cta h2 {
        font-size: var(--font-size-2xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
}