.thb-categorylinks {
  &.align-center {
    text-align: center;
  }
  &.style1 {
    .tag-cloud-link {
      margin: 0 10px 10px 0;
    }
    &.align-center {
      .tag-cloud-link {
        margin: 0 5px 10px;
      }
    }

  }
  &.style2 {
    a {
      display: inline-block;
      margin: 0 13px;
      font-size: 13px;
      position: relative;
      &:after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 1px;
        background: $accent;
        transform-origin: 0 0;
        @extend .quick-transition;
        @include scale(0,1);
      }
      &:hover {
        &:after {
          @include scale(1,1);
        }
      }
    }
  }
  &.style3 {
    .category-link-style3 {
      display: block;
      margin-bottom: 20px;
      &:hover {
        figure {
          img {
            @include scale(1.03,1.03);
          }
        }
      }
    }
    figure {
      display: block;
      width: 90px;
      height: 90px;
      margin: 0 auto 20px;
      border-radius: 50px;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        @include scale(1,1);
        @extend .mid-transition;

      }
    }
    .category-title {
      font-size: 11px;
      font-weight: 500;
      text-transform: uppercase;
    }
  } // .style3
  &.style4 {
    .category-link-style4 {
      margin-bottom: 25px;
      display: block;
      &:hover {
        figure {
          img {
            @include scale(1.03,1.03);
          }
        }
      }
    }
    figure {
      display: block;
      width: 90px;
      height: 90px;
      margin: 0 auto 20px;
      border-radius: 80px;
      overflow: hidden;
      @include min-break($break-small) {
        width: 160px;
        height: 160px;
        margin: 0 auto 25px;
      }
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        @include scale(1,1);
        @extend .mid-transition;

      }
    }
    .category-title {
      display: block;
      font-size: 16px;
      font-weight: 600;
    }
    .category-count {
      display: block;
      font-size: 12px;
      font-weight: 400;
    }
  } // .style4
}

.thb-category-card {
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: #fff;
  width: 300px;
  margin: 20px 13px;
  border-radius: 6px;
  will-change: transform;
  @include box-shadow(0 4px 14px rgba($black,0.12));
  @extend .mid-transition;
  &:hover {
    background: $accent;
    @include translateY(-20px);
    @include box-shadow(0 11px 58px rgba($black,0.2));

    .category-title {
      color: #fff;
    }
  }
  figure {
    border-radius: 3px 3px 0 0;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 3px;
    }
  }
  .category-title {
    display: block;
    text-align: center;
    padding: 9px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: $black;
    @include min-break($break-small) {
      padding: 19px 10px;
    }
  }
}