.container, .region--content-top,
.region--content-bottom,
.region--hero,
.region--secondary-navigation {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.main-container {
  min-height: 100%;
  min-height: calc(100vh - 50px);
  padding-top: 50px;
  padding-bottom: 100px;
  position: relative;
  width: 100%;
}

.region--title {
  position: relative;
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  max-width: 100%;
  z-index: 1;
}

.region--content {
  position: relative;
}

.region--content,
.region--content-bottom,
.region--sidebar-first,
.region--sidebar-second {
  margin-top: 1rem;
}

.layout--with-complementary > .region--content {
  padding-left: 1em;
  padding-right: 1em;
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  max-width: 100%;
}

.region--complementary {
  padding-left: 1em;
  padding-right: 1em;
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  max-width: 100%;
  z-index: 5;
}

.layout--with-two-columns .region--content,
.layout--with-two-columns .region--sidebar-first,
.layout--with-two-columns .region--sidebar-second {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  padding-left: 1em;
  padding-right: 1em;
}

.layout--with-three-columns .region--content,
.layout--with-three-columns .region--sidebar-first,
.layout--with-three-columns .region--sidebar-second {
  padding-left: 1em;
  padding-right: 1em;
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
}

.region--complementary-bottom {
  display: none;
}

.region--complementary-top {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .container, .region--content-top,
  .region--content-bottom,
  .region--hero,
  .region--secondary-navigation {
    max-width: calc(1200px - 2rem);
    padding: 0 1rem;
  }
  .region--title {
    margin-top: 1rem;
  }
  .layout--with-complementary > .region--content {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 66.66667%;
            flex: 0 0 66.66667%;
    max-width: 66.66667%;
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
  }
  .region--complementary {
    margin-top: 1rem;
    -webkit-box-flex: 0;
        -ms-flex: 0 1 33.33333%;
            flex: 0 1 33.33333%;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
    max-width: 33.33333%;
  }
  .layout--with-two-columns .region--content,
  .layout--with-two-columns .region--sidebar-first,
  .layout--with-two-columns .region--sidebar-second {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
    max-width: 50%;
  }
  .layout--with-three-columns .region--content,
  .layout--with-three-columns .region--sidebar-first,
  .layout--with-three-columns .region--sidebar-second {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 33.33333%;
            flex: 0 0 33.33333%;
    max-width: 33.33333%;
  }
  .region--complementary-bottom {
    display: block;
  }
  .region--complementary-top {
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .layout--with-complementary > .region--content {
    padding-left: 0;
  }
  [dir='rtl'] .layout--with-complementary > .region--content {
    padding-right: 0;
    padding-left: 1rem;
  }
  .region--complementary {
    padding-right: 0;
  }
  [dir='rtl'] .region--complementary {
    padding-right: 1em;
    padding-left: 0;
  }
  .layout--with-two-columns .region--content {
    padding-left: 0;
  }
  [dir='rtl'] .layout--with-two-columns .region--content {
    padding-left: 1rem;
    padding-right: 0;
  }
  .layout--with-two-columns .region--sidebar-first,
  .layout--with-two-columns .region--sidebar-second {
    padding-right: 0;
  }
  [dir='rtl'] .layout--with-two-columns .region--sidebar-first, [dir='rtl']
  .layout--with-two-columns .region--sidebar-second {
    padding-right: 1rem;
    padding-left: 0;
  }
  .layout--with-three-columns .region--content {
    padding-left: 0;
  }
  [dir='rtl'] .layout--with-three-columns .region--content {
    padding-left: 1rem;
    padding-right: 0;
  }
  .layout--with-three-columns .region--sidebar-second {
    padding-right: 0;
  }
  [dir='rtl'] .layout--with-three-columns .region--sidebar-second {
    padding-right: 1rem;
    padding-left: 0;
  }
}
