/* =============================================================================
 * WeServe — Public website styles (Phase F)
 * The full public archive shell + pages, in the Ashaeiynn 2.0 palette. Mobile-
 * first, WCAG 2.1 AA (visible focus, ≥44px targets, reduced-motion aware),
 * self-contained (no admin.css dependency). Includes the Module 13 contact-form
 * classes so that page renders unchanged inside the unified shell.
 * ========================================================================== */

:root {
    --charcoal: #27282C; --gold: #FBBC04; --bronze: #9A7A12; --maroon: #5C1A11;
    --champagne: #C1A78C; --taupe: #6E6A63; --cream: #FAF7F1; --sand-050: #F4EFE6;
    --sand-100: #EDE5D6; --white: #FFFFFF; --border-warm: #E4DCCF; --green: #2F7D5B;
    --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;
    --shadow-card: 0 6px 22px rgba(39,40,44,.07);
    --maxw: 1160px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
img, picture { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pub-body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--charcoal); background: var(--cream);
    min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--white); padding: .6rem 1rem; z-index: 200; border-radius: 0 0 var(--radius-md) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* --- header / nav --------------------------------------------------------- */
.pub-header { background: var(--white); border-bottom: 1px solid var(--border-warm); position: sticky; top: 0; z-index: 100; }
.pub-header-inner { max-width: var(--maxw); margin: 0 auto; padding: .8rem 20px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pub-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.pub-logo, .pub-logo img { width: 34px; height: 34px; border-radius: 8px; }
.pub-wordmark { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
.pub-nav-toggle { display: none; background: none; border: none; color: var(--charcoal); cursor: pointer; padding: .4rem; min-width: 44px; min-height: 44px; }
.pub-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.pub-nav a { text-decoration: none; padding: .5rem .7rem; border-radius: var(--radius-pill); font-weight: 500; color: var(--charcoal); display: inline-block; min-height: 40px; line-height: 28px; }
.pub-nav a:hover { background: var(--sand-050); }
.pub-nav a.is-active { color: var(--bronze); font-weight: 600; }
.pub-nav-search form { display: flex; align-items: center; gap: .25rem; margin-left: .4rem; }
.pub-nav-search input { border: 1px solid var(--border-warm); border-radius: var(--radius-pill); padding: .45rem .8rem; font: inherit; min-height: 40px; background: var(--sand-050); width: 160px; }
.pub-nav-search button { border: none; background: none; cursor: pointer; color: var(--taupe); padding: .4rem; min-width: 40px; min-height: 40px; }

/* --- main / footer -------------------------------------------------------- */
.pub-main { flex: 1 1 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; }
.pub-footer { background: var(--charcoal); color: var(--sand-100); margin-top: 40px; }
.pub-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 16px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 24px; }
.pub-footer-title { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 1.15rem; margin: 0 0 .3rem; color: var(--white); }
.pub-footer-sub { color: var(--champagne); font-size: .88rem; margin: 0; }
.pub-footer-links { display: flex; flex-direction: column; gap: .35rem; }
.pub-footer-links a { color: var(--sand-100); text-decoration: none; font-size: .9rem; }
.pub-footer-links a:hover { color: var(--gold); }
.pub-footer-contact { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--champagne); }
.pub-footer-contact a { color: var(--sand-100); }
.pub-social { display: flex; gap: .8rem; margin-top: .3rem; flex-wrap: wrap; }
.pub-social a { color: var(--gold); text-decoration: none; }
.pub-copyright { text-align: center; color: var(--champagne); font-size: .8rem; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); margin: 0; }

/* --- hero / sections ------------------------------------------------------ */
.hero { background: linear-gradient(160deg, var(--sand-100), var(--cream)); border-radius: var(--radius-lg); padding: 56px 32px; margin-bottom: 40px; }
.hero-inner { max-width: 720px; }
.hero-title { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 .6rem; color: var(--charcoal); }
.hero-lede { font-size: 1.1rem; color: var(--taupe); margin: 0 0 1.6rem; }
.section { margin: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 20px; border-bottom: 1px solid var(--border-warm); padding-bottom: 8px; }
.section-head h2 { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 1.5rem; margin: 0; }
.section-more { text-decoration: none; color: var(--bronze); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .4rem; }
.page-lede { color: var(--taupe); margin: 0; max-width: 70ch; }
.back-link { margin-top: 24px; } .back-link a { color: var(--bronze); text-decoration: none; }

/* --- cards / grid --------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(39,40,44,.12); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-media, .card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand-100); }
.card-body { padding: 16px; }
.card-title { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 1.15rem; margin: .4rem 0 .3rem; line-height: 1.3; }
.card-meta { color: var(--taupe); font-size: .84rem; margin: 0 0 .5rem; }
.card-excerpt { color: var(--charcoal); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.img-ph { width: 100%; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--sand-100), var(--sand-050)); display: block; }
.detail-hero-media .img-ph, .year-hero-media.img-ph { aspect-ratio: 16 / 7; }

/* --- pills / pager / crumbs ---------------------------------------------- */
.pill { display: inline-block; padding: .18rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--gold) 16%, var(--white)); color: var(--bronze); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); text-decoration: none; }
.pill-tag { background: var(--sand-100); color: var(--charcoal); border-color: var(--border-warm); }
.pill-kind { background: var(--sand-100); color: var(--taupe); border-color: var(--border-warm); }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 32px 0 8px; }
.pager-btn { padding: .5rem 1rem; border: 1px solid var(--border-warm); border-radius: var(--radius-pill); background: var(--white); color: var(--charcoal); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pager-btn.is-disabled { opacity: .45; }
.pager-status { color: var(--taupe); font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 20px; font-size: .84rem; color: var(--taupe); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: var(--champagne); }
.crumbs a { color: var(--bronze); text-decoration: none; }

/* --- timeline ------------------------------------------------------------- */
.tl-year { margin-bottom: 40px; }
.tl-year-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 18px; }
.tl-year-title { font-family: 'Cinzel', Georgia, serif; font-size: 1.6rem; margin: 0; }
.tl-year-title a { text-decoration: none; }
.tl-year-more { color: var(--bronze); text-decoration: none; font-weight: 600; font-size: .88rem; }

/* --- detail --------------------------------------------------------------- */
.detail { max-width: 820px; margin: 0 auto; }
.detail-head { margin-bottom: 20px; }
.detail-title { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0 .4rem; line-height: 1.2; }
.detail-meta { color: var(--taupe); font-size: .95rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.detail-hero { margin: 0 0 24px; }
.detail-hero-media, .detail-hero-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand-100); }
.detail-lede { font-size: 1.15rem; color: var(--charcoal); font-weight: 500; margin: 0 0 20px; }
.detail-body { font-size: 1.05rem; line-height: 1.75; }
.detail-body :is(h2,h3) { font-family: 'Cinzel', Georgia, serif; margin: 1.6rem 0 .6rem; }
.detail-body img { border-radius: var(--radius-md); margin: 1rem 0; height: auto; }
.detail-body a { color: var(--bronze); }
.detail-sub { font-family: 'Cinzel', Georgia, serif; font-size: 1.3rem; margin: 32px 0 14px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 24px; }

/* --- gallery grid --------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { margin: 0; }
.gallery-media, .gallery-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-md); background: var(--sand-100); }
.gallery-item figcaption { font-size: .78rem; color: var(--taupe); margin-top: 4px; }
.year-hero { margin-bottom: 28px; }
.year-hero-media, .year-hero-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 7; object-fit: cover; background: var(--sand-100); margin-bottom: 16px; }
.year-summary { color: var(--taupe); max-width: 70ch; }

/* --- impact count-up ------------------------------------------------------ */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.impact-grid-lg { grid-template-columns: repeat(3, 1fr); }
.impact-stat { background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-lg); padding: 28px 18px; text-align: center; box-shadow: var(--shadow-card); }
.impact-value { display: block; font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--bronze); }
.impact-label { display: block; color: var(--taupe); font-size: .92rem; margin-top: .4rem; }

/* --- empty / error / buttons --------------------------------------------- */
.empty { text-align: center; padding: 48px 20px; color: var(--taupe); }
.empty-sub { font-size: .9rem; } .empty a { color: var(--bronze); }
.errpage { text-align: center; padding: 60px 20px; }
.err-code { font-family: 'Cinzel', Georgia, serif; font-size: 4rem; color: var(--champagne); margin: 0; }
.err-lede { color: var(--taupe); max-width: 46ch; margin: 0 auto 24px; }
.err-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: 0 1.4rem; min-height: 46px; border-radius: var(--radius-pill); font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(251,188,4,.35); }
.btn-ghost { background: var(--white); color: var(--charcoal); border-color: var(--border-warm); }
.btn-ghost:hover { border-color: var(--gold); }
.search-form { display: flex; gap: .5rem; margin-top: 12px; max-width: 520px; }
.search-form input { flex: 1; border: 1px solid var(--border-warm); border-radius: var(--radius-pill); padding: .6rem 1rem; font: inherit; min-height: 46px; background: var(--white); }
.search-count { color: var(--taupe); margin: 0 0 16px; }

/* --- Module 13 contact form (unchanged classes, inside the unified shell) -- */
.pub-contact { max-width: 680px; margin: 0 auto; }
.pub-title { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 1.9rem; margin: 0 0 .5rem; }
.pub-lede { color: var(--taupe); margin: 0 0 1.5rem; max-width: 60ch; }
.pub-form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); }
.pub-field { display: flex; flex-direction: column; gap: .35rem; }
.pub-field label { font-weight: 600; font-size: .92rem; }
.req { color: var(--maroon); } .opt { color: var(--taupe); font-weight: 400; font-size: .82rem; }
.pub-field input, .pub-field textarea { font: inherit; color: var(--charcoal); background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-md); padding: .7rem .8rem; width: 100%; min-height: 46px; }
.pub-field textarea { min-height: 140px; resize: vertical; }
.pub-field input[aria-invalid="true"], .pub-field textarea[aria-invalid="true"] { border-color: var(--maroon); }
.pub-err { color: var(--maroon); font-size: .84rem; margin: 0; }
.pub-alert { padding: .8rem 1rem; border-radius: var(--radius-md); background: color-mix(in srgb, var(--maroon) 8%, var(--white)); border: 1px solid color-mix(in srgb, var(--maroon) 30%, var(--border-warm)); color: var(--maroon); margin: 0 0 1.2rem; }
.pub-actions { margin-top: .3rem; }
.pub-btn { font: inherit; font-weight: 600; cursor: pointer; background: var(--gold); color: var(--charcoal); border: 1px solid transparent; border-radius: var(--radius-pill); padding: 0 1.6rem; min-height: 48px; min-width: 160px; }
.pub-btn:hover { box-shadow: 0 8px 20px rgba(251,188,4,.35); } .pub-btn:disabled { opacity: .6; cursor: default; }
.pub-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pub-confirm { text-align: center; background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-lg); padding: 40px 28px; box-shadow: var(--shadow-card); }
.pub-confirm h2 { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 1.3rem; margin: .6rem 0 .4rem; }
.pub-confirm p { color: var(--taupe); margin: .3rem 0; }
.pub-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.pub-details li { display: flex; gap: .6rem; align-items: baseline; background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-md); padding: .8rem 1rem; }
.pub-dt { font-weight: 600; min-width: 84px; color: var(--bronze); }
.pub-link { color: var(--bronze); }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-grid, .impact-grid-lg { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .pub-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-footer-inner { grid-template-columns: 1fr; }
    .pub-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .pub-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 300px); background: var(--white); box-shadow: -8px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .25s ease; padding: 72px 20px 20px; z-index: 150; overflow-y: auto; }
    .pub-nav.is-open { transform: translateX(0); }
    .pub-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
    .pub-nav-search { margin-top: .6rem; } .pub-nav-search input { width: 100%; }
    .hero { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .card, .pub-nav { transition: none; }
}

/* =============================================================================
   Journey Timeline + Event detail enhancements (vertical timeline, masonry
   gallery, lightbox, share bar, prev/next). Tokens from :root above.
   ========================================================================== */

/* ---- Vertical timeline (center spine, alternating cards) ------------------ */
.tl { position: relative; max-width: 980px; margin: 8px auto 4px; padding: 6px 0 20px; }
.tl-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
    background: linear-gradient(var(--gold), var(--champagne) 60%, var(--border-warm)); border-radius: 2px; }

.tl-yearmark { position: relative; z-index: 2; text-align: center; margin: 30px 0 14px; }
.tl-yearmark a { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none;
    background: var(--charcoal); color: var(--cream); padding: 7px 18px; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-card); }
.tl-yearmark-num { font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .04em; }
.tl-yearmark-title { font-size: .82rem; color: var(--gold); font-weight: 600; }

.tl-node { position: relative; width: 50%; box-sizing: border-box; padding: 12px 44px; }
.tl-left  { left: 0; }
.tl-right { left: 50%; }
.tl-dot { position: absolute; top: 30px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--gold); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--champagne); z-index: 2; }
.tl-left  .tl-dot { right: -7.5px; }
.tl-right .tl-dot { left: -7.5px; }

.tl-card { background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.tl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(39,40,44,.14); }
.tl-card-link { display: block; text-decoration: none; color: inherit; }
.tl-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-100); }
.tl-card-media img, .tl-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-card-body { padding: 15px 18px 18px; }
.tl-datecat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-date { display: inline-flex; align-items: baseline; gap: 6px; }
.tl-d { font-family: 'Cinzel', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.tl-my { display: inline-flex; flex-direction: column; line-height: 1.15; }
.tl-mo { font-size: .68rem; letter-spacing: .14em; font-weight: 700; color: var(--bronze); }
.tl-yr { font-size: .68rem; color: var(--taupe); }
.tl-pill { margin-left: auto; }
.tl-title { font-family: 'Cinzel', Georgia, serif; font-size: 1.14rem; margin: .1rem 0 .35rem; color: var(--charcoal); }
.tl-sum { color: var(--taupe); font-size: .92rem; line-height: 1.5; margin: 0 0 .7rem; }
.tl-more { color: var(--bronze); font-weight: 600; font-size: .85rem; }
.tl-card:hover .tl-more { color: var(--maroon); }

/* Mobile: single left-aligned column */
@media (max-width: 720px) {
    .tl-spine { left: 18px; }
    .tl-yearmark { text-align: left; padding-left: 2px; }
    .tl-node, .tl-left, .tl-right { width: 100%; left: 0; padding: 10px 0 10px 46px; }
    .tl-left .tl-dot, .tl-right .tl-dot { left: 11px; right: auto; }
}

/* ---- Event detail: timeline position + masonry gallery ------------------- */
.detail-place { color: var(--taupe); font-size: .9rem; margin: .3rem 0 0; }
.detail-place a { color: var(--bronze); text-decoration: none; font-weight: 600; }
.detail-sub { font-family: 'Cinzel', Georgia, serif; font-size: 1.3rem; margin: 8px 0 16px; }

.masonry { columns: 4 220px; column-gap: 14px; }
.ph-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; cursor: zoom-in;
    background: var(--sand-100); border-radius: var(--radius-md); overflow: hidden; position: relative;
    break-inside: avoid; box-shadow: var(--shadow-card); }
.ph-item img, .ph-media { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.ph-item:hover img { transform: scale(1.04); }
.ph-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .78rem;
    color: #fff; text-align: left; background: linear-gradient(transparent, rgba(20,16,14,.72)); }

/* ---- Share bar ----------------------------------------------------------- */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 4px;
    padding-top: 18px; border-top: 1px solid var(--border-warm); }
.share-label { font-weight: 600; color: var(--charcoal); margin-right: 4px; }
.share-btn { font: inherit; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer;
    border: 1px solid var(--border-warm); background: var(--white); color: var(--charcoal);
    padding: 7px 14px; border-radius: var(--radius-pill); transition: background .15s, color .15s, border-color .15s; }
.share-btn:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.share-btn.is-copied { background: var(--green); color: #fff; border-color: var(--green); }

/* ---- Prev / Next timeline nav -------------------------------------------- */
.ev-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; margin: 30px 0; }
.ev-nav-item { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit;
    background: var(--white); border: 1px solid var(--border-warm); border-radius: var(--radius-lg);
    padding: 14px 18px; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.ev-nav-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(39,40,44,.12); }
.ev-nav-item.is-empty { visibility: hidden; box-shadow: none; border: 0; background: none; }
.ev-nav-next { text-align: right; align-items: flex-end; }
.ev-nav-dir { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--bronze); }
.ev-nav-t { font-family: 'Cinzel', Georgia, serif; color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ev-nav-all { display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
    font-weight: 600; color: var(--cream); background: var(--maroon); padding: 0 20px; border-radius: var(--radius-pill); white-space: nowrap; }
@media (max-width: 640px) { .ev-nav { grid-template-columns: 1fr 1fr; } .ev-nav-all { grid-column: 1 / -1; order: 3; padding: 12px; } }

/* ---- Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    background: rgba(18,14,12,.94); padding: 4vh 4vw; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; object-fit: contain;
    border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-cap { color: #f3ece2; font-size: .9rem; text-align: center; max-width: 70ch; }
.lb-close, .lb-prev, .lb-next, .lb-full { position: absolute; background: rgba(255,255,255,.12); color: #fff;
    border: 0; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover, .lb-full:hover { background: var(--gold); color: var(--charcoal); }
.lb-close { top: 3vh; right: 3vw; }
.lb-full { top: 3vh; left: 3vw; }
.lb-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 2vw; top: 50%; transform: translateY(-50%); }
.lb-close:focus-visible, .lb-prev:focus-visible, .lb-next:focus-visible, .lb-full:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .tl-card, .ev-nav-item, .ph-item img, .share-btn { transition: none !important; }
}
