/* article.css — News article pages */

/* ── Hero ─────────────────────────────────────────────────── */
.art-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.art-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.art-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    opacity: 0.9;
}
.art-breadcrumb:hover { opacity: 1; color: #fff; text-shadow: none; gap: 0.75rem; }
.art-breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }

.art-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
    font-weight: 500;
}
.art-hero-meta svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

.art-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.art-hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 640px;
}

/* ── Article Body ─────────────────────────────────────────── */
.art-body {
    padding: 5rem 2rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.art-body-inner {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
    animation: fadeUp 0.9s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}

.art-body-inner p {
    margin-bottom: 1.4rem;
}
.art-body-inner p:last-child { margin-bottom: 0; }

/* ── Gallery ──────────────────────────────────────────────── */
.art-gallery-section {
    padding: 4rem 2rem 5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.art-gallery-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.art-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.art-gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    transition: var(--transition);
    /* Scroll-reveal start state */
    opacity: 0;
    transform: translateY(24px) scale(0.98);
}

.art-gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.art-gallery-item:hover {
    border-color: rgba(248,178,54,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateY(-4px) scale(1.01);
}

.art-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.art-gallery-item:hover img {
    transform: scale(1.07);
}

.art-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9,9,11,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.art-gallery-item:hover .art-gallery-overlay { opacity: 1; }
.art-gallery-overlay svg {
    width: 36px;
    height: 36px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(8px);
}
.lightbox-backdrop.active { opacity: 1; pointer-events: all; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img-wrap img {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    transition: opacity 0.25s ease;
    margin: 0;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 9002;
    box-shadow: none;
    padding: 0;
    transform: none;
}
.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 9002;
    box-shadow: none;
    padding: 0;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-counter {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.1em;
    z-index: 9002;
}

/* ── Article Nav ──────────────────────────────────────────── */
.art-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    gap: 1rem;
}

.art-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--bg-surface);
}
.art-nav-btn:hover {
    border-color: var(--primary);
    background: rgba(248,178,54,0.08);
    color: #fff;
    text-shadow: none;
    transform: none;
}
.art-nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.art-nav-all {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.art-nav-all:hover { color: var(--primary); text-shadow: none; }

@media (max-width: 640px) {
    .art-gallery-grid { grid-template-columns: 1fr 1fr; }
    .art-hero { padding: 6rem 1.5rem 3rem; background-attachment: scroll; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .art-nav { flex-wrap: wrap; justify-content: center; }
}
