/* =========================================================
   Portfolio page (portfolio.html; loads after styles.css)
   ========================================================= */

.events-page .menu-toggle { top: 30px; }

/* ---------- Top bar ---------- */
.ev-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 26px 3.1vw;
  text-align: center;
}
.ev-top__logo {
  display: inline-block;
  font-size: clamp(2.1rem, 4.2vw, 4.6rem);
  color: #fff;
  text-decoration: none;
  transition: color .2s, transform .35s var(--pop);
}
.ev-top__logo:hover, .ev-top__logo:focus-visible { color: var(--red); transform: rotate(-2deg) scale(1.04); }

/* ---------- Hero ---------- */
.ev-hero { padding: clamp(110px, 10vw, 190px) 3.1vw 3vw; }
.ev-back {
  display: inline-block;
  margin-bottom: 2.4vw;
  font-size: clamp(12px, .95vw, 16px);
  letter-spacing: .03em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.ev-back:hover, .ev-back:focus-visible { color: #fff; border-color: var(--red); }

.ev-hero__title {
  font: var(--title);
  color: #f4f4f4;
  letter-spacing: var(--title-track);
  margin-left: -.04em;
}
.ev-hero__row {                 /* title | description | button, on one line */
  display: flex;
  align-items: center;
  gap: 3vw;
}
.ev-hero__row .ev-hero__title { flex: none; }
.ev-hero__lede {
  max-width: 46ch;
  font-size: clamp(14px, 1.25vw, 21px);
  line-height: 1.5;
  color: var(--cream);
}
.ev-hero__row .btn { flex: none; margin-left: auto; padding: 1.45em 2.9em; }

.ev-index {
  margin-top: 4.4vw;
  border-top: 1px solid rgba(216, 198, 164, .35);
}
.ev-index ul { display: flex; flex-wrap: wrap; }
.ev-index a {
  display: block;
  padding: 1.1em 2.4em 1.1em 0;
  font-size: clamp(13px, 1.05vw, 18px);
  letter-spacing: .02em;
  color: var(--cream);
  text-decoration: none;
  transition: color .2s;
}
.ev-index a:hover, .ev-index a:focus-visible { color: var(--sky); }

/* ---------- Event entries ---------- */
.ev-list { padding: 0 3.1vw; }
.event {
  padding: 5.5vw 0 5vw;
  border-top: 1px solid rgba(216, 198, 164, .35);
  scroll-margin-top: 20px;
}
.event__main {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4vw;
  align-items: start;
}
.event:nth-child(even) .event__main { grid-template-columns: 5fr 7fr; }
.event:nth-child(even) .event__cover { order: 2; }

.event__cover,
.tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
}
.event__cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.event__cover:hover img, .event__cover:focus-visible img { transform: scale(1.04); opacity: .85; }

.event__type {
  font-size: clamp(13px, 1.05vw, 18px);
  letter-spacing: .03em;
  color: var(--sky);
  margin-bottom: 1em;
}
.event__title {
  font: 800 clamp(2.1rem, 3.9vw, 4.6rem)/1 var(--f-grotesk);
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: .7em;
}
.event__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1em 2em;
  margin: 0 0 1.8em;
  padding: 1.2em 0;
  border-top: 1px solid rgba(216, 198, 164, .25);
  border-bottom: 1px solid rgba(216, 198, 164, .25);
}
.event__meta dt {
  font-size: clamp(11px, .85vw, 14px);
  letter-spacing: .03em;
  color: rgba(233, 220, 195, .6);
  margin-bottom: .3em;
}
.event__meta dd {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 18px);
  color: var(--cream);
}
.event__desc {
  max-width: 52ch;
  font-size: clamp(14px, 1.1vw, 19px);
  line-height: 1.6;
  color: var(--cream);
}

.event__review {
  margin-top: 2.2em;
  padding: 1.6em 1.8em;
  border: 1px solid var(--sand);
}
.event__review blockquote {
  font: 400 clamp(17px, 1.45vw, 26px)/1.2 var(--f-serif);
  font-feature-settings: "liga", "dlig";
  color: #fff;
}
.event__review figcaption {
  margin-top: 1.2em;
  font-size: clamp(11px, .9vw, 15px);
  line-height: 1.55;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Gallery */
.event__gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 3vw;
}
.tile {
  aspect-ratio: 1;
  transition: transform .4s var(--pop), box-shadow .4s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
button.tile:hover, button.tile:focus-visible {
  position: relative;
  z-index: 1;
  transform: scale(1.06);
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .9);
}
button.tile:hover img { opacity: .85; }
.tile--empty {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px dashed rgba(216, 198, 164, .35);
  cursor: default;
}
.tile--empty span {
  font-size: clamp(10px, .8vw, 13px);
  letter-spacing: .03em;
  color: rgba(233, 220, 195, .5);
  text-align: center;
  padding: 0 1em;
}

/* ---------- Closing call to action ---------- */
.ev-cta {                       /* white panel, like the home page inquiry section */
  padding: 8vw 6vw 9vw;
  text-align: center;
  background: #fff;
  color: var(--ink);
}
.ev-cta__title {
  font: var(--title);
  letter-spacing: var(--title-track);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .35em;
}
.ev-cta p {
  max-width: 44ch;
  margin: 0 auto 2.4em;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.5;
}
.ev-cta .btn { padding: 1.5em 3.6em; font-size: clamp(14px, 1.2vw, 20px); }

.events-page .footer {
  border-top: 1px solid rgba(216, 198, 164, .35);
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 8, 6, .92); }
.lightbox img {
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 17, 14, .92);
  color: #fff;
  cursor: pointer;
  transition: transform .35s var(--pop);
}
.lightbox__close:hover, .lightbox__close:focus-visible { transform: scale(1.12); }
.lightbox__close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox .carousel__arrow--prev { left: 20px; }
.lightbox .carousel__arrow--next { right: 20px; }
.lightbox__nav[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .events-page .menu-toggle { top: 24px; }
  .ev-top { padding: 22px 64px; }              /* equal sides keep the name centered clear of the menu button */
  .ev-top__logo { font-size: min(2.1rem, 8.4vw); }
  .ev-hero { padding: 100px var(--gutter) 24px; }
  .ev-back { margin-bottom: 20px; }
  .ev-hero__row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ev-hero__row .btn { margin-left: 0; }
  .ev-index { margin-top: 36px; }
  .ev-index a { padding: .9em 1.6em .9em 0; }

  .ev-list { padding: 0 var(--gutter); }
  .event { padding: 48px 0; }
  .event__main,
  .event:nth-child(even) .event__main { grid-template-columns: 1fr; gap: 28px; }
  .event:nth-child(even) .event__cover { order: 0; }
  .event__gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }

  .ev-cta { padding: 64px var(--gutter) 72px; }
}
@media (max-width: 560px) {
  .event__gallery { grid-template-columns: repeat(2, 1fr); }
  .event__meta { grid-template-columns: 1fr; }
}
