:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #111111;
  --muted: #666666;
  --accent: #d4af37; /* gold; overridden by PHP via theme-color */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}
.container { max-width: 1000px; margin: 0 auto; padding: 1.25rem; }
.site-header { border-bottom: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.9); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.site-title { margin: .25rem 0 0; font-weight: 800; letter-spacing: .3px; }
.site-subtitle { margin: 0 0 .5rem; color: var(--muted); }

.hero { padding: 3rem 0 2rem; }
.hero h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; }
.hero p { color: var(--muted); margin: 0 0 1rem; }
.btn { display: inline-block; background: var(--accent); color: #111111; text-decoration: none; border: 0; padding: .6rem 1rem; border-radius: .6rem; font-weight: 600; box-shadow: 0 6px 24px rgba(212,175,55,.25); }

.gallery { padding: 1rem 0; }
.gallery h3, .wish h3, .updates h3 { margin: 1.5rem 0 .75rem; font-size: 1.1rem; letter-spacing: .2px; color: var(--text); }
.grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid .card:nth-child(odd) { margin-top: 2rem; }
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid .card:nth-child(odd) { margin-top: 1.5rem; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .grid .card:nth-child(odd) { margin-top: 0; }
}
.card { background: var(--panel); border: 1px solid rgba(0,0,0,.10); border-radius: .8rem; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(0,0,0,.20); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card a { text-decoration: none; transition: opacity .2s ease; }
.card a:hover { opacity: .9; }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover img { transform: scale(1.05); }
.card figcaption { padding: .6rem .8rem; color: var(--muted); font-size: .9rem; }

.wish { padding: 1rem 0 2rem; }
.wish-form { display: grid; gap: .75rem; max-width: 720px; }
.wish-form label span { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }
.wish-form input, .wish-form textarea {
  width: 100%; color: var(--text); background: #ffffff; border: 1px solid rgba(0,0,0,.12);
  border-radius: .6rem; padding: .6rem .7rem; font-size: 1rem;
}
.wish-form textarea { min-height: 120px; resize: vertical; }
.status { min-height: 1.2rem; color: var(--muted); }
.wish-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.wish-list li { background: var(--panel); border: 1px solid rgba(0,0,0,.08); border-radius: .6rem; padding: .6rem .75rem; }
.wish-list .meta { font-size: .8rem; color: var(--muted); }

.updates { padding: 0 0 3rem; }
.updates-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.updates-list li { background: var(--panel); border: 1px solid rgba(0,0,0,.08); border-radius: .6rem; padding: .6rem .75rem; }

.site-footer { border-top: 1px solid rgba(0,0,0,.06); background: rgba(255,255,255,.8); }
.site-footer small { color: var(--muted); }

/* --- Lightbox (MVP) --- */
.lb[aria-hidden="false"] { display: block; }
.lb[hidden] { display: none; }
.lb {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 2rem; 
}
.lb-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.lb-figure { position: relative; max-width: min(92vw, 1100px); width: 100%; background: var(--panel); border: 1px solid rgba(0,0,0,.12); border-radius: .8rem; overflow: hidden; z-index: 1; }
.lb-image { display: block; width: 100%; height: min(72vh, 900px); object-fit: contain; background: #ffffff; }
.lb-caption { padding: .8rem 1rem; color: var(--muted); }
.lb-caption .lb-title { color: var(--text); font-weight: 600; margin-bottom: .25rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid rgba(0,0,0,.15); background: rgba(255,255,255,.95); color: #111827;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.lb-close { top: 10px; right: 10px; font-size: 22px; line-height: 1; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { background: #ffffff; transform: translateY(-50%) scale(1.03); }
.lb-close:hover { transform: none; }
.lb-sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
