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

body {
  font-family: Arial, sans-serif;
  color: #444;
  background: #fff;
}

/* ── Banner + Nav overlay ── */
.banner-wrap {
  position: relative;
}

.banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: bottom center;
  display: block;
}

nav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0 0 0 6px;
  z-index: 10;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}

nav a:hover { background: rgba(255, 255, 255, 0.2); }
nav a.active { font-weight: bold; }

nav .nav-divider {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  user-select: none;
}

/* ── Content ── */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.dates {
  font-size: 18pt;
  font-weight: bold;
  color: #444;
  margin-bottom: 24px;
  text-align: center;
}

.bio p {
  font-size: 14pt;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #444;
}

.bio a {
  color: #1a73e8;
  text-decoration: none;
}
.bio a:hover { text-decoration: underline; }

.donate-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 10px 24px;
  background: #888;
  color: #fff !important;
  border-radius: 4px;
  font-size: 14pt;
  text-decoration: none !important;
  transition: background 0.15s;
}

.btn:hover { background: #666; }

/* ── Poem ── */
.poem-section {
  margin-top: 48px;
  border-top: 1px solid #e0e0e0;
  padding-top: 40px;
}

.poem {
  text-align: center;
  font-size: 14pt;
  line-height: 1.8;
  color: #444;
}

.poem-attribution {
  text-align: right;
  margin-top: 20px;
  font-size: 13pt;
  color: #666;
  font-style: italic;
}

/* ── Photos page ── */
.photos-intro {
  font-size: 14pt;
  color: #444;
  margin-bottom: 32px;
  text-align: center;
}

.gallery-wrap {
  max-width: 2904px; /* 3 cols × 960px + 2 gaps — stops growing when narrowest photo hits natural size */
  margin: 0 auto;
  padding: 0 24px 60px;
}

.gallery {
  columns: 3;
  column-gap: 12px;
}

.gallery img {
  width: 100%;
  height: auto;
  max-width: 960px; /* natural width of smallest photo — prevents upscaling */
  display: block;
  margin-bottom: 12px;
  border-radius: 4px;
  break-inside: avoid;
  cursor: pointer;
  transition: opacity 0.15s;
}

.gallery img:hover { opacity: 0.88; }

@media (max-width: 700px) {
  .gallery { columns: 2; }
}

@media (max-width: 420px) {
  .gallery { columns: 1; }
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

#lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}
