/* ==========================================================================
   Default page template — content width constraint.
   ========================================================================== */

.page-content {
  padding-block: var(--ovelia-spacing-step-12) var(--ovelia-spacing-step-24);
}

.page-content--hero-first {
  padding-block-start: 0;
}

/*
 * Constrain everything except ACF section blocks, which manage their own
 * internal max-width/padding/background and expect to render edge-to-edge,
 * as they do directly inside <main> on the "Ovelia Blocks" template. Every
 * ACF block carries a wp-block-acf-* class via get_block_wrapper_attributes().
 */
.page-content > :not([class*="wp-block-acf-"]) {
  width:          min(100%, var(--ovelia-layout-max-width));
  margin-inline:  auto;
  padding-inline: var(--ovelia-layout-side-padding);
}

.page-content__title {
  margin: 0 0 var(--ovelia-spacing-step-8);
}
