/* ---- Exhibition event page (/exhibitions/<slug>/) ----
   One-off event landing pages (not linked from the main site nav - these
   are shared directly via social/QR code for a specific show). Reuses
   .gallery-grid / .gallery-card from nav-inquire.css for the Featured
   Artworks section rather than duplicating grid styles. */

body:has(.events-page) { background: var(--page-bg); }
body:has(.events-page) .header { background: var(--bg); }

/* Sits outside .events-page (a sibling before <main>), so it spans the
   full window width - exactly, unlike a 100vw breakout, which counts the
   desktop scrollbar and pushes the photo ~7px off center. */
.events-hero { position: relative; }

/* The photo fills the first screen (viewport minus the 73px header) but
   never runs taller than the photo itself; cropped from the bottom only,
   so the ww on the wall and her face always stay in. The hero photo is
   her clean banner (hero_banner_exhibition_page_clean.jpeg - the newest,
   the one she wants; NOT real_HERO), trimmed so the wall ww sits on the
   page's center line, straight down from the nav logo. Its shape is
   1600x1233; keep the numbers below in sync if the photo changes. */
.events-hero__media {
  position: relative;
  height: min(calc(100svh - 73px), calc(100vw * 1233 / 1600));
  overflow: hidden;
}
.events-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.events-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--page-bg) 0%, rgba(0, 0, 0, 0) 28%);
}

/* Eyebrow overlaps the photo's faded bottom edge; WAD logo + dates sit
   below on the page background (her phone mockup, matched within 1-2px). */
.events-hero__content {
  position: relative;
  z-index: 1;
  margin: -64px auto 0;
  padding: 0 32px;
  max-width: 760px;
  text-align: center;
  color: oklch(97% 0.012 80);
}

.events-hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(74% 0.12 45);
  margin: 0 0 14px;
  font-weight: 600;
}

.events-hero__title {
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin: 0 0 12px;
  line-height: 1.05;
}
/* The World Art Dubai logo stands in for the typed title (h1 keeps the
   name via the img's alt). */
.events-hero__title--logo { margin: 4px 0 14px; line-height: 0; }
.events-hero__title--logo img { width: 170px; height: auto; display: inline-block; }

.events-hero__dates {
  font-size: 15px;
  color: oklch(85% 0.02 75);
  margin: 0;
}

.events-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
  color: oklch(90% 0.012 80);
}

.events-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 0 72px;
  text-align: center;
}

.events-intro__text {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.7;
  color: oklch(90% 0.012 80);
  margin: 0;
}

/* Two lines: intro + date, then the stand (bolded so it's easy to find on
   the floor). Balanced so a phone-width wrap doesn't orphan one word; the
   date never splits across lines. */
.events-intro__line { display: block; text-wrap: balance; }
.events-intro__nowrap { white-space: nowrap; }
.events-intro__stand { font-weight: 700; color: oklch(97% 0.012 80); }

.events-featured__heading {
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  /* Phone: whole photo, uncropped, edge to edge (100vw still applies);
     a slightly taller fade, and the eyebrow/logo spacing from her mockup. */
  .events-hero__media { height: auto; }
  .events-hero__media img { position: static; display: block; height: auto; aspect-ratio: 1600 / 1233; }
  .events-hero__media::after { background: linear-gradient(to top, var(--page-bg) 0%, rgba(0, 0, 0, 0) 35%); }
  .events-hero__content { margin-top: -32px; padding: 0 20px; }
  .events-hero__title--logo { margin: 22px 0 20px; }
  .events-hero__title--logo img { width: 117px; }
  .events-page { padding: 0 20px 72px; }
  .events-intro { padding: 40px 0 48px; }
}
