/*
 * @file
 * Provides the layout styles for two-column layout section.
 */

@import "../base/media-queries.pcss.css";

.layout--twocol-section {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: var(--layout-twocol-grid);

  & > .layout__region--first {
    grid-column: var(--layout-twocol-grid__first);
  }

  & > .layout__region--second {
    grid-column: var(--layout-twocol-grid__second);
  }
}

@media (--md) {
  .layout--twocol-section--50-50 {
    --layout-twocol-grid: repeat(2, minmax(0, 1fr));
  }

  .layout--twocol-section--33-67 {
    --layout-twocol-grid: repeat(3, minmax(0, 1fr));
    --layout-twocol-grid__second: span 2;
  }

  .layout--twocol-section--67-33 {
    --layout-twocol-grid: repeat(3, minmax(0, 1fr));
    --layout-twocol-grid__first: span 2;
  }

  .layout--twocol-section--25-75 {
    --layout-twocol-grid: repeat(4, minmax(0, 1fr));
    --layout-twocol-grid__second: span 3;
  }

  .layout--twocol-section--75-25 {
    --layout-twocol-grid: repeat(4, minmax(0, 1fr));
    --layout-twocol-grid__first: span 3;
  }
}
