@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

:root {
  --color-bg:         #d8eeed;
  --color-primary:    #d4357a;
  --color-header-bg:  #4d8080;
  --color-text:       #1e3a3a;
  --color-border:     #d4357a;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  background: var(--color-header-bg);
  border-bottom: 2px solid var(--color-primary);
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: #fff;
}

header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.3rem;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}

header p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-top: .35rem;
}

main { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* ── Invite ─────────────────────────────────────────────── */
#invite {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

#invite img {
  max-width: 100%;
  height: auto;
  border-radius: .5rem;
  box-shadow: 0 4px 32px rgba(77,128,128,.35), 0 2px 8px rgba(212,53,122,.2);
}

/* ── Gallery grid ────────────────────────────────────────── */
#gallery { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .5rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(212,53,122,.3);
}

/* ── Lightbox ────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: .5rem;
  object-fit: contain;
}

.lb-btn {
  position: fixed;
  background: rgba(212,53,122,.15);
  border: 1px solid var(--color-primary);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.lb-btn:hover { background: rgba(212,53,122,.35); }

#lb-close { top: 1rem; right: 1rem; }
#lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
#lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Video thumbnails ────────────────────────────────────── */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: .5rem;
  overflow: hidden;
  cursor: pointer;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-wrap::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(0,0,0,.8);
  background: rgba(0,0,0,.25);
  transition: background .15s;
}

.video-wrap:hover::after { background: rgba(0,0,0,.45); }

/* ── Lightbox video ──────────────────────────────────────── */
#lb-video {
  display: none;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: .5rem;
}

#lb-video.active { display: block; }
#lb-img.hidden   { display: none; }

/* ── Archive link ────────────────────────────────────────── */
.archive-link {
  display: block;
  text-align: center;
  margin-top: 3rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: .9rem;
  opacity: .7;
}
.archive-link:hover { opacity: 1; }
