:root {
  --bg: #14110f;
  --text: #f5eee4;
  --muted: #c9bca8;
  --accent: #d4b082;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

img { display: block; max-width: 100%; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 17, 15, 0.78);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: .85rem;
}

.primary-nav { display: inline-flex; gap: 1rem; }
.primary-nav a { text-decoration: none; color: var(--muted); }
.primary-nav a[aria-current="page"], .primary-nav a:hover { color: var(--accent); }

.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: end start;
}

.hero-image, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: contain; background: #111; }
.hero-overlay { background: linear-gradient(180deg, rgba(10,9,8,.28), rgba(10,9,8,.75)); }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}

.eyebrow {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--accent);
}

h1 {
  margin: .4rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  font-family: "Playfair Display", Georgia, serif;
}

.hero-copy, p { color: var(--muted); line-height: 1.6; }

.hero-actions { margin-top: 1.4rem; }

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  display: inline-flex;
}

.btn-solid {
  background: var(--accent);
  color: #1a140f;
}

.section { padding: 4rem 0; }
.page-hero { padding: 3rem 0 1rem; }
.section-tight { padding-top: 1rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .9rem;
}

.gallery-item {
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: transparent;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: auto; max-height: 320px;
  object-fit: contain; background: #111;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.9);
  z-index: 40;
  padding: 1rem;
}

.lightbox-image {
  width: min(1100px, 95vw);
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20,17,15,.92);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  margin-top: 2rem;
}

.footer-wrap p { margin: 0; color: var(--muted); }

@media (min-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* Hero slider */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; background: #111;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}
.lightbox[hidden]{display:none !important;}

.gallery-card {
  display: grid;
  gap: 0.55rem;
}

.vote-row {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.vote-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}

.vote-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}

.vote-btn.is-on {
  color: #1a140f;
  background: var(--accent);
  border-color: var(--accent);
}

.vote-btn .count {
  font-weight: 600;
  margin-left: 0.18rem;
}

/* uniform gallery preview boxes */
.gallery-item {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* full image visible, no crop */
}

/* electric blue hover ring */
.vote-btn {
  transition: box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.vote-btn:hover,
.vote-btn:focus-visible {
  border-color: #3aa0ff;
  box-shadow:
    0 0 0 2px rgba(58, 160, 255, 0.35),
    0 0 14px rgba(58, 160, 255, 0.35);
  transform: translateY(-1px);
  outline: none;
}

/* electric blue hover ring */
.vote-btn {
  transition: box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.vote-btn:hover,
.vote-btn:focus-visible {
  border-color: #3aa0ff;
  box-shadow:
    0 0 0 2px rgba(58, 160, 255, 0.35),
    0 0 14px rgba(58, 160, 255, 0.35);
  transform: translateY(-1px);
  outline: none;
}

/* strong electric-blue hover ring + outer glow */
.vote-btn {
  position: relative;
  z-index: 0;
}

.vote-btn:hover,
.vote-btn:focus-visible {
  outline: 5px solid #2ea8ff !important;
  outline-offset: 2px !important;
  box-shadow:
    0 0 0 5px rgba(46, 168, 255, 0.28),
    0 0 18px 8px rgba(46, 168, 255, 0.55),
    0 0 34px 14px rgba(46, 168, 255, 0.35) !important;
  border-color: #2ea8ff !important;
}

.gallery-card .vote-btn:hover,
.gallery-card .vote-btn:focus-visible {
  outline: 5px solid #00b7ff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(0,183,255,.35), 0 0 30px 14px rgba(0,183,255,.75) !important;
  background: #0f2230 !important;
  color: #ffffff !important;
  border-color: #00b7ff !important;
}

/* electric ring around image cards */
.gallery-card .gallery-item {
  border: 2px solid rgba(255,255,255,0.08);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gallery-card .gallery-item:hover,
.gallery-card .gallery-item:focus-visible {
  border-color: #00b7ff !important;
  box-shadow:
    0 0 0 5px rgba(0,183,255,.28),
    0 0 18px 8px rgba(0,183,255,.55),
    0 0 34px 14px rgba(0,183,255,.35) !important;
  transform: translateY(-2px);
  outline: none;
}

/* tone down vote button hover to near-zero */
.gallery-card .vote-btn:hover,
.gallery-card .vote-btn:focus-visible {
  outline: 1px solid rgba(255,255,255,0.12) !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border-color: rgba(255,255,255,0.2) !important;
  transform: none !important;
}

/* emergency grid reset */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  align-items: start !important;
}

.gallery-card {
  display: block !important;
  width: 100% !important;
}

@media (min-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* --- Home hero full-bleed hard override --- */
.hero {
  position: relative !important;
  min-height: calc(100vh - 64px) !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;   /* break out of centered containers */
  margin-right: calc(50% - 50vw) !important;
  overflow: hidden !important;
}

.hero-slider,
.hero-image,
.hero-slide,
.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hero-slide,
.hero-image {
  object-fit: cover !important;
  object-position: center center !important;
}

/* readable brand in top-left */
.brand {
  color: #f5eee4 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.55) !important;
  opacity: 1 !important;
}
