/*
 * Painter's Theme — content presentation rules.
 * Stable selectors for NEWS, VITA and INFO are owned here, not assembled
 * as PHP strings. WordPress Customizer settings supply CSS custom properties
 * via inc/site-customizer.php, preserving every existing option ID.
 */
body .journal-entry .entry-content, body .journal-entry .entry-content p, body .journal-entry .entry-content li, body .journal-entry .editorial-text, body .journal-entry .editorial-text p, body .journal-entry .editorial-text li, body .post-single .editorial-text, body .post-single .editorial-text p, body .post-single .editorial-text li, body .exhibition-text, body .exhibition-text p, body .post-content, body .post-content p, body .info-intro, body .info-intro p {
  font-size: var(--lf-body-text-size,.8125rem) !important;
  line-height: var(--lf-body-text-line,1.52) !important;
}

@media (min-width:761px) {
  body .editorial-layout.has-editorial-image,body .exhibition-layout.has-exhibition-image {
    column-gap: clamp(26px,3vw,48px) !important;
    grid-template-columns: minmax(250px,25fr) minmax(0,45fr) minmax(260px,30fr) !important;
  }

  body .editorial-layout.has-editorial-image .editorial-text,body .exhibition-layout.has-exhibition-image .exhibition-text {
    width: calc(100% - max(0px,calc(var(--lf-news-image-text-target-gap,5rem) - clamp(26px,3vw,48px)))) !important;
    max-width: calc(100% - max(0px,calc(var(--lf-news-image-text-target-gap,5rem) - clamp(26px,3vw,48px)))) !important;
    justify-self: start !important;
  }

  body .editorial-layout .editorial-text p,body .exhibition-layout .exhibition-text p {
    text-align: var(--lf-news-text-align,justify) !important;
    text-align-last: var(--lf-news-text-last-align,center) !important;
  }
}

body .vita-page .vita-content, body .vita-page .vita-content p, body .vita-page .vita-content li, body .vita-page .vita-content dt, body .vita-page .vita-content dd, body .vita-page .vita-content td, body .vita-page .vita-content th, body .vita-page .vita-content .vita-row, body .vita-page .vita-content .vita-row > span {
  font-size: var(--lf-vita-body-size,.8125rem) !important;
  line-height: var(--lf-vita-body-line,1.28) !important;
}

body .vita-content .lf-managed-section-heading {
  font-size: var(--lf-vita-heading-size,.8125rem) !important;
  font-weight: var(--lf-vita-heading-weight,500) !important;
  letter-spacing: var(--lf-vita-heading-spacing,.03em) !important;
  line-height: var(--lf-vita-heading-line,1.25) !important;
  text-transform: var(--lf-vita-heading-transform,capitalize) !important;
}

body .info-page .lf-info-section-heading {
  font-size: var(--lf-info-heading-size,.8125rem) !important;
  font-weight: var(--lf-info-heading-weight,500) !important;
  letter-spacing: var(--lf-info-heading-spacing,.03em) !important;
  line-height: var(--lf-info-heading-line,1.25) !important;
  text-transform: var(--lf-info-heading-transform,capitalize) !important;
}

/* Editorial copy inherits its typography from the content region. */
body .editorial-text p, body .editorial-text li,
body .exhibition-text p, body .exhibition-text li {
  font-family: inherit !important;
}
