/* ═══════════════════════════════════════════════
   KWRAP — Gallery Page Styles
   ═══════════════════════════════════════════════ */

/* ═══════════════ PAGE HERO (compact) ═══════════════ */
.page-hero {
    height: 50vh;
    min-height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.85) 100%);
}
.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}
.page-hero .section-tag {
    justify-content: center;
}
.page-hero .section-tag::before { display: none; }
.page-hero .section-title {
    font-size: clamp(3rem, 6vw, 6rem);
}
.page-hero .section-subtitle {
    margin: 12px auto 0;
    max-width: 600px;
}
.page-hero-breadcrumb {
    margin-top: 28px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}
.page-hero-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.page-hero-breadcrumb a:hover { color: var(--gold); }
.page-hero-breadcrumb span { color: var(--gold); }

/* ═══════════════ FILTER BAR ═══════════════ */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 40px 40px 0;
}
.filter-btn {
    padding: 10px 28px;
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
}

/* ═══════════════ GALLERY GRID ═══════════════ */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 50px 80px 120px;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid var(--dark-border);
    transition: border-color 0.4s ease;
}
.gallery-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover img {
    transform: scale(1.06);
}
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}
.gallery-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}
.gallery-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.gallery-card-tag {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}
.gallery-card-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
}
.gallery-card-divider {
    width: 1px;
    height: 12px;
    background: var(--dark-border);
}

/* Featured cards (span 2 cols or 2 rows) */
.gallery-card.featured {
    grid-column: span 2;
    aspect-ratio: 8/3;
}

/* ═══════════════ GALLERY CTA ═══════════════ */
.gallery-cta {
    text-align: center;
    padding: 80px 40px 120px;
    border-top: 1px solid var(--dark-border);
}
.gallery-cta .section-tag { justify-content: center; }
.gallery-cta .section-tag::before { display: none; }
.gallery-cta .section-subtitle { margin: 0 auto 36px; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px;
    }
    .gallery-card.featured {
        grid-column: span 2;
        aspect-ratio: 16/6;
    }
}

@media (max-width: 768px) {
    .gallery-page-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .gallery-card.featured {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
    .page-hero { min-height: 300px; }
    .filter-bar { padding: 30px 20px 0; }
}
