.aag-layout .aag-node {
  color: var(--black);
}

.aag-layout .aag-node__container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.aag-layout .aag-node__container--narrow {
  width: min(860px, calc(100% - 3rem));
}

.aag-layout .aag-node-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #111;
  color: var(--white);
}

@media (min-width: 600px) {
  .aag-layout .aag-node-hero {
    min-height: 75vh;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node-hero {
    min-height: 80vh;
  }
}

.aag-layout .aag-node-hero__media,
.aag-layout .aag-node-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aag-layout .aag-node-hero__media img {
  object-fit: cover;
}

.aag-layout .aag-node-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/*
 * Exhibition variant uses a stronger bottom gradient so hero text stays
 * readable over bright hero images (e.g. sunlit interiors where the
 * default 0.7 opacity isn't enough).
 */
.aag-layout .aag-node-hero--exhibition .aag-node-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.aag-layout .aag-node-hero__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

/*
 * Explicit white colors on hero text elements. Required because
 * aag-base.css sets `.aag-layout h1 { color: var(--black) }` and
 * `.aag-layout p { color: var(--black) }` at higher specificity than
 * color inheritance from `.aag-node-hero { color: var(--white) }`.
 * Reference hero-exhibition-item.css sets these explicitly too.
 *
 * NOTE: `.aag-node-hero__*` is used by the exhibition detail page (white
 * text over a dark image overlay) while `.aag-node-header__*` is used by
 * the collection detail page (a split card sitting on the light offwhite
 * body background). Shared typography, but the header variant must stay
 * dark — previously these two were unioned and the collection title
 * disappeared against the light background.
 */
.aag-layout .aag-node-hero__eyebrow {
  margin: 0 0 0.875rem;
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aag-layout .aag-node-header__eyebrow {
  margin: 0 0 0.875rem;
  color: var(--black);
  font-family: var(--header-font-family);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.aag-layout .aag-node-hero__title {
  margin: 0;
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.aag-layout .aag-node-header__title {
  margin: 0;
  color: var(--black);
  font-family: var(--header-font-family);
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

/*
 * Exhibition-specific hero title: mixed-case, light weight, sized to match
 * aag-base/components/hero-exhibition-item/hero-exhibition-item.css.
 */
.aag-layout .aag-node-hero--exhibition .aag-node-hero__title {
  font-size: 1.75rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

@media (min-width: 600px) {
  .aag-layout .aag-node-hero--exhibition .aag-node-hero__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .aag-node-hero--exhibition .aag-node-hero__title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node-hero--exhibition .aag-node-hero__title {
    font-size: 3.25rem;
  }
}

/*
 * Exhibition hero content: offset to the right of the sidebar at desktop
 * so the text appears in the main column. Bottom padding is modest since
 * the body card no longer overlaps the hero — the card sits cleanly
 * below the hero at its lower edge.
 */
@media (min-width: 600px) {
  .aag-layout .aag-node-hero--exhibition .aag-node-hero__content {
    padding: 2rem 2.5rem 3rem 3rem;
    margin-left: 310px;
  }
}

@media (min-width: 900px) {
  .aag-layout .aag-node-hero--exhibition .aag-node-hero__content {
    margin-left: 330px;
    padding-left: 3rem;
    padding-bottom: 4rem;
    max-width: 700px;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node-hero--exhibition .aag-node-hero__content {
    margin-left: 359px;
    padding: 3rem 3rem 5rem 3rem;
    max-width: 700px;
  }
}

.aag-layout .aag-node-hero__meta,
.aag-layout .aag-node-hero__submeta {
  margin: 1rem 0 0;
  color: var(--white);
  font-family: var(--body-font-family);
  font-size: 0.98rem;
  line-height: 1.6;
}

.aag-layout .aag-node-header__meta {
  margin: 1rem 0 0;
  color: var(--black);
  font-family: var(--body-font-family);
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Artist name links to the artist profile page (update 10051): same look as
   the plain name, underline to show it is a link. */
.aag-layout .aag-node-header__artist-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.aag-layout .aag-node-header__artist-link:hover,
.aag-layout .aag-node-header__artist-link:focus-visible {
  opacity: 1;
  text-decoration-thickness: 2px;
}

.aag-layout .aag-node-header {
  margin-bottom: 2rem;
}

.aag-layout .aag-node__lede,
.aag-layout .aag-node__richtext,
.aag-layout .aag-node-profile__body {
  font-family: var(--body-font-family);
  font-size: 1rem;
  line-height: 1.8;
}

.aag-layout .aag-node__lede {
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}

.aag-layout .aag-node__richtext > *:first-child,
.aag-layout .aag-node-profile__body > *:first-child {
  margin-top: 0;
}

.aag-layout .aag-node__richtext > *:last-child,
.aag-layout .aag-node-profile__body > *:last-child {
  margin-bottom: 0;
}

.aag-layout .aag-node-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.aag-layout .aag-node-gallery__item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-gray);
}

.aag-layout .aag-node-gallery__item img,
.aag-layout .aag-node-artwork img,
.aag-layout .aag-node-featured-image img,
.aag-layout .aag-node-author__image img,
.aag-layout .aag-node-profile__image img,
.aag-layout .aag-node-profile-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aag-layout .aag-node-cta {
  margin-top: 2rem;
}

.aag-layout .aag-node-split {
  display: grid;
  gap: 2rem;
}

.aag-layout .aag-node-split--collection {
  align-items: start;
}

.aag-layout .aag-node-split__aside,
.aag-layout .aag-node-profile-card {
  border: 1px solid var(--gray);
  background: var(--offwhite);
}

.aag-layout .aag-node-split__aside {
  padding: 1.5rem;
}

.aag-layout .aag-node-profile__image,
.aag-layout .aag-node-author__image {
  margin: 0 0 1rem;
  width: 8.5rem;
  aspect-ratio: 1;
  overflow: hidden;
}

.aag-layout .aag-node-profile__name,
.aag-layout .aag-node-author__name {
  margin: 0 0 1rem;
  font-family: var(--header-font-family);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.aag-layout .aag-node-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.aag-layout .aag-node-author__image {
  margin: 0;
  width: 4.5rem;
}

.aag-layout .aag-node-featured-image {
  margin: 0 0 2rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-gray);
}

.aag-layout .aag-node-artwork {
  margin: 0;
  background: var(--light-gray);
}

.aag-layout .aag-node-meta-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.aag-layout .aag-node-meta-list div {
  display: grid;
  gap: 0.15rem;
}

.aag-layout .aag-node-meta-list dt {
  font-family: var(--header-font-family);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aag-layout .aag-node-meta-list dd {
  margin: 0;
  font-family: var(--body-font-family);
}

.aag-layout .aag-node-profile-card {
  display: grid;
}

.aag-layout .aag-node-profile-card__image {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.aag-layout .aag-node-profile-card__content {
  padding: 1.5rem;
}

.aag-layout .aag-node-profile-card__details {
  margin: 1rem 0 0;
  font-family: var(--body-font-family);
  line-height: 1.7;
}

@media (min-width: 900px) {
  .aag-layout .aag-node__container {
    padding: 4rem 0 5rem;
  }

  .aag-layout .aag-node-split {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  }

  .aag-layout .aag-node-split--collection {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  }

  .aag-layout .aag-node-profile-card {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  }

  .aag-layout .aag-node-profile-card__image {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

/* ─── Exhibition node: white content card below the hero ────────────────── */

/*
 * Override the generic .aag-node__container for exhibition nodes.
 * The container is white and spans the full article width (outer box
 * has no max-width; centering is applied to the inner card). The card
 * sits directly below the hero — no overlap — so the hero text stays
 * unobscured and the body reads as a clean continuation.
 */
.aag-layout .aag-node--exhibition .aag-node__container {
  background-color: var(--white);
  position: relative;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .aag-layout .aag-node--exhibition .aag-node__container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem 3rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .aag-node--exhibition .aag-node__container {
    max-width: 950px;
    padding: 3rem 2rem 3rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node--exhibition .aag-node__container {
    max-width: 1000px;
    padding: 3.5rem 2rem 3.5rem;
  }
}

/* Exhibition body / lede text: constrained width, body-font sizing */
.aag-layout .aag-node--exhibition .aag-node__lede,
.aag-layout .aag-node--exhibition .aag-node__richtext {
  max-width: 700px;
}

.aag-layout .aag-node--exhibition .aag-node__richtext p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.aag-layout .aag-node--exhibition .aag-node__richtext p:last-child {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .aag-layout .aag-node--exhibition .aag-node__richtext p {
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node--exhibition .aag-node__richtext p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
}

/* Event body richtext typography — mirrors exhibition richtext rules */
.aag-layout .aag-node--event .aag-node__richtext p,
.aag-layout .aag-node--event .aag-node-profile__body p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.aag-layout .aag-node--event .aag-node__richtext p:last-child,
.aag-layout .aag-node--event .aag-node-profile__body p:last-child {
  margin-bottom: 0;
}

.aag-layout .aag-node--event .aag-node__richtext h2,
.aag-layout .aag-node--event .aag-node__richtext h3,
.aag-layout .aag-node--event .aag-node__richtext h4 {
  font-family: var(--heading-font-family, var(--body-font-family));
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  line-height: 1.25;
}

.aag-layout .aag-node--event .aag-node__richtext h2 { font-size: 1.25rem; }
.aag-layout .aag-node--event .aag-node__richtext h3 { font-size: 1.1rem; }
.aag-layout .aag-node--event .aag-node__richtext h4 { font-size: 1rem; }

.aag-layout .aag-node--event .aag-node__richtext ul,
.aag-layout .aag-node--event .aag-node__richtext ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.aag-layout .aag-node--event .aag-node__richtext li {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.aag-layout .aag-node--event .aag-node__richtext a {
  color: inherit;
  text-decoration: underline;
}

.aag-layout .aag-node--event .aag-node__richtext strong { font-weight: 700; }
.aag-layout .aag-node--event .aag-node__richtext em { font-style: italic; }

.aag-layout .aag-node--event .aag-node__richtext blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid currentColor;
  opacity: 0.7;
  font-style: italic;
}

@media (min-width: 600px) {
  .aag-layout .aag-node--event .aag-node__richtext p,
  .aag-layout .aag-node--event .aag-node-profile__body p {
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node--event .aag-node__richtext p,
  .aag-layout .aag-node--event .aag-node-profile__body p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
}

/*
 * Bottom sections wrapper: tour-showcase, exhibitions-grid, contact.
 * Renders below the main content card on detail pages (aag_exhibition
 * and aag_collection) with breathing room between each component.
 * The nested aag-layout wrappers in each block template bring their
 * own background, so we don't force one here.
 */
.aag-layout .aag-node__sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 1.5rem;
}

@media (min-width: 600px) {
  .aag-layout .aag-node__sections {
    gap: 3rem;
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .aag-node__sections {
    gap: 3.5rem;
    padding: 3rem 2rem 4rem;
  }
}

/* Exhibition gallery: full-width strip below the body text */
.aag-layout .aag-node--exhibition .aag-node-gallery {
  margin-top: 2.25rem;
  padding: 0 0 2.5rem;
}

@media (min-width: 600px) {
  .aag-layout .aag-node--exhibition .aag-node-gallery {
    margin-top: 2.5rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .aag-node--exhibition .aag-node-gallery {
    margin-top: 3rem;
    padding-bottom: 3.25rem;
  }
}

/* ─── Event node: event-content layout ─────────────────────────────── */

.aag-layout .aag-node-hero--event {
  min-height: 62vh;
}

@media (min-width: 600px) {
  .aag-layout .aag-node-hero--event {
    min-height: 70vh;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node-hero--event {
    min-height: 75vh;
  }
}

/* Softer gradient — same as event-content.css */
.aag-layout .aag-node-hero--event .aag-node-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* Light-weight mixed-case title (event-content.css) */
.aag-layout .aag-node-hero--event .aag-node-hero__title {
  font-size: 1.75rem;
  font-weight: 300;
  text-transform: none;
  line-height: 1.15;
}

@media (min-width: 600px) {
  .aag-layout .aag-node-hero--event .aag-node-hero__title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node-hero--event .aag-node-hero__title {
    font-size: 3rem;
  }
}

/* Hero content: offset right to clear the sticky sidebar */
@media (min-width: 600px) {
  .aag-layout .aag-node-hero--event .aag-node-hero__content {
    padding: 2rem 2.5rem 3rem 3rem;
    margin-left: 310px;
  }
}

@media (min-width: 900px) {
  .aag-layout .aag-node-hero--event .aag-node-hero__content {
    margin-left: 330px;
    padding-left: 3rem;
    padding-bottom: 8rem;
    max-width: 720px;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node-hero--event .aag-node-hero__content {
    margin-left: 359px;
    padding: 3rem 3rem 8rem 3rem;
    max-width: 720px;
  }
}

/* White body panel sits over the hero bottom edge */
.aag-layout .aag-node--event .aag-node__container {
  background-color: var(--white);
  position: relative;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Event split: padding + hero overlap + 2-col grid (body | speaker) */
.aag-layout .aag-node--event .aag-node-split--event {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 600px) {
  .aag-layout .aag-node--event .aag-node-split--event {
    padding: 2.5rem 2rem;
    margin-top: -4.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2.5rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .aag-node--event .aag-node-split--event {
    max-width: 950px;
    padding: 3rem;
    margin-top: -6rem;
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (min-width: 1200px) {
  .aag-layout .aag-node--event .aag-node-split--event {
    max-width: 1000px;
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/* Speaker aside: override generic border/bg, center content */
.aag-layout .aag-node--event .aag-node-speaker {
  border: none;
  background: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circular speaker portrait */
.aag-layout .aag-node--event .aag-node-profile__image {
  border-radius: 999px;
  width: 92px;
  height: 92px;
  margin: 0 auto 1.25rem;
  aspect-ratio: 1;
}

@media (min-width: 600px) {
  .aag-layout .aag-node--event .aag-node-profile__image {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
  }
}

.aag-layout .aag-node--event .aag-node-profile__name {
  font-size: 0.95rem;
  text-transform: uppercase;
  text-align: center;
}
