.bio-image {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.bio-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0 0 0;
  user-select: none;
  border-radius: 8px;
}

.image-overlay {
  position: absolute;
  inset: 0;
  height: 60px;

  background: linear-gradient(
      to bottom,
      rgba(0,0,0,.6),
      rgba(0,0,0,0)
  );

  border-radius: 8px;
}

.bio-image h3 {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  color: white;
  z-index: 2;
  white-space: nowrap;
}


.team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -100px 0;
}

.first-member {
  margin-top: 40px;
}

.last-member {
  margin-bottom: 40px;
}

.team-member p {
  max-width: 700px;
  line-height: 1.6;
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  margin: 0 20px;
}


/* Flip the layout */
.team-member.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {

    .team-member,
    .team-member.reverse {
        flex-direction: column;
        text-align: center;  
        margin: 40px 0;
    }

    .bio-image {
        width: 100%;
        max-width: 300px;
    }
  
  .team-member p {
    max-width: 300px;
    margin: 0 0;
  }

}