:root {
  --bg: #0b0b0c;
  --panel: #121214;
  --line: #27272a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --soft: #18181b;
  --accent: #ffffff;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(11,11,12,.82);
  backdrop-filter: blur(18px);
}
.brand { font-weight: 800; letter-spacing: .14em; font-size: .82rem; }
.site-header nav a { color: var(--muted); font-size: .92rem; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: clamp(64px, 11vw, 132px) 0 58px; max-width: 760px; }
.hero h1, .panel h1 { margin: 8px 0 14px; font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: .97; letter-spacing: -.055em; }
.panel h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.eyebrow { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 13px; cursor: pointer;
}
.chip.active { background: var(--text); color: #111; border-color: var(--text); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding-bottom: 90px; }
.event-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); transition: transform .2s ease, border-color .2s ease; }
.event-card:hover { transform: translateY(-3px); border-color: #46464d; }
.cover { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.event-card:hover .cover img { transform: scale(1.02); }
.card-meta { padding: 16px; }
.card-date { color: var(--muted); font-size: .8rem; }
.card-meta h2 { margin: 6px 0 7px; font-size: 1.08rem; }
.card-meta p { margin: 0; color: var(--muted); font-size: .87rem; }
.empty { border: 1px dashed var(--line); border-radius: 18px; padding: 50px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
.footer { padding: 28px 20px 50px; text-align: center; color: var(--muted); font-size: .82rem; }
.event-heading { padding: 64px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.event-heading h1 { margin: 4px 0 10px; font-size: clamp(2.2rem, 6vw, 4.8rem); letter-spacing: -.05em; }
.event-heading p { margin: 5px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding-bottom: 80px; }
.photo-card { position: relative; border: 0; padding: 0; background: var(--soft); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.photo-card img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-card::after { content: "View"; position: absolute; inset: auto 10px 10px auto; background: rgba(0,0,0,.6); padding: 6px 9px; border-radius: 999px; font-size: .75rem; opacity: 0; transition: opacity .2s ease; }
.photo-card:hover::after { opacity: 1; }
.lightbox { width: min(1100px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #0c0c0e; color: var(--text); }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.lightbox > img { width: 100%; max-height: 75vh; object-fit: contain; background: #050505; }
.icon-button { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.55); color: white; font-size: 1.4rem; cursor: pointer; }
.lightbox-actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 11px 16px; background: var(--text); color: #111; font-weight: 750; cursor: pointer; }
.admin-shell { max-width: 860px; padding: 64px 0 100px; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: clamp(22px, 5vw, 44px); }
label { display: grid; gap: 7px; color: #d4d4d8; font-size: .88rem; margin-top: 18px; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #0c0c0e; color: var(--text); padding: 11px 12px; outline: none; }
input:focus, textarea:focus { border-color: #5b5b63; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.panel .button { margin-top: 22px; }
.status { margin-top: 14px; min-height: 1.3em; color: var(--muted); white-space: pre-wrap; }
@media (max-width: 820px) {
  .event-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .event-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar, .lightbox-actions { align-items: flex-start; flex-direction: column; }
  .lightbox-actions .button { width: 100%; }
}
