/* ============================================================
   NHHS 2001 — Alumni Heritage Design System
   Bootstrap 5 companion styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* --- Design Tokens ----------------------------------------- */
:root {
    --nh-primary: #570000;
    --nh-primary-dark: #800000;
    --nh-primary-light: #ffdad4;
    --nh-on-primary: #ffffff;
    --nh-surface: #f9f9f8;
    --nh-surface-low: #f3f4f3;
    --nh-surface-card: #ffffff;
    --nh-surface-dim: #dadad9;
    --nh-on-surface: #1a1c1c;
    --nh-on-surface-muted: #625e59;
    --nh-outline: #8e706c;
    --nh-outline-variant: #e2bfb9;
    --nh-secondary-cont: #e5ded8;
    --nh-radius-sm: 0.375rem;
    --nh-radius: 0.5rem;
    --nh-radius-lg: 1rem;
    --nh-shadow-ambient: 0 20px 40px -15px rgba(87, 0, 0, 0.07);
    --nh-shadow-hover: 0 30px 60px -12px rgba(87, 0, 0, 0.11);
}

/* --- Base --------------------------------------------------- */
html,
body {
    background-color: var(--nh-surface);
    color: var(--nh-on-surface);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* --- Headings Scale --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--nh-primary-dark);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h5 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Override Bootstrap's default font-family */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* --- Bootstrap overrides ----------------------------------- */
/* Primary colour */
.btn-primary,
.btn-primary:focus {
    background-color: var(--nh-primary-dark);
    border-color: var(--nh-primary-dark);
    color: var(--nh-on-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--nh-radius);
    padding: 0.65rem 1.75rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--nh-primary);
    border-color: var(--nh-primary);
    box-shadow: 0 8px 24px -6px rgba(87, 0, 0, 0.3);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-outline-primary {
    border-color: var(--nh-primary-dark);
    color: var(--nh-primary-dark);
    border-width: 1.5px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--nh-radius);
    padding: 0.65rem 1.75rem;
    transition: all 0.15s ease;
}

.btn-outline-primary:hover {
    background-color: rgba(87, 0, 0, 0.05);
    border-color: var(--nh-primary-dark);
    color: var(--nh-primary-dark);
}

/* Forms */
.form-control,
.form-select {
    background-color: #f5f5f4;
    border: 1px solid transparent;
    border-radius: var(--nh-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--nh-on-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nh-primary-dark);
    background-color: #f5f5f4;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.12);
    color: var(--nh-on-surface);
    outline: none;
}

.form-control::placeholder {
    color: #9b9087;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--nh-primary-dark);
    margin-bottom: 0.4rem;
}

/* Compact category badge (used in gallery lightbox, etc.) */
.nh-chip {
    display: inline-block;
    background-color: rgba(87, 0, 0, 0.08);
    color: var(--nh-primary-dark);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
}

/* Editorial eyebrow label — decorative ruled text, not a button */
.nh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--nh-primary-dark);
    opacity: 0.7;
}

.nh-eyebrow::before,
.nh-eyebrow::after {
    content: '';
    display: block;
    width: 2.25rem;
    height: 1px;
    background-color: currentColor;
}

/* --- Navbar ------------------------------------------------ */
.nh-navbar {
    background-color: rgba(249, 249, 248, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nh-outline-variant);
    box-shadow: 0 1px 12px rgba(87, 0, 0, 0.04);
}

.nh-navbar .navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nh-primary-dark);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nh-navbar .nav-link {
    color: var(--nh-on-surface-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.15rem;
    transition: color 0.15s ease;
    text-decoration: none;
}

.nh-navbar .nav-link:hover {
    color: var(--nh-primary-dark);
}

.nh-navbar .nav-link.active {
    color: var(--nh-primary-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--nh-primary-dark);
}

.navbar-toggler {
    border: none;
    color: var(--nh-primary-dark);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --- Cards ------------------------------------------------- */
.nh-card {
    background-color: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    border: 1px solid rgba(226, 191, 185, 0.25);
    box-shadow: var(--nh-shadow-ambient);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nh-card:hover {
    box-shadow: var(--nh-shadow-hover);
    transform: translateY(-4px);
}

.nh-card.nh-no-hover:hover {
    box-shadow: var(--nh-shadow-ambient);
    transform: none;
}

/* Countdown cards */
.nh-countdown-card {
    background-color: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    box-shadow: var(--nh-shadow-ambient);
    padding: 2rem 1rem;
    text-align: center;
}

.nh-countdown-card .nh-count-num {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--nh-primary-dark);
}

.nh-countdown-card .nh-count-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nh-on-surface-muted);
    margin-top: 0.3rem;
}

/* --- Sections ---------------------------------------------- */
.nh-section-bg {
    background-color: var(--nh-surface-low);
}

/* --- Gallery / Bento --------------------------------------- */
.nh-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .nh-bento-grid {
        grid-template-columns: 2fr 1fr;
        height: 540px;
    }

    .nh-bento-side {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 1.25rem;
    }
}

.nh-bento-item {
    border-radius: var(--nh-radius-lg);
    overflow: hidden;
    box-shadow: var(--nh-shadow-ambient);
    transition: box-shadow 0.35s ease;
}

.nh-bento-item:hover {
    box-shadow: var(--nh-shadow-hover);
}

.nh-bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.nh-bento-item:hover img {
    transform: scale(1.04);
}

/* Photo gallery grid */
.nh-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.nh-photo-card {
    background: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    overflow: hidden;
    box-shadow: var(--nh-shadow-ambient);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nh-photo-card:hover {
    box-shadow: var(--nh-shadow-hover);
    transform: translateY(-4px);
}

.nh-photo-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nh-photo-card:hover img {
    transform: scale(1.04);
}

.nh-photo-card-body {
    padding: 1rem 1.25rem;
}

/* Alumni grid */
.nh-alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.nh-alumni-card {
    background: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    box-shadow: var(--nh-shadow-ambient);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nh-alumni-avatar {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-color: var(--nh-primary-light);
    color: var(--nh-primary-dark);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.nh-alumni-link {
    color: var(--nh-primary-dark) !important;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nh-alumni-link:hover {
    opacity: 0.75;
    text-decoration: underline !important;
}

.nh-alumni-link-active {
    color: #198754 !important;
    /* Green for available active yearbook entry */
    font-weight: 700 !important;
}

.nh-alumni-link-muted {
    color: var(--nh-on-surface-muted) !important;
}

.nh-alumni-link-muted:hover {
    color: var(--nh-primary-dark) !important;
    opacity: 1;
}

/* Message / ledger cards */
.nh-message-card {
    background: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    border: 1px solid rgba(226, 191, 185, 0.2);
    padding: 1.75rem;
    box-shadow: var(--nh-shadow-ambient);
    transition: transform 0.2s ease-out;
}

.nh-message-card:hover {
    transform: translateY(-2px);
}

.nh-avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background-color: var(--nh-primary-light);
    color: var(--nh-primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nh-avatar-sm.secondary {
    background-color: var(--nh-secondary-cont);
    color: var(--nh-on-surface-muted);
}

/* Sign the Wall form card */
.nh-form-card {
    background: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--nh-shadow-ambient);
}

/* --- Typography helpers ------------------------------------ */
.nh-headline-xl {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--nh-primary-dark);
}

/* Large school-name display line in the hero */
.nh-school-name {
    font-size: clamp(1.75rem, 2vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--nh-primary-dark);
    margin-bottom: 0.25rem;
}

.nh-class-number {
    font-size: clamp(1.75rem, 2vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--nh-primary-dark);
    /* color: var(--nh-on-surface-muted); */
    line-height: 1.3;
}

/* Smaller subline beneath the school name */
.nh-reunion-subline {
    font-size: clamp(1.1rem, 9.9vw, 8.0rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--nh-primary-dark);
    /* color: var(--nh-on-surface-muted); */
    line-height: 1.3;
}

.nh-date {
    font-size: clamp(1.75rem, 2vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    /* color: var(--nh-on-surface-muted); */
    line-height: 1.3;
}


.nh-body-muted {
    color: var(--nh-on-surface-muted);
    line-height: 1.65;
}

.nh-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nh-on-surface-muted);
}

/* --- Footer ------------------------------------------------ */
.nh-footer {
    background-color: var(--nh-surface-card);
    border-top: 1px solid var(--nh-outline-variant);
}

.nh-footer .nh-footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nh-primary-dark);
    letter-spacing: -0.01em;
}

.nh-footer a {
    color: var(--nh-on-surface-muted);
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.nh-footer a:hover {
    color: var(--nh-primary-dark);
}

/* Maroon text utility */
.text-nh-primary {
    color: var(--nh-primary-dark);
}

/* --- Winamp Player ----------------------------------------- */
.winamp-skin {
    background: #1c1c1f;
    border: 3px double #4e4e54;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #00e100;
    letter-spacing: 1px;
    text-shadow: 0 0 2px rgba(0, 225, 0, 0.5);
    font-family: 'VT323', monospace;
    font-size: 13px;
}

.winamp-btn {
    background: linear-gradient(to bottom, #444, #222);
    border: 1px solid #555;
    color: #ccc;
    font-weight: bold;
    font-family: 'VT323', monospace;
    font-size: 11px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), 1px 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.1s ease;
}

.winamp-btn:active {
    background: linear-gradient(to top, #444, #222);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.winamp-screen {
    background: #000;
    border: 2px inset #333;
}

/* Odometer digits */
.odometer-digit {
    display: inline-block;
    background: linear-gradient(to bottom, #0d0d0d 0%, #2e2e2e 50%, #0d0d0d 100%);
    color: #ffcc00;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.9);
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    padding: 0.05rem 0.4rem;
    border: 1px solid #333;
    border-radius: 2px;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05);
    line-height: 1.25;
}

/* --- Native <dialog> --------------------------------------- */
dialog {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 95vw;
}

dialog::backdrop {
    background: rgba(26, 28, 28, 0.55);
    backdrop-filter: blur(6px);
}

.dialog-content {
    background: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    box-shadow: 0 24px 64px rgba(87, 0, 0, 0.15);
    border: 1px solid var(--nh-outline-variant);
    position: relative;
}

/* --- Category filter chips --------------------------------- */
.nh-filter-btn {
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1.5px solid var(--nh-outline-variant);
    color: var(--nh-on-surface-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nh-filter-btn:hover {
    border-color: var(--nh-primary-dark);
    color: var(--nh-primary-dark);
}

.nh-filter-btn.active {
    background-color: var(--nh-primary-dark);
    border-color: var(--nh-primary-dark);
    color: #fff;
}

/* --- Time Capsule cards ------------------------------------ */
.nh-capsule-card {
    background: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    border: 1px solid rgba(226, 191, 185, 0.25);
    box-shadow: var(--nh-shadow-ambient);
    padding: 2rem;
}

.nh-capsule-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nh-primary-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nh-capsule-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nh-capsule-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--nh-surface-dim);
    font-size: 0.9rem;
    color: var(--nh-on-surface-muted);
    line-height: 1.55;
}

.nh-capsule-card ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nh-capsule-card ul li strong {
    display: block;
    font-weight: 600;
    color: var(--nh-on-surface);
    margin-bottom: 0.15rem;
}

/* --- Memorial --------------------------------------------- */
.nh-memorial-card {
    background: var(--nh-surface-card);
    border-radius: var(--nh-radius-lg);
    box-shadow: var(--nh-shadow-ambient);
    border: 1px solid rgba(226, 191, 185, 0.25);
}

.nh-memorial-entry {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--nh-outline-variant);
    text-align: center;
}

.nh-memorial-entry:last-child {
    border-bottom: none;
}

.nh-flame-icon {
    color: var(--nh-primary-dark);
    font-size: 1.3rem;
    animation: flicker 3s infinite alternate ease-in-out;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* --- Hero gradient separator ------------------------------ */
.nh-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--nh-outline-variant), transparent);
    border: none;
    margin: 0;
}

/* Hero parallax container */
.nh-hero-bg {
    position: relative;
    overflow: hidden;
}

/* The moving image layer — positioned absolute, taller than the section
   so there's room to slide without showing gaps */
.nh-hero-parallax-layer {
    position: absolute;
    inset: -30% 0;
    /* 30% extra space top & bottom for travel room */
    background-image: url('images/header-1.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

/* Semi-transparent wash sits between image and content */
.nh-hero-parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(249, 249, 248, 0.90) 0%,
            rgba(249, 249, 248, 0.70) 100%);
    z-index: 1;
}

/* Content must sit above both layers */
.nh-hero-bg>.container {
    position: relative;
    z-index: 2;
}



/* Standard 1200px container used on every page */
.nh-container {
    max-width: 1200px;
}

/* Navbar inner row: fixed height, flex */
.nh-navbar-inner {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger icon color */
.nh-menu-icon {
    color: var(--nh-primary-dark);
}

/* Sections with generous vertical padding */
.nh-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Hero text widths */
.nh-hero-title {
    /* max-width: 700px; */
}

.nh-hero-subtitle {
    max-width: 700px;
    font-weight: 800;
}

/* Countdown row width cap */
.nh-countdown-row {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Gallery "View All" link -------------------------------  */
.nh-section-link {
    color: var(--nh-primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nh-section-link:hover {
    color: var(--nh-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Material Symbol size & fill variants ----------------- */
.icon-sm {
    font-size: 18px;
}

.icon-md {
    font-size: 1.4rem;
}

.icon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Bento gallery --------------------------------------- */
.nh-bento-hero-img {
    height: 100%;
    min-height: 300px;
}

.nh-bento-side-item {
    min-height: 140px;
}

/* Image caption overlay on bento hero */
.nh-bento-caption {
    background: linear-gradient(to top, rgba(87, 0, 0, 0.75) 0%, transparent 100%);
    color: #fff;
}

.nh-bento-caption p {
    color: #fff;
}

.nh-bento-caption p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Event detail icons ----------------------------------- */
.nh-detail-icon {
    color: var(--nh-primary-dark);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* --- Sticky form sidebar ---------------------------------- */
.nh-sticky-sidebar {
    position: sticky;
    top: 88px;
}

/* --- Page section header (title + border) ----------------- */
.nh-page-header {
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

/* Centered page header (capsule, memorial) */
.nh-page-header-center {
    text-align: center;
    border-bottom: 1px solid var(--nh-outline-variant);
    padding-bottom: 1.25rem;
    margin-bottom: 3rem;
}

/* --- Search bar wrapper ----------------------------------- */
.nh-search-bar {
    background: var(--nh-surface-card);
    box-shadow: var(--nh-shadow-ambient);
    border-radius: var(--nh-radius-lg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.nh-search-bar .form-control {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.nh-search-bar .form-control:focus {
    background: transparent;
    box-shadow: none;
}

/* --- Footer text ------------------------------------------ */
.nh-footer-copy {
    font-size: 0.85rem;
    color: var(--nh-on-surface-muted);
}

/* --- Alumni page narrow container (max 900px) ------------- */
.nh-container-narrow {
    max-width: 900px;
}

/* --- Lightbox modal content -------------------------------- */
.nh-lightbox-img {
    max-height: 70vh;
    object-fit: contain;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 6px solid #fff;
    border-radius: var(--nh-radius);
}

.nh-lightbox-sidebar {
    flex: 2;
    border-left: 1px solid var(--nh-outline-variant);
    background: var(--nh-surface-card);
}

.nh-lightbox-caption {
    font-size: 1.05rem;
    color: var(--nh-on-surface);
    border-bottom: 1px solid var(--nh-outline-variant);
}

.nh-lightbox-comments {
    max-height: 200px;
    overflow-y: auto;
}

.nh-lightbox-comment-form {
    border-top: 1px solid var(--nh-outline-variant);
}

/* --- Memorial page ---------------------------------------- */
.nh-memorial-quote-card {
    max-width: 680px;
}

.nh-tribute-form-card {
    max-width: 520px;
}

/* --- Winamp widget classes --------------------------------- */
.winamp-container {
    width: 280px;
    font-family: 'VT323', monospace;
}

.winamp-titlebar {
    border-bottom: 1px solid #444;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.winamp-titlebar-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 11px;
    font-family: monospace;
    letter-spacing: 0.1em;
}

.winamp-titlebar-label .material-symbols-outlined {
    font-size: 14px;
}

.winamp-titlebar-btns {
    display: flex;
    gap: 2px;
}

.winamp-titlebar-btn {
    width: 14px;
    height: 14px;
    background: #333;
    border: 1px solid #555;
    color: #aaa;
    font-size: 9px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winamp-titlebar-btn:hover {
    color: #fff;
}

.winamp-display {
    background: #000;
    border: 2px inset #333;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.75rem;
    overflow: hidden;
}

.winamp-display-track {
    overflow: hidden;
    padding-right: 0.5rem;
    flex: 1;
}

.winamp-display-now-playing {
    font-size: 9px;
    color: rgba(0, 255, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.winamp-display-title {
    font-size: 0.8rem;
    color: #00ff00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winamp-display-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.winamp-display-time {
    font-size: 1rem;
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1;
}

.winamp-visualizer-canvas {
    margin-top: 4px;
    background: #000;
    border: 1px solid #222;
    border-radius: 2px;
    display: block;
}

.winamp-controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.winamp-controls .winamp-btn {
    font-size: 10px;
    padding: 3px 0;
}

.winamp-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 9px;
}

.winamp-volume-label {
    font-family: monospace;
    color: #888;
}

.winamp-volume-slider {
    flex: 1;
    accent-color: #22c55e;
    height: 4px;
    cursor: pointer;
}

.winamp-volume-readout {
    font-family: monospace;
    color: #ffd700;
}

.winamp-tray-btn {
    background: #1c1c1f;
    border: 2px solid #4e4e54;
    color: #00e100;
    padding: 0.4rem 1rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- Responsive tweaks ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}