html {
  font-size: 18px;
  background-color: $ami-light-beige;

  &.prevent-scrolling,
  &.prevent-scrolling body {
    overflow: hidden;
  }
}

body {
  display: flex;
  min-height: calc(100vh - (0.888 * 2));
  margin: 0.888rem;
  flex-direction: column;
  background-color: $light-black;
  padding-top: 0;
  position: relative;
}

main {
  &.main-container {
    flex: 1;
    min-height: calc(100vh - 2rem);
    display: flex;
  }

  @include until($desktop) {
    padding: 4.4445rem 0.6667rem 0 0.6667rem;
  }

  @include tablet-only {
    padding-left: 1.6667rem;
    padding-right: 1.6667rem;
  }
}

header {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 2.222rem;
  z-index: 10;

  @include tablet-only {
    padding: 0 0.666rem;
  }

  @include mobile {
    padding: 0;
  }
}

@include touch {
  body {
    padding: 0;
    margin: 0;
  }
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  // Padding to secure top navigation not being overlapped
  padding-top: 6.6667rem;

  @include until($desktop) {
    padding-top: 0;
  }

  &.story-container {
    padding-bottom: 8.3334rem;
  }
}

.block {
  &.free-content {
    width: 100%;
    max-width: 48.5rem;
    margin: 0 auto;
    padding-left: 0.8889rem;
    padding-right: 0.8889rem;
    padding-bottom: 10.2223rem;

    @include until($desktop) {
      padding-left: 0;
      padding-right: 0;
      padding-bottom: 4.4445rem;
    }

    h1 {
      font-size: 3.3334rem;
      line-height: 3.6667rem;
      margin-bottom: 1.6667rem;

      @include mobile {
        font-size: 1.5rem;
        line-height: 1.9445rem;
        margin-bottom: 1.1112rem;
      }
    }

    h2 {
      margin-bottom: 1.611rem;
      word-wrap: break-word;

      @include until($desktop) {
        margin-bottom: 1.111rem;
      }
    }

    h4 {
      margin-bottom: 3.5rem;

      @include until($desktop) {
        margin-bottom: 2.222rem;
      }
    }

    p {
      font-size: 0.8889rem;

      strong {
        color: $ami-white;
      }
    }
  }
}

.column.is-11-of-24 {
  @include from($desktop) {
    width: (3 / 12) * 100%;
  }

  @include from($fullhd) {
    width: (11 / 24) * 100%;
  }
}

.column.is-13-of-24 {
  @include from($desktop) {
    width: (9 / 12) * 100%;
  }

  @include from($fullhd) {
    width: (13 / 24) * 100%;
  }
}

.is-offset-1-of-24 {
  margin-left: (1 / 24) * 100%;

  @include until($desktop) {
    margin-left: 0;
  }
}

.split-layout {
  width: 100%;

  & > .columns {
    margin: 0;
    width: 100%;
    height: 100%;
  }

  .left-image-container {
    background-image: url('../images/left-image.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .right-content-container {
    padding-top: 5rem;
    padding-right: 2.444rem;
    padding-bottom: 2.222rem;
    padding-left: 0;

    @include from($widescreen) {
      padding-top: 7rem;
    }

    @include until($desktop) {
      padding: 0;
      padding-bottom: 2.222rem;
    }
  }

  h1 {
    font-size: 3.3334rem;
    line-height: 3.6667rem;
    margin-bottom: 0.6667rem;

    @include mobile {
      font-size: 2.6667rem;
      line-height: 3rem;
    }
  }

  .subtitle {
    font-family: $font-tgn-condensed;
    font-size: 1.333rem;
    color: #b4b4b4;
    line-height: 1.667rem;
    margin: 0;

    @include mobile {
      font-size: 1.111rem;
      line-height: 1.444rem;
    }
  }
}

.page-subtitle {
  font-family: $font-tgn-condensed;
  font-size: 1.3334rem;
  color: $light-grey;
  line-height: 1.6667rem;
}

.lazyload {
  filter: blur(15px);

  &.image-loaded {
    filter: none;
    transition: filter 1s;
  }
}
