.page-template-team-members-page #primary {
  min-height: 61vh;
}

.single-team_member .team-member-container {
  min-height: 59vh;
}

#main-content .container:before {
  background: none;
}

#sidebar {
  display: none;
}

/*** Expand the content area to fullwidth ***/
@media (min-width: 981px) {
  #left-area {
    width: 100%;
    padding: 23px 0px 0px !important;
    float: none !important;
  }

  .et_right_sidebar #main-content .container::before {
    display: none !important;
  }
}

/*** Single Team Member Page ***/
.tm-page-title {
  font-weight: 700;
  text-align: center;
  margin-top: 34px;
  font-size: 40px;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  padding: 18px;
}

.team_member {
  max-width: 400px;
  margin: 10px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.team_member img {
  max-width: 100%;
  width: 270px;
  height: 320px;
  border-radius: 2%;
}

.team_member .entry-title {
  font-weight: bold;
  margin: 10px 0;
}

.team-member .position {
  font-style: italic;
  color: #666;
}

/*** Single Team Member Page ***/
.team-member-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.team-member-thumbnail {
  flex-basis: 40%;
  min-width: 400px;
}

.team-member-info {
  flex-grow: 1; /* Allows the text container to fill the remaining space */
}

.team-member-title {
  font-weight: bold;
  font-size: 36px;
}

.team-member-info .position {
  font-weight: bolder;
  font-style: italic;
  font-size: 22px;
  margin-bottom: 16px;
}
