﻿/* ─── Active nav link ─────────────────────────────────────── */
.nav-active {
    color: var(--red) !important;
    font-weight: 600;
}


/* ─── Gallery Hero ─────────────────────────────────────────── */
.gallery-hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(231, 15, 6, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-hero--3d::before {
    background: radial-gradient(circle, rgba(231, 15, 6, 0.06) 0%, rgba(254, 195, 103, 0.06) 50%, transparent 70%);
}

.gallery-hero-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gallery-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
}

.gallery-hero-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.gallery-hero-breadcrumb a:hover {
    color: var(--red);
}

.gallery-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    flex: 1;
}

.gallery-hero-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 14px;
}

.gallery-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-hero-title {
    font-family: 'NAMU 1990', sans-serif;
    font-size: 80px;
    font-weight: normal;
    line-height: 1.05;
    color: #252525;
}

.gallery-hero-title .text-gradient {
    font-size: inherit;
}

.gallery-hero-desc {
    font-family: 'Onest', sans-serif;
    font-size: 22px;
    color: #555;
    line-height: 1.6;
    max-width: 560px;
}

.gallery-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

/* ─── Gallery Filter Bar ──────────────────────────────────── */
.gallery-section {
    padding: 40px 0 80px;
}

.gallery-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    height: 52px;
    padding: 0 24px;
    border-radius: var(--pill-radius);
    border: 2px solid transparent;
    background: var(--white);
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #252525;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 15, 6, 0.1);
}

.filter-btn.active {
    background: var(--gradient-orange);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(231, 15, 6, 0.2);
}

/* ─── Gallery Grid ─────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ─── Gallery Card ─────────────────────────────────────────── */
.gallery-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    position: relative;
    color: #ffffff;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    aspect-ratio: 3 / 4;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.gallery-card.hidden {
    display: none;
}

.gallery-card .card-img-wrap {
    flex: 1;
    overflow: hidden;
}

.gallery-card .card-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-img-main {
    transform: scale(1.08);
}

.gallery-card:hover .card-blur-bg img {
    transform: scale(1.5);
}

.gallery-card .card-content {
    padding: 20px 22px 24px;
    justify-content: flex-end;
}

.gallery-card-tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    background: var(--white);
    border-radius: 100px;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #252525;
    margin-bottom: 10px;
    width: fit-content;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── Gallery CTA ──────────────────────────────────────────── */
.gallery-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    position: relative;
    overflow: hidden;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 15, 6, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 195, 103, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.gallery-cta-content h2 {
    font-family: 'NAMU 1990', sans-serif;
    font-size: 56px;
    font-weight: normal;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.gallery-cta-content p {
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.gallery-cta .btn-gradient {
    flex-shrink: 0;
    font-size: 22px;
    width: 200px;
    height: 72px;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 110px 0 40px;
    }

    .gallery-hero-title {
        font-size: 52px;
    }

    .gallery-hero-desc {
        font-size: 17px;
    }

    .gallery-hero-icon {
        width: 52px;
        height: 52px;
        padding: 12px;
        border-radius: 14px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-section {
        padding: 24px 0 60px;
    }

    .gallery-filter-bar {
        gap: 8px;
        margin-bottom: 32px;
    }

    .filter-btn {
        height: 44px;
        padding: 0 18px;
        font-size: 15px;
    }

    .gallery-cta-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-cta-content h2 {
        font-size: 38px;
    }

    .gallery-cta-content p {
        font-size: 16px;
    }

    .gallery-cta .btn-gradient {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .gallery-hero-title {
        font-size: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-card .card-content h3 {
        font-size: 14px;
    }

    .gallery-card .card-content p {
        font-size: 12px;
    }
}

/* ─── Skeleton Loading (Directus fetch) ──────────────────── */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.gallery-card--skeleton {
    pointer-events: none;
    cursor: default;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
}

.skeleton-img,
.skeleton-tag,
.skeleton-title,
.skeleton-text {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.04) 100%
    );
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
}

.skeleton-img {
    height: 200px;
    border-radius: 0;
}

.gallery-card--skeleton .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-tag  { height: 20px; width: 70px; }
.skeleton-title{ height: 22px; width: 80%; }
.skeleton-text { height: 16px; width: 90%; }

/* ─── Empty State ────────────────────────────────────────── */
.gallery-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.gallery-empty a {
    color: var(--red, #e70f06);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.gallery-empty a:hover { opacity: 0.75; }


