:root {
  --maroon: #800000;
  --gold: #d4af37;
  --backdrop: rgba(0, 0, 0, 0.88);
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bg-hover: rgba(255, 255, 255, 0.25);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;                              /* no margin */
  background: #000;                       /* black background */
  color: var(--gold);                     /* gold text */
  font-size: 20px;                        /* page text size */
  font-family: "Libre Baskerville", serif;/* Libre Baskerville */
}

/* Header */
.site-header {
  background: var(--maroon);
  padding: 24px;                          /* 24px padding */
  display: flex;                          /* Flexbox container */
  align-items: center;
  justify-content: center;                /* centered content */
  gap: 16px;
}
.logo { width: 64px; height: auto; }
.site-title {
  margin: 0;
  padding-left: 16px;                     /* 16px left padding */
  font-size: 64px;                        /* title size 64px */
  line-height: 1;
  font-family: cursive;                   /* generic cursive font */
  text-align: center;                     /* centered */
}

/* Main */
main { text-align: center; margin: 24px; }/* centered text + 24px margin */
.page-heading {
  margin: 0 0 10px;
  font-size: 30px;                        /* 30px heading */
  font-family: "Montserrat", system-ui, sans-serif; /* Montserrat */
}
.intro { margin: 0 0 24px; }

/* Gallery */
.gallery {
  display: flex;                          /* Flexbox container */
  justify-content: center;                /* centered content */
  flex-wrap: wrap;                        /* enable wrap */
  gap: 16px;
}
.gallery figure {
  margin: 0;
  width: 220px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.gallery figcaption {
  padding: 10px 12px;
  font-size: 0.95rem;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--maroon);
  padding: 24px;                          /* 24px padding */
  text-align: center;                     /* centered text */
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  background: var(--backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 9999;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out; /* clicking backdrop closes */
}

.lb-stage {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  max-width: 92vw;
  max-height: 90vh;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #fff;
}
.lb-img {
  max-width: 92vw;
  max-height: 74vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lb-caption {
  max-width: 80vw;
  opacity: 0.95;
  text-align: center;
}

/* Controls */
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--btn-bg);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.lb-close:hover { background: var(--btn-bg-hover); transform: scale(1.06); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border: none;
  border-radius: 10px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.lb-nav:hover { background: var(--btn-bg-hover); transform: translateY(-50%) scale(1.04); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Keep overlay clicks from closing when interacting with controls/image */
.lb-stage, .lb-stage *, .lb-nav, .lb-close { cursor: auto; }
