.card {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-align: left;
  width: calc(100% - (4 * #{gutter()}));
  margin: #{gutter()} calc(2 * #{gutter()});
  @include breakpoint($screen-md) {
    margin: 0 gutter() 30px;
  }
  &[class*="bg--"] {
    .card__content-wrapper {
      padding: 30px;
    }  
  }
}
.card__title {
  text-align: center;
  margin: 0 calc(4 * #{gutter()}) 30px;
  @include breakpoint($screen-md) {
    margin: 0 calc(2 * #{gutter()}) 30px;
  }
  .bg--dark-orchid & {
    color: $colour-white;
  }
}
.card__content-wrapper {
  position: relative;
  height: 100%;
  padding: 30px 0;
  @include breakpoint($screen-md-only) {
    @include span(7 wider);
    position: absolute;
    top: 0;
    right: 0;
    padding: calc(2*#{gutter()});
    height: 100%;
    margin-right: 0;
    &.card__content-wrapper--no-image {
      @include span(12);
      position: relative;
      .card__content {
        position: relative;
        top: 0;
        transform: translateY(0);
      }
    }
  }
  
  .cards--feature-layout & {
    z-index: 10;
    margin: calc(4*#{gutter()});
    margin-top: calc(-6*#{gutter()});
    text-align: center;
    background-color: $colour-white;
    @include breakpoint($screen-md-only) {
      @include span(9);
      @include push(3);
      margin: 25px 0;
      height: calc(100% - 50px);
    }
  }
}
.card__image {
  @include breakpoint($screen-md-only) {
    @include span(5);
    margin-left: 0;
  }
  img {
    display: block;
    width: 100%;
    height: 100%;
  }
}
.card__content {
  @include breakpoint($screen-md-only) {
    position: absolute;
    width: calc(100% - 20px);
    top: 50%;
    right: 0;
    left: 0;
    margin: auto;
    transform: translateY(-50%);
  }
}
