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

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

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

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

        &:last-child {
          @include span(2 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-2-8-2 {
    // 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-2-8-2 {
    // All regions active.
    &.l-arc--3 {
      > .atl__cw > .atl__lc {
        &:first-child {
          @include span(8 of 12);
          @include push(2 of 12);
        }

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

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