/* ==========================================================================
   Gallery Page Styles
   ========================================================================== */

/* Map legacy gallery tokens to active site tokens */
:root {
    --navy: var(--color-primary);
    --navy-light: var(--color-primary-light);
    --white: var(--color-white);
    --cream: var(--color-bg-light);
    --gold: var(--color-secondary);
    --text: var(--color-text-main);
    --text-light: var(--color-text-muted);
    --shadow: var(--shadow-md);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 6rem 0 3rem;
    color: var(--white);
}

.page-hero .breadcrumb {
    margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

.page-hero .breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Gallery Filters */
.gallery-filters {
    background: var(--cream);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    z-index: var(--z-sticky);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--navy);
    color: var(--white);
}

.filter-btn.active {
    background: var(--navy);
    color: var(--white);
}

/* Gallery Masonry Grid */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Gallery Cards */
.gallery-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-card.hidden {
    display: none;
}

.gallery-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card-content {
    padding: 1.5rem;
}

.gallery-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.gallery-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.gallery-card-location {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.gallery-card-location i {
    margin-right: 0.25rem;
    color: var(--gold);
}

/* (Comparison slider styles removed) */

/* No Results */
.gallery-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.gallery-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Gallery CTA */
.gallery-cta {
    padding: 4rem 0;
}

.gallery-cta h2 {
    margin-bottom: 0.75rem;
}

.gallery-cta p {
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--navy);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: var(--cream);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--navy);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--cream);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox-next {
    right: 1rem;
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(3px);
}

.lightbox-image-container {
    width: 100%;
    aspect-ratio: 16/9;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--cream);
}

.lightbox-info {
    padding: 1.5rem;
    background: var(--white);
}

.lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.lightbox-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.lightbox-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.lightbox-details i {
    color: var(--gold);
    margin-right: 0.375rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 5rem 0 2rem;
    }
    
    .gallery-filters {
        top: 60px;
    }
    
    .filter-wrapper {
        gap: 0.375rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-info {
        padding: 1rem;
    }
    
    .lightbox-title {
        font-size: 1.25rem;
    }
    
    .lightbox-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.concept-gallery .gallery-card-image {
    position: relative;
}

.concept-gallery .gallery-card-image::after {
    content: "AI PLANNING CONCEPT";
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.25rem;
    background: rgba(12, 24, 35, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    pointer-events: none;
}
