.showcase-hero {
  position: relative;
  overflow: hidden;
}

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

.showcase-hero__background-image .field--name-field-background-image {
  margin-block-end: 0;
}

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

/* Desktop image type */
.showcase-hero__foreground-image--desktop {
  bottom: 0;
  top: unset;
  transform: translate(-50%,-0);
  padding: var(--spacing-2-5) var(--spacing-2-5) 0;
  align-items: flex-end;
  width: 100%;
}

.showcase-hero__foreground-image--desktop img {
  border-radius: 1rem 1rem 0 0;
}

/* Mobile image type */
.showcase-hero__foreground-image--mobile {
  padding: var(--spacing-2-5) 0;
}

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

.showcase-hero__foreground-image--desktop .contextual-region {
  max-height: 100%;
  bottom: 0;
}


.showcase-hero__foreground-image--mobile img {
  border-radius: 1rem;
  width: auto;
}

/* Logo image type */
.showcase-hero__foreground-image--logo {
  max-width: 46%;
}

.showcase-hero__foreground-image--logo img {
  border-radius: 0.5rem;
}

/* Carousel modifier */
.showcase-hero--carousel .showcase-hero__background-image img {
  transform: scale(1.15);
}

.showcase-hero__foreground-image--desktop {
  height: 100%;
}

@media (min-width: 768px) {
  /* Desktop image type */
  .showcase-hero__foreground-image--desktop img {
    border-top-right-radius: 1.5rem;
    border-top-left-radius: 1.5rem;
  }

  /* Mobile image type */
  .showcase-hero__foreground-image--mobile {
    padding: var(--spacing-3) 0;
  }

  .showcase-hero__foreground-image--mobile img {
    border-radius: 1.5rem;
  }

  .showcase-hero__foreground-image--desktop {
    padding: var(--spacing-6) var(--spacing-6) 0;
  }

  .showcase-hero__foreground-image--logo {
    padding: 0;
    max-width: 38%;
  }
}

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

  .showcase-hero__foreground-image--mobile {
    padding: 0;
    height: auto;
  }
}

@media (min-width: 1440px) {
  /* Desktop image type */
  .showcase-hero__foreground-image--desktop img {
    border-top-right-radius: 2rem;
    border-top-left-radius: 2rem;
  }

  .showcase-hero__foreground-image--mobile img {
    border-radius: 2rem;
  }
}
