:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #555555;
  --rule: #d0d0d0;
  --card: #f3f3f3;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
header { text-align: center; max-width: 40rem; margin: 0 auto 2.25rem; }
h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}
.dates {
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin: 0.15rem 0 0;
}
.blurb {
  font-size: 1.12rem;
  margin: 0 0 0.9rem;
}
.sign {
  font-style: italic;
  color: var(--muted);
  margin: 1.1rem 0 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 3.5rem;
  margin: 1.4rem auto;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
.gallery a {
  display: block;
  background: var(--card);
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.tribute {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 40rem;
  margin: 2.75rem auto 0;
}
.tribute h2 {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}
.tribute p {
  font-size: 1.12rem;
  margin: 0 0 0.9rem;
  text-align: center;
  width: 100%;
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2.5rem;
}
footer a {
  color: #3a6b48;
  text-decoration: none;
}
footer a .profile-label { text-decoration: underline; }
footer a:visited { color: #6b6560; }
footer a:hover { color: #1a1a1a; }
footer .updated {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 1rem;
}
.lb.is-open { display: flex; }
.lb img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb button {
  position: absolute;
  background: transparent;
  color: var(--fg);
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
}
.lb .lb-close { top: 0.4rem; right: 0.4rem; }
.lb .lb-prev { left: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb .lb-count {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 639px) {
  .lb .lb-prev, .lb .lb-next { font-size: 1.6rem; }
}
