.et-listing-wrapper {

  counter-reset: et-listing;
  display: flex;

  &.et-layout-imageText {
    .et-listing-image {
      order: initial;
      margin-bottom: $grid-gutter-width / 2;
      @include media-breakpoint-up(lg) {
        margin-bottom: 0;
      }
    }
  }

  &.et-layout-textImage {
    .et-listing-image {
      order: 2;
      margin-top: $grid-gutter-width / 2;
      @include media-breakpoint-up(lg) {
        margin-top: 0;
      }
    }
  }

  .et-listing-image {
    display: flex;
    align-items: center;
    justify-content: center;
    @include media-breakpoint-up(lg) {
      justify-content: flex-start;
    }
  }

  .et-listing-list {
    list-style-type: none; // Reset list style types
    margin-left: 0; // normalize for opera
    padding-left: 0;
    margin-bottom: 0;
    .et-listing-item-bullet {
      counter-increment: et-listing;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: $font-weight-bold;
      &:before {
        content: '';
        background-color: $colorPrimary1;
        color: color-yiq($colorPrimary1);
        border-radius: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
    .et-listing-item {
      display: flex;
      align-items: center;
      position: relative;
      margin-bottom: $grid-gutter-width / 2;
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .et-listing-item-text {
    width: 100%; // make text align center/right correctly even if it is < 1 line.
  }

  // Insert numbers into ordered bullets
  ol.et-listing-list .et-listing-item-bullet:before {
    content: counter(et-listing);
  }

  .et-listing-bullet-orderedLarge,
  .et-listing-bullet-unorderedLarge {
    .et-listing-item-bullet {
      margin-right: $grid-gutter-width;
      &:before {
        width: 2em;
        height: 2em;
      }
    }
  }

  .et-listing-bullet-orderedSmall,
  .et-listing-bullet-unorderedSmall {
    .et-listing-item-bullet {
      margin-right: $grid-gutter-width / 2;
    }
  }
  .et-listing-bullet-orderedSmall {
    .et-listing-item-bullet {
      &:before {
        min-width: 15px;
        font-size: smaller;
        background-color: transparent;
        color: $colorPrimary1;
      }
    }
  }
  .et-listing-bullet-unorderedSmall {
    .et-listing-item-bullet {
      &:before {
        background-color: $colorPrimary1;
        width: 5px;
        height: 5px;
      }
    }
  }
}
.et-listing-general-link {
  .btn-link {
    margin-right: 0;
    padding-right: 0;
    margin-left: 0;
    padding-left: 0;
  }
  &.et-position-below-items {
    margin-top: $grid-gutter-width / 2;
  }
  &.et-position-above-items {
    margin-bottom: $grid-gutter-width / 2;
  }
  &.et-align-horizontal-left {
    text-align: left;
  }
  &.et-align-horizontal-center {
    text-align: center;
  }
  &.et-align-horizontal-right {
    text-align: right;
  }
}