@mixin et-productlist-banner($type) {
  .et-#{$type}-banner-image {
    border-radius: $border-radius;
    overflow: hidden;
  }
  .et-#{$type}-banner-title {
    word-break: break-word;
    hyphens: auto;
  }
  .et-#{$type}-banner-layout-sideBySide {
    .et-#{$type}-banner-content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding: $grid-gutter-width;;
      border-radius: $border-radius;
      background-color: $colorNeutral3;
      color: color-yiq($colorNeutral3);

      .et-shorten-to-text:after {
        background: linear-gradient(to bottom, rgba($colorNeutral3, 0) 0, $colorNeutral3 100%);
      }
    }
    .et-#{$type}-banner-image {
      order: 1;
      width: 100%;
      margin-bottom: $grid-gutter-width;
      margin-left: 0;
    }
    .et-#{$type}-banner-content-positioner {
      order: 2;
    }
    .et-#{$type}-banner-image ~ .et-#{$type}-banner-content-positioner {
      flex-basis: 0;
      flex-grow: 1;
    }

    @include media-breakpoint-up(md) {
      .et-#{$type}-banner-content {
        flex-direction: row;
      }
      .et-#{$type}-banner-image {
        order: 2;
        width: 180px;
        margin-bottom: 0;
        margin-left: $grid-gutter-width;
      }
      .et-#{$type}-banner-content-positioner {
        order: 1;
      }
    }
  }
  .et-#{$type}-banner-layout-textBelowImage {
    .et-#{$type}-banner-image ~ .et-#{$type}-banner-content-positioner {
      margin-top: 20px;
    }
    .et-#{$type}-banner-description {
      column-count: 1;
      @include media-breakpoint-up(md) {
        column-count: 2;
        column-gap: $grid-gutter-width;
      }
    }
  }
  .et-#{$type}-banner-layout-textOnImage {
    .et-#{$type}-banner-content {
      display: flex;
      flex-flow: row nowrap;
    }
    .et-#{$type}-banner-image {
      width: 100%;
      height: auto;
    }
    .et-#{$type}-banner-title:last-child {
      margin-bottom: 0;
    }
    .et-#{$type}-banner-description {
      column-count: 1;
      @include media-breakpoint-up(md) {
        column-count: 2;
        column-gap: $grid-gutter-width;
      }
    }
    .et-#{$type}-banner-image ~ .et-#{$type}-banner-content-positioner {
      color: color-yiq($colorBackdrop);
      pointer-events: none; // allow clicks on the image in the background if

      width: 100%;
      margin-left: -100%;

      display: flex;
      align-items: flex-start;

      padding: 20px;
      @include media-breakpoint-up(sm) {
        padding: 30px;
      }
      @include media-breakpoint-up(lg) {
        padding: 40px;
      }

      .et-#{$type}-banner-description {
        column-count: 1;
      }

      .et-#{$type}-banner-backdrop {
        border-radius: $border-radius;
        padding: 20px;
        pointer-events: all;
        @include media-breakpoint-up(sm) {
          padding: 30px;
        }
        @include media-breakpoint-up(lg) {
          padding: 40px;
        }
        background-color: $colorBackdrop;
        max-width: 100%;
        @include media-breakpoint-up(md) {
          max-width: 50%;
        }
      }
    }
  }
}