@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --maroon: #6b1c2a;
  --maroon-light: #8b2535;
  --maroon-deep: #4a1019;
  --maroon-pale: #f7eeef;
  --maroon-mid: #c07080;
  --ink: #1a1614;
  --warm-white: #faf8f5;
  --cream: #f3ede4;
  --warm-gray: #e4ddd3;
  --text-muted: #7d7068;
  --text-body: #382e28;
  --gold: #d4a843;
  --gold-light: #e8c06a;
  --shadow: rgba(26,22,20,0.12);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── PRINT ── */
@media print {
  nav, .ss-controls, .view-all-btn, .ss-progress, .ss-nav,
  #lightbox, #pw-modal, .no-print,
  .nav-overlay, .hero-slide:not(.active) { display: none !important; }
  body { background: white; font-size: 11pt; }
  .hero-slideshow { height: auto !important; }
  .hero-slide.active { position: relative !important; height: auto !important; }
  .hero-slide-img { position: relative !important; width: 100% !important; height: 300px !important; object-fit: cover; }
  .hero-overlay { display: none; }
  .hero-content { position: relative !important; background: var(--maroon-pale); padding: 32px 48px !important; }
  .hero-name { color: var(--maroon) !important; font-size: 2.5rem !important; }
  .hero-dates { color: var(--text-muted) !important; }
  .hero-quote { color: var(--text-body) !important; border-left-color: var(--maroon) !important; }
  .gallery-section { background: white !important; }
  .photo-grid { columns: 2 !important; }
  .photo-tile { break-inside: avoid; margin-bottom: 24px; }
  .photo-tile-overlay { opacity: 1 !important; position: relative !important; background: none !important; padding: 8px 0 0 !important; }
  .photo-tile-overlay .tile-quote { color: var(--maroon) !important; font-size: 0.9rem; }
  .photo-tile-overlay .tile-name { color: var(--text-muted) !important; }
  .donate-section { background: var(--maroon-pale) !important; }
  .print-cta { display: none !important; }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 60px;
  background: var(--ink);
  border-bottom: 1px solid rgba(184,144,90,0.2);
}
.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300; color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em; line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.nav-wordmark em { font-style: italic; color: var(--gold); font-weight: 400; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a, .nav-links button {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); background: none; border: none;
  cursor: pointer; transition: color 0.2s; font-family: 'Jost', sans-serif;
  padding: 0; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active,
.nav-links button:hover, .nav-links button.active { color: var(--gold); }
/* .nav-admin-btn {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); cursor: pointer; background: none;
  border: 1px solid rgba(255,255,255,0.08); padding: 5px 12px;
  font-family: 'Jost', sans-serif; transition: all 0.2s;
}
.nav-admin-btn:hover { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.2); }
.nav-tv-btn {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45); cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s; padding: 0; border-radius: 2px;
}
.nav-tv-btn:hover { background: var(--maroon); border-color: var(--maroon); color: white; }
*/
/* ── PAGE FADE ── */
body { animation: pageIn 0.4s ease; }
@keyframes pageIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ── GALLERY ── */
.gallery-section { background: var(--cream); padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 52px; padding: 0 24px; }
.section-header .eyebrow { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--maroon); margin-bottom: 12px; }
.section-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: var(--ink); }
.section-header .ornament { color: var(--gold); font-size: 1rem; letter-spacing: 0.6em; margin-top: 12px; opacity: 0.6; }

.photo-grid { max-width: 1200px; margin: 0 auto; padding: 0 40px; columns: 3; column-gap: 14px; }
.photo-tile { break-inside: avoid; margin-bottom: 14px; cursor: pointer; position: relative; overflow: hidden; display: block; }
.photo-tile img { width: 100%; display: block; transition: transform 0.5s ease; filter: saturate(0.88); }
.photo-tile:hover img { transform: scale(1.04); filter: saturate(1.05); }
.photo-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,16,25,0.82) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.35s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
}
.photo-tile:hover .photo-tile-overlay { opacity: 1; }
.tile-quote { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-style: italic; color: white; line-height: 1.45; margin-bottom: 5px; }
.tile-name { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(16,12,10,0.97);
  align-items: center; justify-content: center; flex-direction: column;
}
#lightbox.open { display: flex; animation: fadeIn 0.22s ease; }
.lb-img-wrap { position: relative; max-width: 75vw; max-height: 74vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 75vw; max-height: 72vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,0.7); transition: opacity 0.3s; }
.lb-info { max-width: 560px; text-align: center; margin-top: 22px; padding: 0 24px; min-height: 60px; }
.lb-quote { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; color: rgba(255,255,255,0.82); line-height: 1.55; margin-bottom: 7px; }
.lb-attr { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lb-counter { font-size: 0.68rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.25); margin-top: 14px; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(107,28,42,0.6); border: 1px solid rgba(255,255,255,0.12);
  color: white; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.95rem; transition: all 0.2s;
}
.lb-arrow:hover { background: var(--maroon); }
.lb-arrow.prev { left: 20px; }
.lb-arrow.next { right: 20px; }
.lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.3rem; cursor: pointer; transition: color 0.2s; }
.lb-close:hover { color: white; }

/* ── DONATE BANNER ── */
.donate-section { background: var(--maroon-deep); padding: 56px 48px; text-align: center; }
.donate-section h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; color: white; margin-bottom: 10px; }
.donate-section p { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.7; max-width: 580px; margin: 0 auto 28px; }
.btn-donate {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--ink); border: none;
  padding: 14px 36px; font-family: 'Jost', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; font-weight: 500; text-decoration: none;
}
.btn-donate:hover { background: var(--gold-light); }

/* ── PRINT CTA ── */
.print-cta { text-align: center; padding: 56px 48px; background: var(--warm-white); border-top: 1px solid var(--warm-gray); }
.print-cta h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; margin-bottom: 8px; }
.print-cta p { color: var(--text-muted); margin-bottom: 22px; font-size: 0.9rem; }
.btn-print {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: white; border: none; padding: 13px 30px;
  font-family: 'Jost', sans-serif; font-size: 0.78rem; letter-spacing: 0.09em;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.btn-print:hover { background: var(--maroon); }

/* ── PASSWORD MODAL ── */
#pw-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(16,12,10,0.9); align-items: center; justify-content: center;
}
#pw-modal.open { display: flex; }
.pw-box { background: var(--warm-white); padding: 52px 48px; max-width: 380px; width: 90%; text-align: center; }
.pw-icon { font-size: 1.6rem; color: var(--maroon); margin-bottom: 14px; opacity: 0.7; }
.pw-box h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; margin-bottom: 8px; }
.pw-box p { color: var(--text-muted); font-size: 0.87rem; margin-bottom: 26px; line-height: 1.55; }
.pw-box input { width: 100%; padding: 13px; border: 1px solid var(--warm-gray); text-align: center; letter-spacing: 0.18em; font-size: 1rem; font-family: 'Jost', sans-serif; background: var(--cream); outline: none; margin-bottom: 14px; color: var(--ink); }
.pw-box input:focus { border-color: var(--maroon); }
.pw-error { color: var(--maroon); font-size: 0.78rem; margin-top: -6px; margin-bottom: 12px; display: none; }
.btn-submit { background: var(--maroon); color: white; border: none; padding: 15px 40px; font-family: 'Jost', sans-serif; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.btn-submit:hover { background: var(--maroon-light); }

/* ── TV MODE ── */
#tv-mode { display: none; position: fixed; inset: 0; z-index: 950; background: #000; flex-direction: column; }
#tv-mode.open { display: flex; }
.tv-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.tv-slide.active { opacity: 1; pointer-events: auto; }
.tv-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.tv-frame { position: relative; width: min(100vw, 177.78vh); height: min(100vh, 56.25vw); overflow: hidden; flex-shrink: 0; }
.tv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 10s ease; }
.tv-slide.active .tv-img { transform: scale(1); }
.tv-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,6,4,0.88) 0%, rgba(10,6,4,0.15) 45%, rgba(10,6,4,0.08) 100%); }
.tv-name-badge { position: absolute; top: 40px; left: 52px; z-index: 5; }
.tv-name-badge .tv-eyebrow { font-size: clamp(0.55rem, 0.9vw, 0.75rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.tv-name-badge .tv-eyebrow::before { content:''; width:28px; height:1px; background:var(--gold); }
.tv-name-badge .tv-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem, 2.8vw, 2.6rem); font-weight: 300; color: white; line-height: 1.1; }
.tv-name-badge .tv-dates { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(0.75rem, 1.3vw, 1.1rem); color: var(--maroon-mid); margin-top: 4px; }
.tv-quote-panel { position: absolute; bottom: 0; left: 0; right: 0; z-index: 5; padding: clamp(20px,3vw,48px) clamp(32px,6vw,88px); display: flex; flex-direction: column; align-items: flex-start; }
.tv-quote-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem,3.2vw,3rem); font-style: italic; color: white; line-height: 1.25; max-width: 75%; text-shadow: 0 2px 20px rgba(0,0,0,0.6); margin-bottom: clamp(8px,1.2vw,16px); }
.tv-quote-attr { font-size: clamp(0.55rem,0.9vw,0.82rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.tv-hero-quote { position: absolute; bottom: clamp(24px,4vw,64px); left: clamp(32px,6vw,88px); z-index: 5; max-width: 55%; }
.tv-hero-quote .hq-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,4.5vw,4.5rem); font-weight: 300; font-style: italic; color: white; line-height: 1.1; text-shadow: 0 2px 32px rgba(0,0,0,0.5); }
.tv-hero-quote .hq-attr { font-size: clamp(0.55rem,0.9vw,0.82rem); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.tv-hero-quote .hq-attr::before { content:''; width:32px; height:1px; background:var(--gold); }
.tv-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.08); z-index: 10; }
.tv-progress-fill { height: 100%; background: var(--maroon); width: 0%; }
.tv-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 10; }
.tv-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.25); border: none; cursor: pointer; transition: all 0.25s; }
.tv-dot.active { background: var(--gold); transform: scale(1.6); }
.tv-controls { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; padding: 14px 24px; gap: 10px; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s; }
.tv-frame:hover .tv-controls { opacity: 1; }
.tv-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; transition: all 0.2s; }
.tv-btn:hover { background: var(--maroon); border-color: var(--maroon); color: white; }
.tv-btn.exit { margin-left: 8px; font-size: 0.7rem; width: auto; padding: 0 14px; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'Jost', sans-serif; }

/* ── RMS ── */
.rms-link { color: var(--maroon); text-decoration: none; border-bottom: 1px solid rgba(107,28,42,0.35); font-weight: 500; transition: border-color 0.2s, color 0.2s; }
.rms-link:hover { color: var(--maroon-light); border-color: var(--maroon); }
.rms-card { background: var(--maroon-pale); border: 1px solid rgba(107,28,42,0.18); border-left: 4px solid var(--maroon); padding: 32px 36px; margin: 40px 0; }
.rms-card-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.rms-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.rms-card-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--maroon); margin-bottom: 4px; }
.rms-tagline { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.rms-card p { font-size: 0.95rem; line-height: 1.8; color: var(--text-body); margin-bottom: 14px; }
.rms-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(107,28,42,0.15); }
.rms-ext-link { display: inline-block; padding: 9px 18px; font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; font-family: 'Jost', sans-serif; border: 1px solid rgba(107,28,42,0.3); color: var(--maroon); background: white; }
.rms-ext-link:hover { background: var(--maroon); color: white; border-color: var(--maroon); }
.rms-ext-link.rms-donate { background: var(--maroon); color: white; border-color: var(--maroon); }
.rms-ext-link.rms-donate:hover { background: var(--maroon-light); }

/* ── MOBILE HAMBURGER ── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 400; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  nav { padding: 0 20px; height: 56px; }
  .nav-wordmark { font-size: 1rem; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--ink); border-top: 1px solid rgba(184,144,90,0.2); flex-direction: column; align-items: stretch; padding: 8px 0 20px; gap: 0; z-index: 299; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { padding: 14px 24px; text-align: left; font-size: 0.82rem; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
  .nav-tv-btn { width: 100%; height: auto; padding: 14px 24px; text-align: left; border-radius: 0; border: none; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.82rem; letter-spacing: 0.08em; justify-content: flex-start; }
  .nav-tv-btn::after { content: ' TV Fullscreen'; }
  .nav-admin-btn { margin: 12px 24px 0; border: 1px solid rgba(255,255,255,0.12); text-align: center; padding: 10px; }
  .donate-section { padding: 40px 24px; }
  .donate-section h2 { font-size: 1.5rem; }
  .btn-donate { padding: 12px 24px; font-size: 0.76rem; }
  .gallery-section { padding: 48px 0; }
  .section-header { padding: 0 20px; margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .photo-grid { columns: 2; column-gap: 10px; padding: 0 16px; }
  .photo-tile { margin-bottom: 10px; }
  .photo-tile-overlay { opacity: 1; background: linear-gradient(to top, rgba(74,16,25,0.75) 0%, transparent 60%); }
  .print-cta { padding: 40px 24px; }
  .lb-img-wrap img { max-width: 95vw; max-height: 55vh; }
  .lb-info { padding: 0 16px; }
  .lb-quote { font-size: 1.05rem; }
  .lb-arrow { width: 38px; height: 38px; }
  .lb-arrow.prev { left: 6px; }
  .lb-arrow.next { right: 6px; }
  .rms-card { padding: 22px 20px; }
  .rms-card-header { flex-direction: column; gap: 10px; }
  .rms-links { flex-direction: column; }
  .tv-name-badge { top: 16px; left: 16px; }
  .tv-quote-panel { padding: 16px 20px; }
}
@media(max-width: 400px) {
  .photo-grid { columns: 1; }
}
