.new-teammember{
  position: relative;
  padding: 50px 0;
}
.team-member-item {
    flex: 0 0 calc(30% - 30px);
    transition: all 0.3s ease;
  cursor: pointer;
}

.team-members-wrapper {
    gap: 30px;
    justify-content: center;
    margin-top: 80px;
}

.team-member-item img {
    display: block;
    width: 100%;
    border-radius: 15px;
    height: 340px;
    object-fit: cover;
    width: 100%;
}

.team-member-item img:not(.bAndw-version){
    filter: grayscale(1);
}

.team-member-item-details {
    margin-top: 24px;
}

.team-member-item-details .team-name {
    font-family: 'Source Sans Pro';
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    margin-bottom: 8px;
    color: #fff;
    text-transform: uppercase;
}

.team-member-item-details p {
    font-family: 'Source Sans Pro';
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 150%;
    margin-bottom: 18px;
}

.teammember-header .heading {
    font-family: 'Montserrat';
    font-weight: 700;
    color: #fff;
    font-size: 40px;
    line-height: 100%;
    margin-bottom: 0;
}

.team-member-item:hover {
    transform: translateY(-20px);
}

.new-teammember:before, .new-teammember:after {
    content: '';
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    width: 445px;
    height: 521px;
    pointer-events: none;
}

.new-teammember:before {
    background-image: url(https://www.unifocus.com/hubfs/hex_sm.png);
    top: 0;
    right: -350px;
  height: 170px;
}
}

.new-teammember:after {
    background-image: url(https://www.unifocus.com/hubfs/hex_sm.png);
    bottom: 0;
    left: 0;
}

.team-bio-container{
  position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    transform: translateX(100%);
    height: 100%;
    z-index: 99;
  
  display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.team-bio-item{
  position: absolute;
    top: 0;
    width: 45%;
    max-width: 600px;
    min-width: 450px;
    height: 100%;
    left: 0;
    bottom: 0;
    background: white;
    box-shadow: 0px 0px 15px 0 rgb(0 0 0 / 10%);
    padding: 35px;
    padding-top: 70px;
    overflow-y: auto;
    max-height: 100vh;
    transform: translateX(10%);
    transition: all 0.5s ease-in-out;
  flex: 0 0 25%;
    margin: 0 !important;
    margin-bottom: 40px !important;
}
.team-bio-item.open {
    transform: translateX(-100%);
}
.team-bio-item button {
    position: absolute;
    left: 20px;
    top: 15px;
    background: transparent !important;
    color: black;
    padding: 0;
    border: none;
    width: 25px;
    height: 25px;
    font-size: 0px !important;
}
.team-bio-item button:after, .team-bio-item button:before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all .5s ease;
    background: #fff;
    content: '';
    height: .4rem;
    width: 100%;
    border-radius: 50px;
    height: 5px;
    background: #b6b6b6;
    margin-top: 0;
}
.team-bio-item button:before {
    transform: rotate(-45deg);
}
.team-bio-item button:after {
    transform: rotate(45deg);
}
.team-bio-item-content-wrapper img {
    display: block;
    float: none !important;
    margin: auto auto 20px !important;
    height: 340px;
    border-radius: 16px;
}
.team-bio-item-content, .team-bio-item-content p {
    font-size: 16px;
    line-height: 27px;
    color: #62668a;
}


@media (max-width: 1024px){
  .team-member-item {
    flex: 0 0 calc(50% - 30px);
  }

  .team-member-item img {
      height: 450px;
  } 
}


@media (max-width: 767px){
    .teammember-header .heading {
    font-size: 32px;
}

.new-teammember {
    padding: 80px 0;
}

.team-member-item {
    flex: 0 0 100%;
}

.team-member-item img {
    max-width: 270px;
    margin: auto;
} 
  .team-bio-item {
    min-width: 1px;
    width: 100%;
}
  .team-bio-item button {
    left: 0;
}
  .team-member-item img {
    height: 350px;
}
}