@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700;900&display=swap');

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

:root {
  --bg-deep: #0a0e0a;
  --bg-surface: #121a12;
  --bg-card: #1a241a;
  --text-primary: #e8e4dc;
  --text-muted: #9a9688;
  --accent: #c8a24e;
  --accent-glow: #d4b85c;
  --accent-dim: rgba(200, 162, 78, 0.15);
  --font-main: 'Raleway', sans-serif;
  --radius: 6px;
  --gap: 8px;
}

html { scroll-behavior: smooth; }

body.is-multiverse {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2.5rem;
  background: linear-gradient(
    to top,
    rgba(10, 14, 10, 0.95) 0%,
    rgba(10, 14, 10, 0.6) 40%,
    transparent 70%
  );
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-meta a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-meta a:hover { color: var(--accent-glow); }

.meta-sep { color: var(--text-muted); opacity: 0.5; }

.hero-labels {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.label-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 162, 78, 0.3);
  border-radius: 2rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.label-tag:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

/* ── Event body (verbatim content) ── */
.event-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: none; /* content is in the gallery; original WP markup hidden */
}

/* ── Gallery section ── */
.gallery-section {
  padding: 2rem 1.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-heading {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.gallery-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  opacity: 0.5;
}

/* ── Mosaic grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  grid-auto-flow: dense;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mosaic-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.mosaic-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  aspect-ratio: 1 / 1;
}

.mosaic-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.mosaic-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(10, 14, 10, 0.9), transparent);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 400;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.mosaic-item:hover figcaption {
  transform: translateY(0);
}

/* Span modifiers */
.span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.span-2x2 img { aspect-ratio: auto; }

.span-wide {
  grid-column: span 2;
}

.span-wide img { aspect-ratio: 2 / 1; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(200, 162, 78, 0.15);
}

.footer-home {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-home:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { height: 50vh; min-height: 300px; }
  .hero-overlay { padding: 2rem 1.5rem; }
  .hero-title { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .span-2x2 { grid-column: span 2; grid-row: span 1; }
  .span-2x2 img { aspect-ratio: 2 / 1; }
  .span-wide { grid-column: span 2; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 6px; }
  .span-2x2,
  .span-wide { grid-column: span 1; }
  .span-2x2 img,
  .span-wide img { aspect-ratio: 4 / 3; }
  .mosaic-item img { aspect-ratio: 4 / 3; }
  .hero { height: 45vh; }
  .hero-overlay { padding: 1.5rem 1rem; }
  .hero-meta { font-size: 0.85rem; }
  .gallery-section { padding: 1.5rem 0.75rem 3rem; }

  .mosaic-item figcaption {
    transform: translateY(0);
    position: relative;
    background: var(--bg-card);
    padding: 0.5rem 0.75rem;
  }
}

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}
