body {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  margin: 0;
  padding: 24px;
  color: #111;
  background: #f7f7f8;
}

header,
footer {
  max-width: 900px;
  margin: 0 auto;
}

main {
  max-width: 900px;
  margin: 18px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

h2 {
  margin-top: 18px;
  font-size: 1.05rem;
}

h3 {
  margin-top: 14px;
  font-size: 1rem;
}

p {
  margin: 8px 0;
  line-height: 1.45;
}

header {
  padding: 18px 0;
}

header nav {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  justify-content: flex-start;
}

nav a {
  margin: 0;
  color: #8b1e1e;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.08s ease;
  display: inline-block;
  font-weight: 500;
}

nav a:hover {
  background: rgba(139, 30, 30, 0.06);
  transform: translateY(-1px);
}

nav a[aria-current="page"] {
  background: #8b1e1e;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139, 30, 30, 0.18);
  position: relative;
}

nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 30%;
  height: 3px;
  background: #8b1e1e;
  border-radius: 2px;
}

.muted {
  color: #555;
  font-size: 0.95rem;
}

.small {
  font-size: 0.9rem;
  color: #444;
}

code {
  background: #eef;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

footer {
  margin-top: 18px;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
}

.actions {
  margin-top: 12px;
}

a.button {
  display: inline-block;
  padding: 8px 12px;
  background: #8b1e1e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery figure {
  margin: 0;
  background: #fafafa;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.gallery img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.caption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #444;
}

/* Lightbox overlay (full-screen) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  padding: 20px;
}

.lightbox-content {
  text-align: center;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
