.relationship-images-container {
  display: flex;
  align-items: center;
  overflow: hidden; /* Ensure contents do not overflow the container */
}

.relationship-images-flex {
  display: flex;
  flex: 0 1 auto; /* Do not grow, allow shrink, base width on content */
}

.relationship-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  object-fit: cover;
  margin-right: -15px; /* Overlap the images slightly */
}

.relationship-image:last-child {
  margin-right: 0; /* Stops the last image from overlapping the label */
}

.relationship-label-flex {
  flex: 1; /* Grow to take up the remaining space */
  display: flex;
  align-items: center;
  padding-left: 20px; /* Adds some space between images and label */
}

.relationship-label {
  white-space: nowrap;
  font-weight: bold;
}