/* ef11 case study slide: Navy box left, image right; stacked below 64rem. */
.ef-case {
  display: grid;
  /* One column that never grows past the slide; the box takes the extra height of a taller neighbour. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  width: 100%;
}

.ef-case__image {
  position: relative;
  order: -1;
  aspect-ratio: 16 / 10;
}

.ef-case__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* image_sizes caps the width inline at the source width; a cover image fills the slide anyway. */
  max-width: none !important;
  object-fit: cover;
}

.ef-case__box {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

@media (min-width: 64rem) {
  .ef-case {
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    grid-template-rows: none;
    min-height: 32rem;
  }

  .ef-case__image {
    order: 0;
    aspect-ratio: auto;
  }

  .ef-case__box {
    padding: 3.5rem 3.5rem 3rem;
  }
}

.ef-case__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

.ef-case__title {
  margin-top: 1.75rem;
  overflow-wrap: break-word;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--color-heading);
}

@media (min-width: 64rem) {
  .ef-case__title {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }
}

.ef-case__text {
  margin-top: 1.5rem;
  line-height: 1.75rem;
}

/* Phones: title only, so slide and arrows fit the screen and slides of
   different text length leave no empty Navy below. */
@media (max-width: 47.99rem) {
  .ef-case__text {
    display: none;
  }
}

/* Button left, award right, at the bottom of the box. */
.ef-case__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 2rem;
}

.ef-case__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ef-case__badges {
  display: flex;
  gap: 0.75rem;
}

.ef-case__badges :where(div) {
  display: contents;
}

/* Award badges as they are, without ring or circle. */
.ef-case__badges img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}
