body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #777 0, #555 40%, #333 100%);
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-wrapper {
  max-width: 900px;
  width: 95%;
  margin: 30px auto;
  padding: 40px 45px 55px;
  background: rgba(20, 20, 20, 0.92);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nav links (Memorial / Album) */
.nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(245,245,245,0.85);
  background: rgba(255,255,255,0.03);
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
}

.nav-links a.active {
  background: rgba(255,255,255,0.25);
  color: #111;
  font-weight: 700;
  pointer-events: none;
}

/* Top header */
.top-header {
  text-align: center;
  margin-bottom: 25px;
}

/* BIG rectangular photo instead of round medallion */
.hero-photo {
  width: 55%;
  max-height: 700px;
  margin: 0 auto 15px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: block;
}

.name-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 8px 0 4px;
}

.subtitle {
  font-size: 0.95rem;
  color: rgba(245,245,245,0.75);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.years {
  font-size: 0.9rem;
  margin-top: 6px;
  color: rgba(245,245,245,0.6);
}

/* Fleur area */
.fleur-wrap {
  margin: 22px auto 25px;
  text-align: center;
}

.fleur {
  font-size: 2.3rem;
  color: #d4af37;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(0, 0, 0, 0.6);
  display: inline-block;
  transform: translateY(1px);
}

.fleur-caption {
  font-size: 0.85rem;
  margin-top: 6px;
  color: rgba(245,245,245,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Main text */
.content {
  line-height: 1.7;
  font-size: 1rem;
}

.content p {
  margin: 0 0 1rem;
}

.section-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffd76a;
  margin: 20px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
}

.highlight-quote {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid #d4af37;
  background: rgba(255, 255, 255, 0.04);
  font-style: italic;
  font-size: 0.98rem;
}

.tagline {
  margin-top: 24px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245,245,245,0.65);
  text-align: center;
}

.tiny {
  font-size: 0.8rem;
  color: rgba(245,245,245,0.5);
  margin-top: 6px;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(245,245,245,0.7);
}

footer strong {
  color: #ffd76a;
}

footer span {
  display: block;
  font-size: 0.8rem;
  color: rgba(245,245,245,0.5);
  margin-top: 6px;
}

/* Comments section */
.comments-section {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.comments-section h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffd76a;
  margin-bottom: 18px;
  text-align: center;
}

.comment {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 3px solid #d4af37;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  font-size: 0.95rem;
}

.comment strong {
  color: #ffd76a;
  display: block;
  margin-bottom: 6px;
}

/* Album page grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.album-card {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.album-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-caption {
  padding: 8px 10px;
  font-size: 0.9rem;
  color: rgba(245,245,245,0.9);
}

/* Simple panel for forms (album submit page if you add one later) */
.panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 10px;
}

label {
  display: block;
  font-size: 0.9rem;
  margin: 8px 0 4px;
  color: rgba(245,245,245,0.85);
}

input[type="text"],
textarea,
input[type="file"] {
  width: 98%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #f5f5f5;
  font-size: 1rem;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

.btn {
  background: #d4af37;
  color: #111;
  border: 0;
  padding: 10px 14px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 10px;
}

.btn:hover {
  background: #ffd76a;
}

/* ===== Lightbox (album) ===== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(212, 175, 55, 0.8);
}

.lightbox-backdrop::after {
  content: "Click anywhere or press ESC to close";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.7);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}
