.featured-card__background-image {
  border-radius: var(--spacing-1-5);
  overflow: hidden;
}

.featured-card__foreground-image {
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  position: absolute;
  width: auto;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-card__foreground-image--desktop {
  bottom: 0;
  top: unset;
  transform: translate(-50%,-0);
  padding: 0 var(--spacing-2);
  align-items: flex-end;
  width: 100%;
}

.featured-card__foreground-image--desktop img {
  border-radius: 1rem 1rem 0 0;
}

.featured-card__foreground-image--mobile {
  padding: var(--spacing-2) 0;
}

/* Height set to 100% on featured-card__foreground-image--mobile and all divs within in which the image is nested in the
 featured components */
.featured-card__foreground-image--mobile,
.featured-card__foreground-image--mobile .field,
.featured-card__foreground-image--mobile .field__item,
.featured-card__foreground-image--mobile .contextual-region,
.featured-card__foreground-image--mobile picture,
.featured-card__foreground-image--mobile img,
.featured-card__foreground-image--mobile .media {
  height: 100%;
}

.featured-card__foreground-image--mobile img {
  border-radius: 1rem;
  width: auto;
}

.featured-card__foreground-image--logo {
  padding: 0 var(--spacing-9);
  width: 100%;
}

.featured-card__foreground-image--logo img {
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .featured-card__foreground-image--desktop {
    padding: 0 var(--spacing-4);
  }

  .featured-card__foreground-image--desktop img {
    border-top-right-radius: 1.5rem;
    border-top-left-radius: 1.5rem;
  }

  .featured-card__foreground-image--mobile {
    padding: var(--spacing-2-5) 0;
  }

  .featured-card__foreground-image--mobile img {
    border-radius: 1.5rem;
  }

  .featured-card__foreground-image--logo {
    padding: 0 var(--spacing-16);
  }
}

@media (min-width: 992px) {
  .featured-card__foreground-image--mobile {
    padding: var(--spacing-3) 0;
  }
}

@media (min-width: 1200px) {
  .featured-card__background-image img {
    max-width: none;
  }

  .featured-card__foreground-image--mobile {
    height: 100%;
    padding: var(--spacing-4) 0;
  }
}

@media (min-width: 1440px) {
  .featured-card__foreground-image--desktop {
    padding: 0 var(--spacing-2-5);
  }

  .featured-card__foreground-image--desktop img {
    border-top-right-radius: 2rem;
    border-top-left-radius: 2rem;
  }

  .featured-card__foreground-image--mobile img {
    border-radius: 2rem;
  }

  .featured-card__foreground-image--logo {
    padding: 0 var(--spacing-16);
  }
}

@media (min-width: 1920px) {
  .featured-card__foreground-image--desktop {
    padding: 0 var(--spacing-3);
  }

  .featured-card__foreground-image--mobile {
    padding: var(--spacing-6) 0;
  }
}