.featured-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 75px auto;
  max-width: $projects-content-width;
  position: relative;

  &.featured-slider--fix-margin {
    margin: 50px auto 50px;
  }

  @include sm {
    overflow: hidden;
    padding-top: 100px;
    margin: 50px auto;
  }

  &__divider {
    width: 1px;
    height: 0px;
    background-color: $gray-border;
    position: absolute;
    top: -100px;
    left: calc(50% - 1px);

    @include sm {
      top: -40px;
    }
  }

  &__container-title {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    @include mdx {
      padding: 0 50px 0 40px;
    }

    @include sm {
      padding: 0 20px;
      width: 100%;
      align-items: center;
      margin: 0 auto;
      justify-content: flex-start;
      height: auto;
      min-height: unset;
    }

    &.featured-slider--center {
      align-self: center;

      * {
        text-align: center;
      }
    }

    &.featured-slider--left {
      align-self: flex-start;

      * {
        text-align: left;
      }
    }

    &.featured-slider--right {
      align-self: flex-end;

      * {
        text-align: right;
      }
    }

    .title-block {
      margin: 0;

      .title-block__subject {
        @include sm {
          text-align: center;
        }
      }

      h2 {
        @include sm {
          text-align: center;
        }
      }

      p {
        @include sm {
          text-align: center;
        }
      }
    }

    h2 {
      color: $primary-color;
      margin: 15px 0;

      @include mdx {
        font-size: 32px;
        line-height: 38px;
      }

      @include sm {
        font-size: 2.6rem;
        line-height: 3rem;
        width: 100%;
        text-align: center;
      }
    }

    p {
      color: $primary-color;
      font-size: 2.1rem;
      margin: 0;

      @include sm {
        font-size: 1.8rem;
        text-align: center;
      }
    }
  }

  &--center {
    padding: 0;
    margin: 80px auto 0;
    align-items: center;

    h2,
    p {
      text-align: center;
    }
  }

  &__wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  &__container {
    margin: 50px auto 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 500px;

    @include mdx {
      max-height: 500px;
    }

    @include sm {
      overflow: unset;
      min-height: 400px;
      display: flex;
      transition: transform 300ms ease-out;
      margin: 10px auto 20px;
    }
  }

  &__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  &__prev {
    margin-right: 20px;
    transform: rotate(90deg);
    cursor: pointer;
    height: 12px;
    width: 12px;
  }

  &__next {
    margin-left: 14px;
    transform: rotate(-90deg);
    cursor: pointer;
    height: 12px;
    width: 12px;
  }

  &--disable {
    opacity: 0.5;
    cursor: default;
  }

  &__dot {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: $gray-border;
    margin-right: 6px;
    cursor: pointer;
  }

  &--active {
    background-color: $primary-color;
  }

  &__container-button {
    position: absolute;
    bottom: -11px;
    right: 22px;
    min-width: 230px;
    text-align: center;
    justify-content: center;

    @include mdx {
      right: 20px;
    }

    @include sm {
      position: relative;
      bottom: unset;
      right: unset;
      margin: 30px auto 0;
    }
  }

  &__desktop {
    @include sm {
      display: none;
    }
  }

  &__mobile {
    display: none;

    @include sm {
      display: flex;
      width: 320px;
    }
  }
}
