/* Cards in the same horizontal row share tracks for the portrait, spacer,
   name, role and biography. The role track can be empty. */
@media (min-width: 768px) {
  .founders.e-con > .e-con-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0;
  }

  .founders .e-con-inner > .e-child {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    width: 100%;
  }

  .founders .e-child > .elementor-widget-image {
    align-self: start;
    width: 100%;
  }

  .founders .elementor-widget-image img {
    aspect-ratio: 1;
    object-fit: cover;
  }

  .founders .e-child > :last-child {
    grid-row: 5;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .founders .e-con-inner > .e-child {
    padding-inline: clamp(16px, 2.5vw, 30px);
  }
}

@media (max-width: 767px) {
  /* Keep the biography spacing on a stacked card with no role. */
  .founders .elementor-widget-spacer + .elementor-widget-heading + :last-child {
    padding-top: 15px;
  }
}
