/* hero (templates/components/hero.html). Layout variants live in the templates'
 * stylesheets; this is the shared structure: a cover image under a scrim band, a
 * solid brand block, or a collage of the event's photos. */

.hero {
  position: relative;
  min-height: var(--hero-min);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-hero);
  color: var(--on-hero);
}
.hero--cover, .hero--collage { color: var(--on-scrim); }
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Only photos need the scrim; the solid block is already a flat, safe ground. */
.hero__scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: -1;
  height: 170px;
  background: linear-gradient(to top, var(--scrim-strong), var(--scrim) 55%, transparent);
}
.hero__scrim--full { top: 0; height: auto; background: var(--scrim); }

.hero__collage {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;
  background: var(--brand-hero);
}
.hero__collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__collage--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hero__collage--3 img:first-child { grid-row: span 2; }
.hero__collage--4 { grid-template-columns: 1fr 1fr; }
.hero__collage--5 img:first-child { grid-column: span 2; grid-row: span 2; }

.hero__logo {
  position: absolute;
  top: 16px; left: var(--gutter);
  width: 44px; height: 44px;
  padding: 4px;
  border-radius: var(--r-tile);
  background: var(--logo-plate);
  object-fit: contain;
}
.hero__logo--monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--logo-plate);
  color: var(--on-logo-plate);
  font: var(--heading-weight) 14px/1 var(--display);
  letter-spacing: 0.02em;
}
/* A light logo (hero.logo_light): the dark plate. */
.hero .is-light { background: var(--logo-plate-dark); }
/* show_logo="inline": the logo in the body, its height fixed and its width its own. */
.hero__emblem {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(240px, 100%);
  margin: 0 0 14px;
  padding: 6px;
  border-radius: var(--r-tile);
  background: var(--logo-plate);
  object-fit: contain;
}
.hero__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: var(--heading-weight) 24px/1 var(--display);
}
.hero__body { position: relative; }
.hero__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-pale);
}
.hero--cover .hero__eyebrow, .hero--collage .hero__eyebrow,
.hero--cover .hero__date, .hero--collage .hero__date { color: var(--on-scrim-soft); }
.hero__title { margin: 4px 0 2px; font-size: var(--title-size); line-height: 1.1; color: inherit; }
.hero__date { margin: 0; font-size: 14px; color: var(--brand-pale); }

@media (min-width: 900px) {
  .hero__eyebrow { font-size: 13px; }
  .hero__date { font-size: 15px; }
  .hero__scrim { height: 190px; }
  .hero__logo { width: 52px; height: 52px; top: 24px; }
}
