/**
 * @file
 * Grid system definition for the content wide layout.
 */

@import "../base/variables.pcss.css";

.layout--content-medium,
.layout--pass--content-medium > * {
  grid-column: 1 / 7;
  width: 100%;

  @media (--grid-md) {
    grid-column: 2 / 14;
  }

  @media (--lg) {
    grid-column: 3 / 13;
  }
}

/*
  If .layout--content-medium is nested within itself, or an element that's inheriting the
  layout--content-medium styles from its parent region, go full width within its
  parent .grid-full.
*/
.layout--pass--content-medium > *,
.layout--content-medium {
  & .layout--content-medium,
  & .layout--pass--content-medium > * {
    @media (--grid-md) {
      grid-column: 1 / 13;
    }

    @media (--lg) {
      grid-column: 1 / 11;
    }
  }
}
