:root {
  --gold: #f0b84a;
  --bg: #111;
  --card: #1b1b1e;
  --muted: #bdbdbd;
  --line: rgba(240, 184, 74, .25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, #332816 0, #171513 35%, var(--bg) 72%);
  color: #fff;
  font-family: Arial, sans-serif;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(18px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #ffffff14;
  background: #111c;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 13px;
  flex: 0 0 auto;
}

.brand small,
.brand strong { display: block; }
.brand small { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.brand strong { font-size: 16px; }

.voltar,
.admin_link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.container {
  width: min(1120px, 100%);
  margin: auto;
  padding: clamp(28px, 5vw, 52px) clamp(14px, 3vw, 24px) 70px;
}

.hero { margin-bottom: clamp(24px, 4vw, 34px); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; }
.hero p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* Três colunas no computador, duas no tablet e uma no celular. */
.eventos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  align-items: start;
}

.evento {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 30px #0004;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.evento:hover {
  border-color: rgba(240, 184, 74, .38);
  box-shadow: 0 16px 34px #0006;
  transform: translateY(-2px);
}

.capa_abrir {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #242426;
  border-radius: 0;
  overflow: hidden;
}

.capa {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #242426;
  border: 0;
  border-radius: 0;
  transition: transform .25s, filter .25s;
}

.capa_abrir:hover .capa { transform: scale(1.025); filter: brightness(1.08); }
.evento_info { padding: clamp(13px, 2vw, 17px); text-align: center; }
.evento_info h2 { margin: 0 0 7px; font-size: clamp(16px, 2vw, 19px); line-height: 1.2; overflow-wrap: anywhere; }
.evento_info p { margin: 0 0 14px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.abrir_album,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--gold);
  color: #181818;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vazio { padding: 38px 22px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); grid-column: 1 / -1; }
.vazio strong { display: block; color: #fff; margin-bottom: 8px; }

.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: #000e; padding: 55px; }
.modal[hidden] { display: none; }
.modal figure { margin: 0; max-width: min(1000px, 90vw); max-height: 90vh; text-align: center; }
.modal img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; touch-action: pan-y; user-select: none; opacity: 1; transition: opacity .12s ease; }
.modal img.trocando { opacity: .35; }
.modal figcaption { margin-top: 10px; color: #ddd; font-size: 13px; }
.fechar, .navegar { position: fixed; border: 0; color: #fff; background: #ffffff1c; cursor: pointer; }
.fechar { top: 15px; right: 18px; width: 42px; height: 42px; border-radius: 50%; font-size: 30px; }
.navegar { top: 50%; width: 48px; height: 58px; border-radius: 14px; font-size: 44px; }
.anterior { left: 14px; }
.proxima { right: 14px; }

@media (max-width: 820px) {
  .eventos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .topbar { height: 72px; padding: 10px 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8px; }
  .voltar { padding: 8px 11px; font-size: 12px; }
  .eventos { grid-template-columns: 1fr; gap: 16px; }
  .modal { padding: 50px 35px 25px; }
  .navegar { width: 38px; height: 48px; font-size: 36px; }
  .anterior { left: 7px; }
  .proxima { right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .capa { transition: none; }
}
