/**
 * @license
 * Copyright (c) 2026 Elson Lleshi
 * All Rights Reserved. Unauthorized use prohibited.
 * SPDX-License-Identifier: UNLICENSED
 *
 * Light theme — "Our Work" gallery cards + lightbox.
 * Shared by index.html (recent work strip) and our-work.html.
 */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 26px;
}
.work-loading { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 30px 0; }
.work-loading a { color: var(--gold-dark); font-weight: 600; }

.work-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(200,162,76,0.5); }
.work-card-img { position: relative; aspect-ratio: 4 / 3; background: #dfe5ec; overflow: hidden; }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.work-card:hover .work-card-img img { transform: scale(1.06); }
.work-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #aab4c0; font-size: 2.4rem; }
.work-card-cat { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.work-card-count { position: absolute; bottom: 12px; right: 12px; background: rgba(14,29,51,0.78); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 20px; }
.work-card-body { padding: 18px 20px; }
.work-card-body h3 { font-size: 1.12rem; color: var(--heading); margin: 0 0 6px; }
.work-card-body p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.work-card-body p i { color: var(--gold); margin-right: 5px; }

/* ── Filter chips ─────────────────────────────────────────────────────────── */
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.work-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.work-chip:hover { border-color: var(--gold); }
.work-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.work-empty { text-align: center; color: var(--muted); padding: 50px 0; grid-column: 1 / -1; }
.work-empty a { color: var(--gold-dark); font-weight: 600; }

/* ── Lightbox (stays dark for photo focus) ───────────────────────────────── */
.lb-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 16, 28, 0.95);
    z-index: 1000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 24px;
}
.lb-overlay[hidden] { display: none; }
.lb-stage { position: relative; max-width: 1000px; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 74vh; border-radius: 8px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lb-close { position: absolute; top: -48px; right: 0; background: transparent; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
.lb-close:hover { color: var(--gold); }
.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lb-caption { margin-top: 18px; text-align: center; color: #fff; max-width: 760px; }
.lb-caption h3 { color: var(--gold-light); margin: 0 0 4px; font-size: 1.2rem; }
.lb-caption .lb-meta { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 6px; }
.lb-caption p { color: rgba(255,255,255,0.88); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.lb-counter { margin-top: 10px; color: rgba(255,255,255,0.55); font-size: 0.82rem; }

@media (max-width: 600px) {
    .lb-prev, .lb-next { width: 40px; height: 40px; }
    .lb-close { top: -40px; }
}
