.team {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 100px;
}

.team .member--thum img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
  /* aspect-ratio: 1 / 1.27; */
}

.team .member {
  position: relative;
}

.team .member .info {
  position: absolute;
  top: 50px;
  right: -285px;
  background: var(--white);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1019607843);
  padding: 20px;
  width: 335px;
  z-index: 3;
}

.team .member .info p {
  margin-bottom: 0;
}

.team .member:nth-child(odd) .info {
  left: -285px;
  right: auto;
}

.team .member:first-child .info {
  left: calc(50% - 50px);
  z-index: 3;
}

.team .member .info h4 {
  font-family: HaasGrotDispMedium;
  color: var(--headingcolor);
  font-size: 32px;
  margin-bottom: 2px;
}

.team .member .info p {
  color: var(--black);
  font-size: 22px;
  margin-bottom: 10px;
}

.team .member .info img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.member .member--thum {
  padding: 20px 10px;
  width: 50%;
  z-index: 2;
  position: relative;
}

.team .member {
  display: flow-root;
}
.team .member:nth-child(even) .details .white--height {
  height: 300px;
}
.member .details .white--height {
  height: 300px;
}

.member .details {
  display: none;
  padding: 0px 10px;
}

.member.active .details {
  display: block;
}

.team .member:nth-child(even) .member--thum {
  float: right;
  margin-left: 10px;
}

.team .member:nth-child(odd) .member--thum {
  float: left;
  margin-right: 10px;
}

.team .member:nth-child(even) {
  margin-top: -250px;
}

.team .member.active + .member {
  margin-top: 0;
}

.team .member:nth-child(odd) {
  margin-top: -250px;
}
.team .member:first-child {
  margin: 0;
}

.team .member:first-child .details .white--height {
  height: 250px;
}

.member .details .close {
  cursor: pointer;
  opacity: 1;
  margin-bottom: 25px;
}

/* tabs */
.our--people--tabs .our--people--head .nav-tabs {
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    gap: 25px;
    border-bottom: 2px solid rgba(62, 91, 166, 0.2);
}

.our--people--tabs .our--people--head .nav-tabs li a:after {
    content: '';
    width: 100%;
    height: 2px;
    background: var(--primary);
    display: block;
    opacity: 0;
    transition: 0.3s;
    margin-bottom: -2px;
}

.our--people--tabs .our--people--head .nav-tabs li a.active:after {
    opacity: 1;
}

.our--people--tabs .our--people--head .nav-tabs li a {
    font-size: 36px;
    color: rgba(62, 91, 166, 0.2);
    transition: 0.3s;
    text-decoration: none;
}

.our--people--tabs .our--people--head .nav-tabs li a.active {
    color: var(--primary);
}

.our--people--tabs .our--people--head .nav-tabs li {
    position: relative;
}
/* tabs end */


@media(max-width:1280px){
  .team .member .info {
      width: 300px;
  }

  .team .member:nth-child(odd) .info {
      left: -230px;
  }

  .team .member:first-child .info {
      left: calc(50% - 50px);
  }

  .team .member .info {
      right: -230px;
  }
  .team .member .info h4 {
      font-size: 28px;
  }

  .team .member .info p {
      font-size: 20px;
  }
  .our--people--tabs .our--people--head .nav-tabs li a {
      font-size: 25px;
  }
}

@media(max-width:1024px){
  .team .member .info {
      right: -175px;
  }

  .team .member .info {
      width: 239px;
  }

  .team .member .info h4 {
      font-size: 22px;
  }

  .team .member .info p {
      font-size: 16px;
  }

  .team .member:nth-child(odd) .info {
      left: -175px;
  }

  .team .member:first-child .info {
      left: calc(50% - 60px);
  }

  .team {
      max-width: 640px;
  }
}

@media(max-width:992px){
  .team .member .info {
      right: -155px;
  }

  .team .member .info {
      width: 220px;
  }

  .team .member:nth-child(odd) .info {
      left: -155px;
  }

  .team .member:first-child .info {
      left: calc(50% - 65px);
  }
}

@media(max-width:768px){
  .team {
      padding-right: 20px;
      padding-left: 20px;
  }
  .team .member .info {
      position: relative;
      left: 0 !important;
      width: 100%;
      right: 0 !important;
      order: 2;
      top: 0;
  }

  .member .member--thum {
      float: none !important;
      width: 100%;
      order: 1;
      padding: 0px;
      margin: 0 !important;
  }

  .team .member {
      margin: 0 !important;
      display: flex !important;
      flex-direction: column;
      margin-bottom: 20px !important;
  }

  .team .member:first-child .details .white--height, .member .details .white--height {
      height: 0 !important;
  }

  .member .details {
      order: 3;
      padding: 50px 10px;
      position: fixed;
      z-index: 99;
      top: 0;
      left: 0;
      background: rgb(0 0 0 / 80%);
      width: 100%;
      height: 100%;
      overflow: auto;
      color: var(--white);
  }

  .member .details .close {
      position: absolute;
      top: 15px;
      right: 15px;
      color: var(--white);
  }

  .team .member--thum img {
      height: auto;
      aspect-ratio: 1 / 1;
  }

  .our--people--tabs .our--people--head .nav-tabs li a {
      font-size: 22px;
  }

  .our--people--tabs .our--people--head .nav-tabs {
      flex-wrap: nowrap;
      gap: 15px;
      padding-right: 15px;
      padding-left: 15px;
  }

  .our--people--tabs .our--people--head .nav-tabs li {
      width: max-content;
  }

  .our--people--tabs .our--people--head {
      overflow: auto;
  }
}