body.staff section {
  display: block;
  /* Back to default block display */
}

body.staff .image.left,
body.staff .image.right {
  float: left;
  margin: 0 2em 2em 0;
  width: 300px;
  /* Set fixed width */
  height: 300px;
  /* Set fixed height */
  overflow: hidden;
  /* Prevent image overflow */
}

body.staff .image.right {
  float: right;
  margin: 0 0 2em 2em;
}

body.staff .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Maintain aspect ratio while filling container */
  border-radius: 4px;
}

body.staff section p {
  margin: 0 0 2em 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  /* Stack elements vertically */
  body.staff section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.staff .image.left,
  body.staff .image.right {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto 1em auto;
    float: none;
  }

  .staff-cta {
    width: 100%;
    text-align: center;
    /* margin: 1em 1em; */
  }

  .staff-bio {
    width: 100%;
    margin: 1em 0 0 0;
    clear: both;
  }

  section.left span.staff-bio,
  section.right span.staff-bio {
    margin: 0;
  }
}

@media screen and (min-width: 769px) {
  body.staff hr {
    margin: 7em 0;
    border-bottom: solid 1px #c9c9c9;
  }
}

@media screen and (min-width: 1001px) {
  section.left span.staff-bio {
    margin-left: 400px;
    display: block;
  }

  section.right span.staff-bio {
    margin-right: 400px;
    display: block;
  }
}

/* Staff page CTA button styling */
.staff-cta {
  display: inline-block;
  clear: both;
}

.staff-cta .button {
  margin: 0;
}

body.staff .image.left + .staff-cta,
body.staff .image.right + .staff-cta {
  float: left;
  clear: left;
  margin-left: 0;
}

body.staff .image.right + .staff-cta {
  float: right;
  clear: right;
}

.staff-content {
  position: relative;
  clear: both;
}

.staff-bio {
  margin-top: 1em;
}

@media screen and (min-width: 769px) and (max-width: 1280px) {
  .left .staff-cta {
    margin: auto 70px;
  }

  .right .staff-cta {
    margin: auto auto auto 10px;
  }
}
