:root {
  --bg: #0b0b0c;
  --fg: #f3f3f3;
  --muted: #a9a9b3;
  --card: #16161a;
  --accent: #e1e1e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans';
  background: var(--bg);
  color: var(--fg);
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 40px 0 20px;
}
header img {
  max-width: 300px;
  width: 80%;
  height: auto;
}

/* ===== CONTAINERS ===== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.75rem;
  margin: 16px 0 8px;
  text-align: center;
}

/* ===== GRID LAYOUT ===== */
.grid {
    margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== VENUE CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid #23232a;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #2f2f38;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.card span {
  font-weight: 600;
  letter-spacing: .2px;
  text-align: center;
}

/* ===== GALLERY PAGE ===== */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}
a.back {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid #23232a;
  padding: 8px 10px;
  border-radius: 10px;
}
a.back:hover {
  border-color: #2f2f38;
}
h1 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
}
.thumb {
  position: relative;
  background: #0f0f13;
  border: 1px solid #23232a;
  border-radius: 10px;
  overflow: hidden;
}
.thumb button {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
}
.thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ===== FOOTER / EMPTY ===== */
.empty {
  color: var(--muted);
  padding: 16px 0;
  text-align: center;
}
.footer {
  color: var(--muted);
  font-size: .9rem;
  margin: 24px 0 8px;
  text-align: center;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .8);
  z-index: 50;
  padding: 16px;
}
.modal.open {
  display: flex;
}
.modal-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
}
.modal img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
}
.close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ffffff;
  color: #000;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

/* Lightbox nav arrows */
.modal .nav {
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; background:#ffffff; color:#000;
  border-radius:999px; display:flex; align-items:center; justify-content:center;
  font-weight:700; cursor:pointer; user-select:none;
  opacity:0.9;
}
.modal .prev { left:-52px; }
.modal .next { right:-52px; }
@media (max-width:640px){
  .modal .prev { left:8px; }
  .modal .next { right:8px; }
}


/* download button in modal */
.download-btn{
  position:absolute;
  bottom:12px;
  right:48px;          /* leave room for the close button if it’s on the right */
  padding:10px 14px;
  border:1px solid #2a2a31;
  border-radius:10px;
  background:#1e1e24;
  color:var(--fg, #fff);
  text-decoration:none;
  font-weight:600;
}
.download-btn:hover{ filter:brightness(1.1); }


/* Use Caslon Text for main headings */
h1 {
  font-family: 'Libre Caslon Text', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Optional: give the title a classic centered style */
.top h1 {
  text-align: center;
  font-size: 2.4rem;
  margin: 0.5em 0;
}
