/* ===================================================================
   A — Events / Concert Archive page
   Extends /A/styles.css (loaded first): inherits CSS variables, fonts.
   =================================================================== */

body.ev-page {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}
html { overflow-x: hidden; }

/* ---------- topbar ---------- */

.ev-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ev-back {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color .3s var(--ease);
}
@media (hover: hover) { .ev-back:hover { color: var(--gold); } }
.ev-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.ev-brand-script {
  font-family: var(--script);
  font-size: 28px;
  color: var(--gold);
  letter-spacing: .5px;
}
.ev-brand-tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 4px;
}

/* ---------- hero ---------- */

.ev-hero {
  text-align: center;
  padding: 110px 28px 70px;
  max-width: 900px;
  margin: 0 auto;
}
.ev-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  padding-bottom: 14px;
  display: inline-block;
  position: relative;
}
.ev-eyebrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: var(--gold);
}
.ev-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 20px;
}
.ev-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-mute);
  margin: 0;
}

/* ---------- layout ---------- */

.ev-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 40px 60px;
}

.ev-year-section { margin-bottom: 90px; }

.ev-year {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: var(--gold);
  margin: 0 0 40px;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.ev-year::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  height: 2px;
  background: var(--gold);
}

/* ---------- card grid ---------- */

.ev-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ev-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
@media (hover: hover) {
  .ev-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
  }
}
.ev-card-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ev-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .6s var(--ease-2);
}
@media (hover: hover) {
  .ev-card:hover .ev-card-media img { transform: scale(1.04); }
}

.ev-card-body {
  padding: 20px 22px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.ev-date {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.ev-date-md { font-weight: 500; }
.ev-sep {
  color: var(--ink-dim);
  margin: 0 4px;
}
.ev-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 10px;
}
.ev-venue {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 6px;
  line-height: 1.5;
}
.ev-location {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}

/* ---------- footer ---------- */

.ev-footer {
  text-align: center;
  padding: 60px 28px 50px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.ev-footer-line {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 14px;
}
.ev-footer-cta a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .ev-cards { grid-template-columns: 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
  .ev-wrap  { padding: 20px 28px 50px; }
  .ev-card  { grid-template-columns: 200px 1fr; }
}

@media (max-width: 640px) {
  .ev-topbar { padding: 14px 18px; }
  .ev-hero   { padding: 70px 18px 40px; }
  .ev-wrap   { padding: 10px 18px 40px; }
  .ev-year   { margin-bottom: 24px; padding-bottom: 14px; }
  .ev-year-section { margin-bottom: 60px; }
  .ev-card   { grid-template-columns: 1fr; gap: 0; }
  .ev-card-media {
    aspect-ratio: auto;
    background: var(--bg);
  }
  .ev-card-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: none;
  }
  .ev-card-body  { padding: 22px 22px 24px; }
  .ev-brand-script { font-size: 22px; }
  .ev-brand-tag { display: none; }
}

/* Topbar brand is a link back to the main page — strip default <a> styling */
a.ev-brand { color: inherit; text-decoration: none; cursor: pointer; }
a.ev-brand:hover .ev-brand-script { color: var(--gold-hi); }

/* ---------- card media as link (click to open lightbox) ---------- */

a.ev-card-media {
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
}
a.ev-card-media:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* ---------- lightbox ---------- */

.ev-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 28px 48px;
  box-sizing: border-box;
  cursor: zoom-out;
}
.ev-lightbox.is-open {
  display: flex;
  animation: ev-lb-fade .25s var(--ease);
}
@keyframes ev-lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ev-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.ev-lightbox-caption {
  margin: 20px 0 0;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  max-width: 720px;
  cursor: default;
}
.ev-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.ev-lightbox-close:hover,
.ev-lightbox-close:focus-visible {
  opacity: 1;
  color: var(--gold);
  outline: none;
}

@media (max-width: 640px) {
  /* Images already render full-width here — no zoom needed. */
  a.ev-card-media { cursor: default; }
}
