/* ═══════════════════════════════════════════════════════════════
   KCRF Public Website Design System (Phase 2)
   Unified Tokens · Sticky Navbar · Light & Dark Mode · Hero Slider
   Masonry Gallery + Lightbox · CSS Scroll Reveal · Mobile-First
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand tokens (overridden dynamically by Super Admin Branding & Website Settings) */
    --public-coral: #ff6b00;
    --public-forest: #1b5147;
    --pub-primary: var(--public-coral);
    --pub-secondary: var(--public-forest);

    /* Surface & Ink tokens — Light Mode */
    --pub-bg: #fbfaf6;
    --pub-surface: #ffffff;
    --pub-surface-alt: #f1f4f0;
    --pub-surface-elevated: #ffffff;
    --pub-ink: #182924;
    --pub-muted: #566660;
    --pub-line: #dde3de;
    --pub-header-bg: rgba(251, 250, 246, 0.94);

    /* Legacy aliases preserved for backward compatibility */
    --public-ink: var(--pub-ink);
    --public-paper: var(--pub-bg);
    --public-mist: var(--pub-surface-alt);
    --public-muted: var(--pub-muted);
    --public-line: var(--pub-line);

    /* Typography scale */
    --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --fs-xs: 0.76rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.35rem, 2.2vw, 1.75rem);
    --fs-2xl: clamp(1.9rem, 3.8vw, 3.1rem);
    --fs-hero: clamp(2.2rem, 5.2vw, 4.4rem);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2.25rem;
    --space-7: clamp(3.25rem, 6.5vw, 5.75rem);

    /* Radius & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 10px rgba(16, 36, 30, 0.06);
    --shadow-md: 0 12px 32px -12px rgba(16, 36, 30, 0.14);
    --shadow-lg: 0 24px 56px -18px rgba(16, 36, 30, 0.22);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ─── Dark Mode Palette ─── */
[data-theme="dark"] {
    --pub-bg: #0c1412;
    --pub-surface: #131f1c;
    --pub-surface-alt: #172622;
    --pub-surface-elevated: #1b2d28;
    --pub-ink: #f1f5f3;
    --pub-muted: #a4b5ae;
    --pub-line: rgba(255, 255, 255, 0.10);
    --pub-header-bg: rgba(12, 20, 18, 0.92);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 14px 36px -10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 60px -14px rgba(0, 0, 0, 0.6);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    background: var(--pub-bg);
}
body {
    margin: 0;
    background: var(--pub-bg);
    color: var(--pub-ink);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.68;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* Skip link for keyboard accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: .75rem 1.25rem;
    background: var(--pub-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--pub-primary);
    outline-offset: 2px;
}

/* ─── Sticky Header & Navigation ─── */
.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow .25s ease;
}
.public-header.is-scrolled {
    box-shadow: var(--shadow-md);
}
.public-header-top {
    background: var(--pub-secondary);
    color: #f4f7f5;
    font-size: 0.82rem;
    padding: 0.45rem 0;
}
.header-top-inner,
.header-auth,
.header-contact,
.header-main-inner,
.header-actions-group {
    display: flex;
    align-items: center;
}
.header-top-inner { justify-content: space-between; gap: 1rem; }
.header-auth, .header-contact { gap: 1.15rem; flex-wrap: wrap; }
.auth-link, .header-contact a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    transition: color .2s ease;
}
.auth-link:hover, .header-contact a:hover { color: #ffd4b8; }

.public-header-main {
    background: var(--pub-header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pub-line);
    padding: 0.7rem 0;
}
.header-main-inner {
    position: relative;
    justify-content: space-between;
    gap: 1.5rem;
}
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--pub-ink);
    text-decoration: none;
    min-width: 0;
    flex: 0 1 auto;
}
.public-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
[data-theme="dark"] .public-logo-wrap.has-auto-pad {
    background: rgba(255, 255, 255, 0.92);
    padding: 3px 7px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}
.public-logo {
    width: auto;
    height: auto;
    max-height: 44px;
    max-width: 150px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.public-logo-dark {
    display: none;
}
[data-theme="dark"] .public-logo-wrap.has-dark-logo .public-logo-light {
    display: none;
}
[data-theme="dark"] .public-logo-wrap.has-dark-logo .public-logo-dark {
    display: block;
}
.brand-text { display: grid; min-width: 0; }
.public-brand .brand-name {
    font-family: var(--font-serif);
    font-size: 1.38rem;
    line-height: 1.12;
    font-weight: 400;
    color: var(--pub-ink);
    overflow-wrap: break-word;
}
.public-brand .brand-tag {
    color: var(--pub-muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.public-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.public-nav .nav-link {
    color: var(--pub-ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    padding: 0.45rem 0.2rem;
    transition: color .2s ease;
}
.public-nav .nav-link.active,
.public-nav .nav-link:hover {
    color: var(--pub-primary);
}
.public-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--pub-primary);
}
.public-nav .manage-link {
    color: var(--pub-primary);
    background: color-mix(in srgb, var(--pub-primary) 12%, transparent);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
}
.public-nav .manage-link:hover {
    background: var(--pub-primary);
    color: #fff;
}

.header-actions-group { gap: 0.55rem; flex-shrink: 0; }

.theme-toggle-public {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--pub-line);
    background: var(--pub-surface);
    color: var(--pub-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle-public:hover {
    border-color: var(--pub-primary);
    color: var(--pub-primary);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--pub-ink);
    border: 1px solid var(--pub-line);
    border-radius: var(--radius-sm);
    background: var(--pub-surface);
    font-size: 1.35rem;
    cursor: pointer;
}

/* ─── Typography & Buttons ─── */
.eyebrow {
    margin: 0 0 0.75rem;
    color: #f6ba95;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow-dark { color: var(--pub-primary); }

.section-title,
.page-intro h1,
.contact-band h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--pub-ink);
    margin: 0;
}
.section-title { font-size: var(--fs-2xl); line-height: 1.12; }
.section-subtitle {
    margin: 0.75rem 0 0;
    max-width: 640px;
    color: var(--pub-muted);
    font-size: 1.02rem;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    min-height: 46px;
    padding: 0.7rem 1.35rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
    background: var(--pub-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--pub-primary) 70%, transparent);
}
.button-primary:hover {
    background: color-mix(in srgb, var(--pub-primary) 86%, #000);
    color: #ffffff;
    box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--pub-primary) 80%, transparent);
}
.button-light {
    border-color: rgba(255, 255, 255, 0.78);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}
.button-light:hover {
    color: #182924;
    background: #ffffff;
    border-color: #ffffff;
}
.button-outline {
    border-color: var(--pub-line);
    color: var(--pub-ink);
    background: var(--pub-surface);
}
.button-outline:hover {
    border-color: var(--pub-primary);
    color: var(--pub-primary);
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pub-primary);
    font-weight: 700;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}
.text-link:hover {
    color: color-mix(in srgb, var(--pub-primary) 82%, var(--pub-ink));
    gap: 0.65rem;
}

/* ─── Hero (Fallback Banner + Admin-Controlled Full-Width Slider) ─── */
.hero {
    position: relative;
    min-height: min(680px, 78vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background: var(--pub-secondary);
}
.hero-image {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg,
            rgba(12, 34, 29, calc(var(--hero-overlay-alpha, 60) * 1%)),
            rgba(12, 34, 29, calc(var(--hero-overlay-alpha, 60) * 0.55%)) 58%,
            rgba(12, 34, 29, calc(var(--hero-overlay-alpha, 60) * 0.18%))),
        var(--hero-bg-image, linear-gradient(135deg, var(--pub-secondary), #0d2520));
    background-size: cover;
    background-position: center 42%;
}
.hero-pos-top .hero-image { background-position: center top; }
.hero-pos-bottom .hero-image { background-position: center bottom; }
.hero-pos-left .hero-image { background-position: left center; }
.hero-pos-right .hero-image { background-position: right center; }
.hero-inner {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}
.hero-content { max-width: 720px; }
.hero-align-center .hero-content { margin-left: auto; margin-right: auto; text-align: center; }
.hero-align-center .hero-actions { justify-content: center; }
.hero-align-center .hero-scroll { align-self: center; }
.hero h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    max-width: 680px;
    margin: 0;
    font-size: var(--fs-hero);
    line-height: 1.05;
    color: #fff;
}
.hero-copy {
    max-width: 590px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-lg);
}
.hero-actions, .heading-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.65rem;
}
.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    text-decoration: none;
}
.hero-scroll i { color: #f6ba95; }

/* ─── Modern Inset Rounded Hero Slider ─── */
.hero-showcase {
    padding: 18px clamp(16px, 2vw, 24px) 18px;
    background: var(--pub-bg);
}
.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #0f1d1a;
    color: #ffffff;
    outline: none;
    box-shadow: 0 24px 56px -18px rgba(15, 23, 42, 0.30), 0 8px 22px -10px rgba(15, 23, 42, 0.16);
}
[data-theme="dark"] .hero-slider {
    box-shadow: 0 26px 60px -16px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-slider:focus-visible { outline: 3px solid var(--pub-primary); outline-offset: 3px; }
.hero-slider-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: clamp(520px, 78vh, 760px);
    min-height: 520px;
    max-height: 760px;
    overflow: hidden;
}
.hero-slider-track {
    display: grid;
    grid-template-columns: 100%;
    width: 100%;
    height: 100%;
    position: relative;
}
.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity .85s cubic-bezier(0.22, 1, 0.36, 1), visibility .85s ease, transform .75s var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.hero-transition-slide .hero-slide { transform: translateX(100%); opacity: 1; }
.hero-transition-slide .hero-slide.is-active { transform: translateX(0); }
.hero-transition-slide .hero-slide.is-prev { transform: translateX(-100%); visibility: visible; }

/* ─── Full-Bleed Crisp Photo + Subtle Ken Burns Zoom ─── */
@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}
@keyframes heroCaptionRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f1d1a;
}
.hero-slide-picture {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none !important;
    transform: scale(1);
    transform-origin: center center;
}
.hero-slide.is-active .hero-slide-img {
    animation: heroKenBurns var(--hero-duration, 6s) linear forwards;
    will-change: transform;
}
.hero-slide-video,
.hero-slide-fallback {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-slide-video { object-fit: cover; }
.hero-slide-fallback {
    background: radial-gradient(circle at 80% 25%, color-mix(in srgb, var(--pub-primary) 30%, transparent), transparent 55%),
                linear-gradient(135deg, var(--pub-secondary) 0%, #0c221d 70%, #142c26 100%);
}

/* Soft bottom-third gradient ONLY (transparent -> ~55% black at bottom edge); zero full-image darkening */
.hero-slide-scrim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.22) 50%,
        rgba(0, 0, 0, 0.56) 100%
    );
}
.hero-slide-scrim--minimal {
    height: 20%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.36) 100%);
}

/* ─── Floating Frosted-Glass Caption Card (Top-Left Desktop, WCAG AA) ─── */
.hero-slide-inner {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 28px 34px 36px;
}
.hero-caption-card {
    pointer-events: auto;
    width: 100%;
    max-width: 520px;
    padding: 24px 28px;
    border-radius: 20px;
    background-color: rgba(15, 23, 42, 0.34);
    background-image: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(12, 20, 18, 0.56) 100%
    );
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 42px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
}
.hero-slide.hero-align-center .hero-caption-card { text-align: center; }
.hero-slide.hero-align-center .hero-actions { justify-content: center; }
.hero-slide.hero-align-right .hero-caption-card { text-align: right; }
.hero-slide.hero-align-right .hero-actions { justify-content: flex-end; }

/* Staggered Slide-In Entrance (80ms per child element) */
.hero-stagger { opacity: 0; transform: translateY(16px); }
.hero-slide.is-active .hero-stagger {
    animation: heroCaptionRise .48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-slide.is-active .hero-stagger-1 { animation-delay: 0ms; }
.hero-slide.is-active .hero-stagger-2 { animation-delay: 80ms; }
.hero-slide.is-active .hero-stagger-3 { animation-delay: 160ms; }
.hero-slide.is-active .hero-stagger-4 { animation-delay: 240ms; }

.hero-caption-card .eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff9c4f;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
}
.hero-slide-heading {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.12;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.hero-caption-card .hero-copy {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}
.hero-caption-card .hero-actions {
    margin-top: 1.1rem;
    gap: 0.7rem;
}
.hero-caption-card .hero-actions .button {
    min-height: 42px;
    padding: 0.55rem 1.35rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
}
.hero-btn-primary {
    box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--pub-primary) 65%, rgba(0, 0, 0, 0.35));
}
.button-hero-glass {
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.button-hero-glass:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #111f1b;
}

/* ─── Controls (Hover-Reveal Glass Arrows, Bottom-Right Pill Dots + Glass Counter, Slim Progress Line) ─── */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(15, 23, 42, 0.36);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity .25s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }
.hero-nav-btn:hover {
    background: var(--pub-primary);
    border-color: var(--pub-primary);
    transform: translateY(-50%) scale(1.06);
}
@media (hover: hover) and (min-width: 768px) {
    .hero-nav-btn {
        opacity: 0;
        pointer-events: none;
    }
    .hero-slider:hover .hero-nav-btn,
    .hero-slider:focus-within .hero-nav-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

.hero-slider-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    pointer-events: none;
}
.hero-controls-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    pointer-events: auto;
}
.hero-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(15, 23, 42, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width .28s var(--ease), background-color .25s ease, border-color .25s ease;
}
.hero-dot.is-active {
    width: 28px;
    background: var(--pub-primary);
    border-color: var(--pub-primary);
}
.hero-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.48rem 0.85rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.20);
}
.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--pub-primary);
    transform-origin: left center;
}

/* ─── Sections & Cards ─── */
.section { padding: var(--space-7) 0; }
.section-tint { background: var(--pub-surface-alt); }
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: var(--space-6);
}
.section-heading > .text-link, .section-heading > .heading-links { flex: 0 0 auto; }

.welcome-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 6vw, 5.5rem);
    align-items: end;
}
.welcome-copy { max-width: 540px; color: var(--pub-muted); font-size: 1.06rem; }
.welcome-copy p { margin: 0 0 1.25rem; }

.content-grid { display: grid; gap: 1.4rem; }
.program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.update-grid, .story-grid, .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.program-item,
.update-item,
.story-card,
.video-item,
.listing-item,
.contact-card,
.about-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s ease;
}
.program-item:hover,
.update-item:hover,
.story-card:hover,
.video-item:hover,
.listing-item:hover,
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--pub-primary) 40%, var(--pub-line));
}

.program-item { display: grid; grid-template-columns: 155px 1fr; min-height: 170px; }
.program-image, .program-mark { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.program-mark {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--pub-secondary) 14%, var(--pub-surface-alt));
    color: var(--pub-primary);
    font-size: 2rem;
}
.program-item > div:last-child { padding: 1.45rem; }

.program-item h3,
.update-item h3,
.story-card h3,
.video-item h3,
.video-item h2,
.listing-item h2,
.document-item h2 {
    margin: 0 0 0.55rem;
    color: var(--pub-ink);
    font-family: var(--font-serif);
    font-size: 1.42rem;
    font-weight: 400;
    line-height: 1.22;
}
.program-item p,
.update-item p,
.story-card p,
.video-item p,
.listing-item p,
.document-item p {
    margin: 0;
    color: var(--pub-muted);
}

.update-item {
    padding: 1.45rem;
    border-top: 3px solid var(--pub-primary);
}
.update-item > img {
    width: calc(100% + 2.9rem);
    max-width: none;
    height: 195px;
    object-fit: cover;
    margin: -1.45rem -1.45rem 1.2rem;
}
.item-type {
    margin: 0 0 0.5rem !important;
    color: var(--pub-primary) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.update-item time, .listing-item time {
    display: block;
    margin-top: 1rem;
    color: var(--pub-muted);
    font-size: 0.8rem;
}

.story-card > picture { display: block; width: 100%; }
.story-card > picture > img,
.story-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-card > div { padding: 1.35rem; }

/* Videos with poster images */
.video-item { display: flex; flex-direction: column; }
.video-media-wrap { position: relative; background: #0d1f1b; overflow: hidden; }
.video-item video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0d1f1b;
}
.video-external {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--pub-secondary), #0c221d);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
}
.video-external::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 22, 0.45);
    transition: background-color .2s ease;
}
.video-external:hover::before { background: rgba(10, 26, 22, 0.25); }
.video-external > * { position: relative; z-index: 1; }
.video-play-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pub-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: transform .22s ease;
}
.video-external:hover .video-play-circle { transform: scale(1.1); }
.video-item-body { padding: 1.35rem; }

/* Page Intro & Listing */
.page-intro {
    padding: clamp(3rem, 5.5vw, 4.75rem) 0;
    background: linear-gradient(135deg, var(--pub-surface-alt) 0%, color-mix(in srgb, var(--pub-primary) 7%, var(--pub-surface-alt)) 100%);
    border-bottom: 1px solid var(--pub-line);
}
.page-intro h1 { max-width: 820px; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.07; }
.page-intro p:not(.eyebrow) { max-width: 660px; margin: 1rem 0 0; color: var(--pub-muted); font-size: 1.05rem; }
.page-heading { max-width: 760px; margin-bottom: var(--space-6); }
.page-heading > p:not(.eyebrow) { color: var(--pub-muted); margin-top: 0.75rem; font-size: 1.04rem; }

.about-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 2rem;
    align-items: start;
}
.about-copy > p:not(.eyebrow) { margin: 1.2rem 0; color: var(--pub-muted); font-size: 1.06rem; }
.about-card { padding: 1.65rem; }
.about-card h3 { font-family: var(--font-serif); font-size: 1.35rem; margin: 0 0 0.75rem; color: var(--pub-ink); }

.listing-item > img { display: block; width: 100%; max-height: 320px; aspect-ratio: 4 / 3; object-fit: cover; }
.listing-media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pub-surface-alt);
}
.listing-media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    transition: transform .42s var(--ease);
}
.listing-item:hover .listing-media-frame img { transform: scale(1.03); }
.listing-item > div:not(.listing-media-frame) { padding: 1.4rem; }

/* Scoped container & unified 3-column 4:3 reference photo grid */
.photo-grid-container {
    max-width: var(--photo-grid-max-width, 1240px);
    margin-left: auto;
    margin-right: auto;
}
.photo-aligned-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.photo-aligned-grid .listing-item {
    border-radius: 1rem;
}

/* ─── Organized Public Gallery, Album Cover Cards & Lightbox ─── */
.gallery-page-section { padding-top: clamp(2rem, 4vw, 3.25rem); }

.gallery-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 2.25rem;
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.gallery-category-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.gallery-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--pub-line);
    background: var(--pub-surface-alt);
    color: var(--pub-ink);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.gallery-chip:hover {
    border-color: var(--pub-primary);
    color: var(--pub-primary);
}
.gallery-chip.is-active {
    background: var(--pub-primary);
    border-color: var(--pub-primary);
    color: #ffffff;
}
.gallery-filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.gallery-select {
    min-height: 38px;
    padding: 0.38rem 2rem 0.38rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--pub-line);
    background: var(--pub-surface-alt);
    color: var(--pub-ink);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}
.gallery-clear-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--pub-primary);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
}
.gallery-clear-link:hover { text-decoration: underline; }

.gallery-section-block { margin-bottom: 3rem; }
.gallery-section-block:last-child { margin-bottom: 0; }
.gallery-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.35rem;
}
.gallery-block-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 400;
    margin: 0;
    color: var(--pub-ink);
}
.gallery-block-sub {
    margin: 0.3rem 0 0;
    color: var(--pub-muted);
    font-size: 0.94rem;
}
.gallery-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--pub-primary) 12%, var(--pub-surface-alt));
    color: var(--pub-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Album Cover Cards (exact 3-col 4:3 reference card rhythm) */
.album-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.album-cover-card {
    display: flex;
    flex-direction: column;
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s ease;
}
.album-cover-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--pub-primary) 45%, var(--pub-line));
}
.album-cover-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--pub-surface-alt);
    overflow: hidden;
}
.album-cover-media picture,
.album-cover-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .42s var(--ease);
}
.album-cover-card:hover .album-cover-media img { transform: scale(1.03); }
.album-cover-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pub-secondary) 22%, var(--pub-surface-alt)), var(--pub-surface-alt));
    color: var(--pub-muted);
    font-size: 2.4rem;
}
.album-cover-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    pointer-events: none;
}
.album-badge-cat,
.album-header-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.72rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 28, 24, 0.78);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    text-decoration: none;
}
.album-header-cat { background: color-mix(in srgb, var(--pub-primary) 16%, var(--pub-surface)); color: var(--pub-primary); border: 1px solid color-mix(in srgb, var(--pub-primary) 30%, transparent); }
.album-badge-members,
.gallery-pill-members {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.72rem;
    border-radius: var(--radius-pill);
    background: rgba(217, 119, 6, 0.92);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
}
.album-cover-count {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.32rem 0.78rem;
    border-radius: var(--radius-pill);
    background: rgba(10, 22, 19, 0.78);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.album-cover-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem 1.35rem;
}
.album-cover-body h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-serif);
    font-size: 1.38rem;
    font-weight: 400;
    line-height: 1.22;
    color: var(--pub-ink);
}
.album-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    color: var(--pub-muted);
    font-size: 0.82rem;
    margin-bottom: 0.65rem;
}
.album-cover-desc {
    margin: 0 0 0.85rem;
    color: var(--pub-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.album-cover-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pub-primary);
    font-size: 0.88rem;
    font-weight: 700;
}
.album-cover-card:hover .album-cover-cta { gap: 0.65rem; }

/* Sticky Album Bar & Preview Banner */
.album-preview-banner {
    background: var(--pub-primary);
    color: #ffffff;
    padding: 0.6rem 0;
    font-size: 0.88rem;
}
.album-preview-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.album-preview-edit-link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}
.album-preview-edit-link:hover { background: #ffffff; color: #182924; }

.album-sticky-bar {
    position: sticky;
    top: 66px;
    z-index: 1015;
    background: var(--pub-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pub-line);
    padding: 0.6rem 0;
}
.album-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.album-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pub-primary);
    text-decoration: none;
    flex-shrink: 0;
}
.album-back-link:hover { text-decoration: underline; }
.album-sticky-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--pub-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.album-sticky-count {
    font-size: 0.8rem;
    color: var(--pub-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.album-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.album-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.35rem;
    margin-top: 0.9rem;
    color: var(--pub-muted);
    font-size: 0.92rem;
    font-weight: 500;
}
.album-header-meta i { color: var(--pub-primary); margin-right: 0.2rem; }
.album-header-desc {
    max-width: 740px;
    margin-top: 1rem !important;
}

/* Reference-Style 3-Column 4:3 Photo Grid (3 desktop · 2 tablet · 1 phone) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}
.home-featured-strip { margin-bottom: 0.5rem; }
.home-featured-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.home-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pub-primary);
}
.home-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--pub-primary) 42%, var(--pub-line));
}
.gallery-lightbox-trigger {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--pub-surface-alt);
    cursor: zoom-in;
    overflow: hidden;
    text-align: left;
}
.gallery-img-frame {
    aspect-ratio: 4 / 3;
    background: linear-gradient(110deg, var(--pub-surface-alt) 25%, color-mix(in srgb, var(--pub-line) 55%, var(--pub-surface-alt)) 50%, var(--pub-surface-alt) 75%);
}
.gallery-card.is-captionless .gallery-img-frame,
.gallery-card.is-clean-card .gallery-img-frame {
    flex: 1 1 auto;
}
.gallery-card-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--pub-muted);
    font-size: 0.86rem;
}
.gallery-card-missing i { font-size: 2rem; opacity: 0.65; }
.gallery-video-frame { aspect-ratio: 16 / 9; cursor: pointer; }
.gallery-img-frame picture,
.gallery-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .38s var(--ease), opacity .3s ease;
}
.gallery-card:hover .gallery-card-img { transform: scale(1.03); }
.gallery-hover-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 0.95rem 0.75rem;
    background: linear-gradient(to top, rgba(9, 20, 17, 0.84) 0%, rgba(9, 20, 17, 0.42) 60%, transparent 100%);
    color: #ffffff;
    display: grid;
    gap: 0.12rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.gallery-hover-caption strong { font-size: 0.88rem; font-weight: 700; line-height: 1.25; }
.gallery-hover-caption small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.84); line-height: 1.3; }
.gallery-card:hover .gallery-hover-caption,
.gallery-lightbox-trigger:focus-visible .gallery-hover-caption { opacity: 1; }
.gallery-card-pill {
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    max-width: calc(100% - 1.3rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(12, 24, 21, 0.74);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.gallery-zoom-badge {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s ease;
    backdrop-filter: blur(6px);
}
.gallery-video-play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pub-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
    transition: transform .22s ease;
}
.gallery-card:hover .gallery-video-play-badge { transform: translate(-50%, -50%) scale(1.08); }
.gallery-card:hover .gallery-zoom-badge,
.gallery-lightbox-trigger:focus-visible .gallery-zoom-badge { opacity: 1; }

.gallery-card-caption {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.95rem;
    color: var(--pub-ink);
}
.gallery-card-caption strong {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-card-caption span {
    color: var(--pub-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.gallery-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

/* Lightbox Overlay (Photos with Zoom + Video Playback) */
.pub-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2050;
    background: rgba(7, 13, 12, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.75rem 1.25rem 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.pub-lightbox.is-open { opacity: 1; visibility: visible; }
.pub-lightbox-dialog {
    position: relative;
    max-width: min(1200px, 94vw);
    max-height: calc(100dvh - 5rem);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.pub-lightbox-stage {
    position: relative;
    width: 100%;
    max-height: calc(100dvh - 11rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pub-lightbox.is-zoomed .pub-lightbox-stage {
    overflow: auto;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: zoom-out;
}
.pub-lightbox-img {
    max-width: 100%;
    max-height: calc(100dvh - 11rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    cursor: zoom-in;
    transition: transform .22s ease;
}
.pub-lightbox.is-zoomed .pub-lightbox-img {
    max-width: none;
    max-height: none;
    width: min(2200px, 185vw);
    cursor: zoom-out;
}
.pub-lightbox-video-wrap {
    width: min(960px, 92vw);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}
.pub-lightbox-video-wrap video,
.pub-lightbox-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}
.pub-lightbox-meta {
    text-align: center;
    color: #f4f7f5;
    max-width: 760px;
}
.pub-lightbox-meta h3 { margin: 0 0 0.2rem; font-size: 1.08rem; font-weight: 700; color: #fff; }
.pub-lightbox-meta p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.pub-lightbox-submeta { margin-top: 0.2rem !important; font-size: 0.78rem !important; color: rgba(255, 255, 255, 0.62) !important; }
.pub-lightbox-toolbar {
    position: fixed;
    top: 0.9rem;
    right: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2060;
}
.pub-lightbox-counter {
    position: fixed;
    top: 1.05rem;
    left: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.32rem 0.8rem;
    border-radius: var(--radius-pill);
    z-index: 2060;
}
.pub-lightbox-btn,
.pub-lightbox-close,
.pub-lightbox-nav {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.pub-lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2060; }
.pub-lightbox-prev { left: 1.1rem; }
.pub-lightbox-next { right: 1.1rem; }
.pub-lightbox-btn:hover,
.pub-lightbox-close:hover,
.pub-lightbox-nav:hover { background: var(--pub-primary); border-color: var(--pub-primary); }

/* ─── News, Documents, Contact, CTA Band ─── */
.news-group + .news-group { margin-top: 3.25rem; }
.news-group > h2 { margin-bottom: 1.25rem; font-family: var(--font-serif); font-weight: 400; font-size: 2rem; color: var(--pub-ink); }

.document-list { display: grid; gap: 0.9rem; }
.document-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 1.1rem;
    padding: 1.2rem 1.35rem;
    background: var(--pub-surface);
    border: 1px solid var(--pub-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, transform .2s ease;
}
.document-item:hover { border-color: var(--pub-primary); transform: translateY(-2px); }
.document-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--pub-primary) 12%, var(--pub-surface-alt));
    color: var(--pub-primary);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}
.document-item h2 { margin: 0; font-size: 1.2rem; }
.document-item p { margin-top: 0.2rem; font-size: 0.92rem; }

.contact-intro { max-width: 700px; margin-bottom: 2rem; color: var(--pub-muted); font-size: 1.05rem; }
.contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.contact-card { padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--pub-primary) 13%, var(--pub-surface-alt));
    color: var(--pub-primary);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-card h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pub-muted);
}
.contact-card p, .contact-card a { margin: 0; color: var(--pub-ink); text-decoration: none; font-weight: 500; word-break: break-word; }
.contact-card a:hover { color: var(--pub-primary); }

.contact-social { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--pub-line); }
.contact-social-title { margin: 0 0 1rem; font-size: 0.83rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pub-muted); }
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--pub-line);
    background: var(--pub-surface);
    color: var(--pub-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.social-pill:hover { border-color: var(--pub-primary); color: var(--pub-primary); transform: translateY(-2px); }

.contact-band {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pub-secondary) 0%, color-mix(in srgb, var(--pub-secondary) 75%, #000) 100%);
}
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-band h2 { max-width: 700px; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.1; color: #fff; }
.contact-band-copy { max-width: 680px; margin: 0.85rem 0 0; color: rgba(255, 255, 255, 0.88); }
.contact-band .button { flex: 0 0 auto; }

/* ─── Friendly Empty States ─── */
.empty-state,
.empty-state-card {
    text-align: center;
    padding: 2.75rem 1.5rem;
    background: var(--pub-surface);
    border: 1px dashed var(--pub-line);
    border-radius: var(--radius-md);
    color: var(--pub-muted);
}
.empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pub-primary) 12%, var(--pub-surface-alt));
    color: var(--pub-primary);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}
.empty-state-card h3 {
    margin: 0 0 0.4rem;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--pub-ink);
}
.empty-state-card p { margin: 0 auto 1.15rem; max-width: 460px; color: var(--pub-muted); }

/* ─── Public Toast Notifications ─── */
.pub-toast-stack {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2040;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: min(380px, calc(100vw - 2rem));
}
.pub-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.05rem;
    border-radius: var(--radius-md);
    background: var(--pub-surface-elevated);
    color: var(--pub-ink);
    border: 1px solid var(--pub-line);
    border-left: 4px solid var(--pub-primary);
    box-shadow: var(--shadow-lg);
    animation: pub-toast-in .3s var(--ease);
}
.pub-toast.toast-success { border-left-color: #10b981; }
.pub-toast.toast-error { border-left-color: #ef4444; }
.pub-toast.toast-warning { border-left-color: #f59e0b; }
.pub-toast-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--pub-muted);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}

/* ─── Footer ─── */
.public-footer {
    padding-top: 3.75rem;
    color: var(--on-footer, #e6eee8);
    background: var(--footer-bg, linear-gradient(180deg, color-mix(in srgb, var(--pub-secondary) 88%, #07120f) 0%, #0d221d 100%));
    border-top: 3px solid var(--pub-primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--on-footer, #fff);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    text-decoration: none;
}
.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.footer-logo-wrap.has-contrast-pad {
    background: rgba(255, 255, 255, 0.92);
    padding: 3px 6px;
}
.footer-logo { width: auto; height: auto; max-height: 42px; max-width: 130px; object-fit: contain; border-radius: 6px; }
.footer-about p { max-width: 320px; margin: 1rem 0 0; color: #c4d2c8; font-size: 0.94rem; }
.footer-title {
    margin: 0.25rem 0 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}
.footer-links a, .footer-contact a, .footer-contact li {
    color: #c7d5cc;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color .2s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: #ffd4b8; }
.footer-contact li { display: flex; gap: 0.65rem; align-items: flex-start; }
.footer-contact i { color: #f6ba95; margin-top: 0.2rem; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-social-empty { color: #9db2a6; font-size: 0.88rem; }
.footer-bottom {
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #b7c8be;
    font-size: 0.82rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ─── CSS-Only Subtle Scroll Animations (Progressive Enhancement) ─── */
@keyframes pub-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pub-reveal {
    from { opacity: 0.01; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
    .reveal-card {
        animation: pub-reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 24%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .hero-slide.is-active .hero-slide-img {
        animation: none !important;
        transform: none !important;
    }
    .hero-stagger {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ─── Responsive Breakpoints (1199px, 991px, 767px, 539px) ─── */
@media (max-width: 1024px) and (min-width: 768px) {
    .hero-slide-inner {
        padding: 24px 28px 36px;
    }
    .hero-caption-card {
        max-width: 480px;
        padding: 20px 24px;
    }
}
@media (max-width: 1100px) {
    .header-main-inner { gap: 1rem; }
    .public-nav .nav-list { gap: 0.2rem 0.65rem; }
    .public-nav .nav-link { font-size: 0.84rem; }
}
@media (max-width: 991px) {
    .nav-toggle { display: inline-flex; }
    .public-nav {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 0;
        right: 0;
        z-index: 30;
        display: none;
        background: var(--pub-surface);
        border: 1px solid var(--pub-line);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }
    .public-nav.open { display: block; }
    .public-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.35rem 0; }
    .public-nav .nav-link { display: block; padding: 0.82rem 1.25rem; border-bottom: 1px solid var(--pub-line); font-size: 0.96rem; }
    .public-nav .nav-list li:last-child .nav-link { border-bottom: none; }
    .public-nav .nav-link.active::after { display: none; }
    .public-nav .manage-link { border-radius: 0; background: transparent; }
    .welcome-grid, .about-layout { grid-template-columns: 1fr; gap: 1.75rem; }
    .gallery-grid, .home-featured-grid, .album-cards-grid, .photo-aligned-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .header-contact { display: none; }
    .header-main-inner { gap: 0.6rem; }
    /* Mobile Hero: rounded 20px inset card, ~70vh height, centred bottom glass caption, always-visible compact arrows */
    .hero-showcase { padding: 12px 16px 6px; }
    .hero-slider { border-radius: 20px; }
    .hero-slider-viewport {
        height: clamp(460px, 70vh, 620px);
        min-height: 460px;
        max-height: 620px;
        aspect-ratio: 4 / 5;
    }
    .hero-slide-inner {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 16px 16px 66px;
    }
    .hero-caption-card {
        max-width: 100%;
        padding: 18px 20px;
        border-radius: 18px;
        text-align: left;
    }
    .hero-caption-card .hero-actions { justify-content: flex-start; }
    .hero-slide-heading { font-size: clamp(1.42rem, 5.2vw, 1.95rem); }
    .hero-caption-card .hero-copy { font-size: 0.94rem; }
    .hero-nav-btn {
        opacity: 1;
        pointer-events: auto;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .hero-nav-prev { left: 10px; }
    .hero-nav-next { right: 10px; }
    .hero-slider-controls {
        left: 16px;
        right: 16px;
        bottom: 14px;
        display: flex;
        justify-content: center;
    }
    .section-heading, .contact-band-inner { align-items: flex-start; flex-direction: column; }
    .program-grid, .update-grid, .story-grid, .video-grid, .listing-grid, .contact-details { grid-template-columns: 1fr; }
    .program-item { grid-template-columns: 115px 1fr; }
    .program-image, .program-mark { min-height: 145px; }
    .gallery-grid, .home-featured-grid, .album-cards-grid, .photo-aligned-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    .gallery-filter-bar { padding: 0.85rem; }
    .gallery-filter-controls { width: 100%; }
    .gallery-select { flex: 1 1 130px; min-width: 0; }
    .album-sticky-title { display: none; }
    .document-item { grid-template-columns: 44px 1fr; }
    .document-item .text-link { grid-column: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
    .footer-about { grid-column: 1 / -1; }
    .pub-lightbox-prev { left: 0.5rem; }
    .pub-lightbox-next { right: 0.5rem; }
}
@media (max-width: 540px) {
    /* Very narrow phones: taller 4:5 photo area with caption cleanly below image so faces stay clear */
    .hero-slider {
        background: var(--pub-surface);
        border: 1px solid var(--pub-line);
    }
    .hero-slider-viewport {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
    }
    .hero-slide {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .hero-slide-media {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 4 / 5;
        max-height: 54vh;
        flex-shrink: 0;
    }
    .hero-slide-scrim { height: 26%; }
    .hero-slide-inner {
        position: relative;
        inset: auto;
        pointer-events: auto;
        padding: 14px 16px 68px;
        background: var(--pub-surface);
    }
    .hero-caption-card {
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        background-image: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: var(--pub-ink);
        text-align: left;
    }
    .hero-caption-card .eyebrow {
        color: #c2410c;
        text-shadow: none;
    }
    [data-theme="dark"] .hero-caption-card .eyebrow {
        color: #ff9c4f;
    }
    .hero-slide-heading {
        color: var(--pub-ink);
        font-size: clamp(1.32rem, 5.8vw, 1.65rem);
        text-shadow: none;
    }
    .hero-caption-card .hero-copy {
        color: var(--pub-muted);
        font-size: 0.9rem;
        margin-top: 0.45rem;
        text-shadow: none;
        -webkit-line-clamp: 2;
    }
    .hero-caption-card .hero-actions {
        justify-content: flex-start;
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    .hero-caption-card .hero-actions .button {
        min-height: 38px;
        padding: 0.42rem 0.95rem;
        font-size: 0.84rem;
    }
    .button-hero-glass {
        border-color: var(--pub-line-strong);
        color: var(--pub-ink);
        background: var(--pub-surface-alt);
        backdrop-filter: none;
    }
    .button-hero-glass:hover {
        border-color: var(--pub-primary);
        color: var(--pub-primary);
        background: var(--pub-surface);
    }
    .hero-nav-btn {
        top: 26%;
    }
    .hero-slider-controls {
        bottom: 12px;
    }
    .public-brand { gap: 0.45rem; }
    .public-brand .brand-name { font-size: 1.02rem; }
    .public-brand .brand-tag { font-size: 0.68rem; }
    .public-logo { max-width: 44px; height: 34px; }
    .gallery-grid, .home-featured-grid, .album-cards-grid, .photo-aligned-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: auto; }
    .footer-bottom .container { flex-direction: column; }
}
