/* ==================== PAGE HERO ==================== */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--secondary);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.06);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.04);
    pointer-events: none;
}

.gallery-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d1f3c 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    color: var(--white);
}

.page-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(196, 30, 58, 0.15);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.page-hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-hero-content h1 span {
    color: var(--primary);
}

.page-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ==================== GALLERY FILTERS ==================== */
.gallery-filters {
    padding: 32px 0 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 72px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray);
    border-radius: 50px;
    background: transparent;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.25);
}

.filter-btn.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ==================== GALLERY GRID ==================== */
.gallery-grid-section {
    padding: 40px 0 60px;
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85), rgba(196, 30, 58, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    color: var(--primary);
}

.gallery-overlay-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-overlay-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 200px;
    margin: 0 auto;
}

/* ==================== LOAD MORE ==================== */
.gallery-load-more {
    text-align: center;
    margin-top: 40px;
}

.gallery-load-more .btn {
    min-width: 200px;
    justify-content: center;
}

.gallery-load-more .btn i {
    transition: var(--transition);
}

.gallery-load-more .btn:hover i {
    transform: rotate(180deg);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 16px;
    font-size: 1rem;
    opacity: 0.8;
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ==================== GALLERY CTA ==================== */
.gallery-cta {
    padding: 80px 0;
    background: var(--secondary);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.gallery-cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.gallery-cta-content h2 span {
    color: var(--primary);
}

.gallery-cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto 32px;
}

.gallery-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .page-hero-content h1 {
        font-size: 2.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    .gallery-filters {
        top: 64px;
        padding: 20px 0 16px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .gallery-cta-content h2 {
        font-size: 2rem;
    }
    
    .lightbox {
        padding: 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .page-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    
    .gallery-cta-content h2 {
        font-size: 1.6rem;
    }
    
    .gallery-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gallery-cta-buttons .btn {
        justify-content: center;
    }
    
    .gallery-load-more .btn {
        width: 100%;
    }
    
    .lightbox {
        padding: 12px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
}