.home-split-card {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* ensure both halves match height (text drives the height) */
  flex-wrap: wrap;
  gap: 16px;
}

/* Apply flex sizing to each direct child so they stay side-by-side when there's room */
.home-split-card > div.text {
  flex: 1 1 320px; /* grow, allow shrink, preferred basis */
  min-width: 220px;
  box-sizing: border-box;
}

.home-split-card > div.img-wrap {
  flex: 1 1 120px; /* grow, allow shrink, preferred basis */
  min-width: 360px;
  /* max-width: 320px; */
  box-sizing: border-box;
}

/* small padding for the text area */
.home-split-card > div {
  padding: 12px;
}

/* Image wrapper: center the image, hide overflow so large images are cropped/downscaled */
.home-split-card .img-wrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 180px;
}

/* Constrain the image so it is downsized to fit the wrapper but not upscaled */
.home-split-card .img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* prevents distortion; image is scaled down if needed */
  object-position: center;
}
