* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #fdf8f8;
  --tan: #f5e0e0;
  --gold: #9B2335;
  --brown: #6B1A1A;
  --dark: #2d1212;
  --border: #d4a8a8;
  --shadow: rgba(107, 26, 26, 0.18);
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ─────────────────────────────────────── */

nav {
  background: #4a0f0f;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

nav a {
  color: var(--tan);
  text-decoration: none;
  padding: 16px 26px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--gold);
  color: #fff;
}

nav a.locked::after {
  content: ' 🔒';
  font-size: 0.75em;
}

/* ── Header / Hero ──────────────────────────── */

.site-header {
  background: linear-gradient(160deg, #4a0f0f 0%, #7a1515 60%, #9B2335 100%);
  color: #fdf6ec;
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.site-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  position: relative;
}

.site-header .tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: 10px;
  opacity: 0.85;
  font-style: italic;
  position: relative;
}

.site-header .year-badge {
  display: inline-block;
  margin-top: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  padding: 4px 20px;
  font-size: 1rem;
  letter-spacing: 0.15em;
  position: relative;
}

/* ── Main content ────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── Section headings ────────────────────────── */

.section-title {
  font-size: 1.9rem;
  color: var(--brown);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

/* ── Cards ───────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}

.card .card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.card h3 {
  color: var(--brown);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p,
.card a {
  color: var(--dark);
  font-size: 1.1rem;
  line-height: 1.5;
}

.card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* ── Schedule ────────────────────────────────── */

.schedule {
  margin-bottom: 50px;
}

.schedule-day {
  margin-bottom: 30px;
}

.schedule-day h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-style: italic;
}

.schedule-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tan);
  align-items: flex-start;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  min-width: 110px;
  font-size: 1rem;
  color: var(--gold);
  font-weight: bold;
  padding-top: 2px;
  font-family: 'Courier New', monospace;
}

.schedule-desc strong {
  display: block;
  color: var(--brown);
  margin-bottom: 2px;
}

.schedule-desc span {
  font-size: 1.05rem;
  color: #6b5240;
}

/* ── Location cards ──────────────────────────── */

.location-group {
  margin-bottom: 44px;
}

.location-group h2 {
  font-size: 1.4rem;
  color: var(--brown);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.place-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}

.place-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--tan);
}

.place-card-body {
  padding: 16px;
}

.place-card-body h3 {
  color: var(--brown);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.place-card-body .address {
  font-size: 1rem;
  color: #6b5240;
  line-height: 1.5;
  margin-bottom: 8px;
}

.place-card-body .notes {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-style: italic;
}

.directions-link {
  display: inline-block;
  font-size: 1rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

.directions-link:hover {
  text-decoration: underline;
}

/* ── Album grid ──────────────────────────────── */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.album-card {
  text-decoration: none;
  color: var(--dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.album-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--tan);
}

.album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--tan), var(--border));
}

.album-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.album-info strong {
  font-size: 1rem;
  color: var(--brown);
}

.album-info span {
  font-size: 0.85rem;
  color: #6b5240;
}

/* ── Photo gallery ───────────────────────────── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.photo-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px var(--shadow);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Lightbox ────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.lb-close {
  position: fixed;
  top: 16px;
  right: 22px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lb-close:hover { opacity: 1; }

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  user-select: none;
  opacity: 0.7;
}

.lb-prev:hover,
.lb-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  pointer-events: none;
}

.lb-caption {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  font-family: Georgia, serif;
  font-style: italic;
  text-align: center;
  max-width: 600px;
  min-height: 1.2em;
}

.lb-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: all;
}

.lb-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-family: sans-serif;
}

.lb-download {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-family: sans-serif;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 5px 12px;
  transition: background 0.2s;
}

.lb-download:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── Login form ──────────────────────────────── */

.login-wrap {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px var(--shadow);
  text-align: center;
}

.login-card .lock-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.login-card h1 {
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.login-card p {
  color: #6b5240;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.login-card input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: Georgia, serif;
  background: var(--cream);
  color: var(--dark);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.login-card input[type="password"]:focus {
  border-color: var(--gold);
}

.login-card button {
  width: 100%;
  padding: 13px;
  background: var(--brown);
  color: #fdf6ec;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Georgia, serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.login-card button:hover {
  background: var(--gold);
}

.error-msg {
  background: #fff0f0;
  border: 1px solid #e0b0b0;
  color: #8b1a1a;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ── Family member cards ─────────────────────── */

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.member-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}

.member-photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  pointer-events: none;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a0f0f, #9B2335);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px var(--shadow);
}

.member-name {
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 4px;
}

.member-born {
  font-size: 1.1rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 12px;
}

.member-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5a2020;
}

.member-more {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--gold);
  font-style: italic;
}

/* ── Member modal ────────────────────────────── */

.member-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.member-modal.open {
  display: flex;
}

.member-modal-box {
  background: var(--cream);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: center;
}

.member-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brown);
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
}

.member-modal-close:hover { opacity: 1; }

.member-modal-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a0f0f, #9B2335);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px var(--shadow);
}

.member-modal-name {
  font-size: 1.6rem;
  color: var(--brown);
  margin-bottom: 4px;
}

.member-modal-born {
  font-size: 1.1rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 24px;
}

.member-modal-section {
  text-align: left;
  margin-bottom: 22px;
}

.member-modal-section h4 {
  font-size: 1.1rem;
  color: var(--brown);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.member-modal-section ul {
  list-style: none;
  padding: 0;
}

.member-modal-section ul li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark);
  padding: 5px 0;
  border-bottom: 1px solid var(--tan);
}

.member-modal-section ul li:last-child {
  border-bottom: none;
}

#modal-bullets li::before {
  content: '• ';
  color: var(--gold);
  font-weight: bold;
}

/* ── Collapsible sections ────────────────────── */

details.collapsible {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
}

details.collapsible summary {
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.35rem;
  color: var(--brown);
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: var(--tan);
  transition: background 0.2s;
}

details.collapsible summary::-webkit-details-marker { display: none; }

details.collapsible summary:hover {
  background: var(--border);
}

details.collapsible summary::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform 0.25s;
  opacity: 0.6;
}

details.collapsible[open] summary::after {
  transform: rotate(180deg);
}

.details-body {
  padding: 22px;
}

.place-card-placeholder {
  height: 160px;
  background: linear-gradient(135deg, #c9a96e, #8B6914);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

/* ── Footer ──────────────────────────────────── */

footer {
  background: var(--brown);
  color: var(--tan);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ── Utility ─────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brown);
  color: var(--cream);
  text-decoration: none;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--gold);
}

.placeholder-note {
  background: var(--tan);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--brown);
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
  font-style: italic;
}

@media (max-width: 600px) {
  .site-header { padding: 40px 16px 34px; }
  main { padding: 28px 14px 40px; }
  .login-card { padding: 32px 22px; }
  .lb-prev, .lb-next { font-size: 1.8rem; padding: 8px 12px; }
}
