@import "plugin-layout-base";
//
// Three Regions 3-6-3 (content source ordered layout)
//
// First region  : 3 grid columns.
// Second region : 6 grid columns.
// Third region  : 3 grid columns.
// -----------------------------------------------------------------------------

.bp--at-core-simple-tablet-isolate,
.bp--at-core-simple-wide {
  .atl--threecol-3-6-3 {
    // Region first and second are active.
    &.l-ac--1-2 {
      > .atl__cw > .atl__lc {
        &:first-child {
          @include span(9 of 12 last);
        }

        &:last-child {
          @include span(3 of 12);
        }
      }
    }

    // Region first and third are active.
    &.l-ac--1-3 {
      > .atl__cw > .atl__lc {
        &:first-child {
          @include span(9 of 12);
        }

        &:last-child {
          @include span(3 of 12 last);
        }
      }
    }

    // Region second and third are active.
    &.l-ac--2-3 {
      > .atl__cw > .atl__lc {
        @include span(6 of 12);

        &:last-child {
          @include last;
        }
      }
    }
  }
}

.bp--at-core-simple-tablet-isolate {
  .atl--threecol-3-6-3 {
    // All regions active.
    &.l-arc--3 {
      > .atl__cw > .atl__lc {
        &:nth-child(2),
        &:last-child {
          @include span(6 of 12);
        }

        &:first-child,
        &:last-child {
          @include last;
        }
      }
    }
  }
}

.bp--at-core-simple-wide {
  .atl--threecol-3-6-3 {
    // All regions active.
    &.l-arc--3 {
      > .atl__cw > .atl__lc {
        &:first-child {
          @include span(6 of 12);
          @include push(3 of 12);
        }

        &:nth-child(2) {
          @include span(3 of 12);
          @include pull(9 of 12);
        }

        &:last-child {
          @include span(3 of 12 last);
        }
      }
    }
  }
}

