:root {
  --oxfcms-section--width: clamp(1200px, 93.5%, 1790px);
  --oxfcms-section--gap: var(--space-sm);
}
/* Reset the section width variable at different breakpoints */

@media (width < 1280px) {
  :root {
    --oxfcms-section--width: clamp(700px, 95%, 1200px)
  }
}

@media (width < 768px) {
 :root {
    --oxfcms-section--width: clamp(288px, 90%, 696px)
  }
}
/** Restrict width */
.oxfcms-section,
.oxfcms-layout-flexbox,
.oxfcms-layout-grid,
.is-mercury-edit-mode .paragraph--type--section {
  width: var(--oxfcms-section--width);
  margin: 0 auto;
  .oxfcms-section,
  .oxfcms-layout-flexbox,
  .oxfcms-layout-grid {
    width: 100%;
    margin: 0;
  }
  /** Grid version */
  /** Flexbox does not currently allow any "small width" components */
  /* Match the tile-grid--items-1 class rather than the inline style. A
     [style*=] test inside :has() makes the browser re-check every section
     whenever any inline style changes anywhere inside it, and the editor
     changes inline styles on every hover and selection. */
  &:has(div.tile-grid--items-1 > .oxfcms-text),
  &:has(div.tile-grid--items-1 > .oxfcms-video),
  &:has(div.tile-grid--items-1 > .oxfcms-quotation),
  &:has(div.tile-grid--items-1 > .paragraph--type--oxfcms-tabs),
  &:has(div.tile-grid--items-1 > .paragraph--type--oxfcms-accordion) {
    margin: 0 auto;
  }
}
.oxfcms-layout-flexbox,
.oxfcms-layout-grid {
  .l__main {
    gap: var(--oxfcms-section--gap);
  }
}
  /** Fix flexbox widths in footer */
.oxfcms-footer .oxfcms-layout-flexbox, .oxfcms-footer .oxfcms-layout-grid {
  width: 100%;
  max-width: var(--oxfcms-section--width);
}
