.team-block {
  position: relative;
  padding: 100px $half-gutter 64px;
  background-color: $gray-bluish;
  overflow: hidden;

  @include sm {
    padding: 56px $gutter-mobile 32px;
  }

  &__wrapper {
    width: 100%;
    max-width: $max-width;
    margin: 0 auto;
    padding: 0 $half-gutter;

    @include sm {
      padding: 0;
    }
  }

  &__slider {
    overflow: visible;
    width: calc(100% / 12 * 10);
    margin: 56px auto 0;

    @include md {
      width: 100%;
    }

    @include sm {
      margin-top: 32px;
    }
  }

  .swiper-slide {
    display: flex;
    flex-direction: column;
    width: 236px;
  }

  &__member {
    position: relative;
    margin: 30px 0 24px;
    height: 280px;
  }

  &__member-image {
    height: 100%;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
    }
  }

  &__member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(30,53,92,0) 0%, rgba(30,53,92,0.6) 100%);
    color: $white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 16px 16px;
  }

  &__member-name {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.4rem;
    margin-bottom: 1px;

  }

  &__slider-nav.swiper-scrollbar {
    position: relative;
    margin: 16px auto 0;
    left: 0;
    width: 88%;
    max-width: 674px;
    background-color: rgba(30, 53, 92, 0.2);
    height: 1px;

    .swiper-scrollbar-drag {
      height: 3px;
      top: -1px;
      border-radius: 0;
      background-color: $primary-color;
    }
  }

  &__cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 32px;

    .std-button {
      min-width: 270px;

      @include sm {
        width: 100%;
        max-width: 400px;
      }
    }
  }

  &__member-label {
    position: absolute;
    top: -29px;
    left: 0;
    white-space: nowrap;
    line-height: 29px;
    color: $white;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0 8px;
    background: $primary-color;

    &.team-group__member-label--vivid-blue {
      background: $blue;
    }

    &.team-group__member-label--orange {
      background: $topic-orange;
    }

    &.team-group__member-label--yellow {
      background: $yellow;
    }

    &.team-group__member-label--green {
      background: $topic-green;
    }
  }
}
