:root {
  --bg: #0e0e0f;
  --surface: #17171a;
  --text: #e9e7e2;
  --muted: #8f8d88;
  --accent: #c9a26b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 3rem;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.site-nav a {
  margin-left: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }
.site-nav .nav-admin { color: var(--accent); }

/* Hero slideshow */
.hero-slideshow {
  position: relative;
  height: calc(100vh - 110px);
  min-height: 420px;
  margin: 0 0 3rem;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active { background: var(--accent); transform: scale(1.25); }

/* Home grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 6px;
  padding: 0 3rem 3rem;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s;
}

.gallery-card:hover img { transform: scale(1.04); }

.card-placeholder { width: 100%; height: 100%; background: var(--surface); }

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
}

.card-overlay h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.card-overlay p { color: var(--muted); font-size: 0.85rem; }

/* Gallery page */
.gallery-page { padding: 0 3rem 3rem; }

.gallery-heading { text-align: center; margin: 1rem 0 2.5rem; }

.gallery-heading h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
}

.gallery-desc { color: var(--muted); max-width: 640px; margin: 0.5rem auto 1rem; }

.masonry { columns: 3 360px; column-gap: 6px; }

.masonry-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 6px;
  cursor: zoom-in;
}

.masonry-item img { width: 100%; display: block; }

.masonry-item figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.3rem 0.2rem 0.6rem;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8,8,9,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lb-content { max-width: 92vw; max-height: 86vh; }

.lb-content img, .lb-content video {
  max-width: 92vw;
  max-height: 86vh;
  display: block;
}

.lb-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 101;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.lightbox button:hover { color: #fff; }
.lb-close { top: 0.6rem; right: 0.8rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

/* Text pages & forms */
.text-page, .password-gate, .empty-state {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.text-page h1, .password-gate h1, .empty-state h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.prose p { margin-bottom: 1rem; }
.contact-email { color: var(--accent); font-size: 1.15rem; }

.password-gate { text-align: center; }

.password-gate form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}

input[type="password"], input[type="text"], input[type="email"], textarea, select {
  background: var(--surface);
  border: 1px solid #2c2c30;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 4px;
}

input:focus, textarea:focus, select:focus { outline: 1px solid var(--accent); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #141414;
  border: none;
  padding: 0.65rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 500;
}

.btn:hover { filter: brightness(1.1); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid #3a3a3f;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: #e07b7b; margin: 0.6rem 0; }

/* Footer */
.site-footer {
  padding: 2.5rem 3rem;
  text-align: center;
  border-top: 1px solid #1e1e22;
  margin-top: 3rem;
}

.socials a {
  margin: 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.socials a:hover { color: var(--text); }

.copyright { color: #5c5a56; font-size: 0.75rem; margin-top: 1rem; }

@media (max-width: 700px) {
  .site-header, .gallery-page, .site-footer { padding-left: 1.1rem; padding-right: 1.1rem; }
  .gallery-grid { padding: 0 1.1rem 2rem; }
  .site-nav a { margin-left: 1.1rem; }
  .masonry { columns: 2 160px; }
}
