html {
  overflow-x: hidden;
}
.team-container {
  width: 100%;
  background-color: rgba(186, 186, 186, 1);
  aspect-ratio: 192 / 35;
  padding-top: 12.1%;
  margin-bottom: 3.1%;
  background-image: var(--page-bg);
}
.team-container .team-main-title {
  font-weight: 500;
  font-size: 2.25rem;
  color: rgba(15, 15, 15, 1);
  position: relative;
  max-width: max-content;
  padding: 15px 35px 15px 0;
}
.team-container .team-main-title span {
  position: relative;
}
.team-container .team-main-title::before {
  content: "";
  background-color: rgba(237, 237, 237, 0.7);
  border-radius: 0 8px 8px 0;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: -1000px;
}
.team-cards {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 6.3%;
  gap: 1.75%;
}
.team-block-right {
  display: flex;
  flex-direction: row;
  flex: 1;
  flex-wrap: wrap;
  gap: 3.1% 2.75%;
}
.team-card-first {
  position: relative;
  width: 32.0999%;
  background-color: rgba(229, 227, 234, 1);
  padding: 0;
  border-radius: 16px;
  padding-bottom: 1.85%;
}
.team-cards .team-card {
  position: relative;
  background-color: rgba(229, 227, 234, 1);
  padding: 0 0 2.5%;
  border-radius: 16px;
  width: 31.5%;
  margin: 0;
  height: auto;
}
.team-link {
  text-decoration: none;
  position: absolute;
  inset: 0;
}

.team-img-first {
  border-radius: 16px;
  aspect-ratio: 416 / 651;
  overflow: hidden;
}
.team-img-first img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.team-card .team-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 270 / 259;
  height: auto;
}
.team-card .team-img img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-container-description {
  padding: 20px 0 0 20px;
}
.team-post-title {
  font-size: 20px;
  text-decoration: none;
  color: #141414;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1;
}
.team-post-description {
  font-size: 1.125rem;
  color: #141414;
  line-height: 1;
}
.glide {
  display: none;
}
@media (max-width: 1400px) {
  .team-container {
    padding-top: 9.1%;
  }
}
@media (max-width: 1024px) {
  .team-container-description {
    padding: 16px 20px 20px;
  }
  .team-post-title {
    margin-bottom: 12px;
    font-size: 18px;
  }
  .team-post-description {
    font-size: 16px;
  }
  .glide {
    display: block;
  }
  .team-card-first, 
  .team-block-right {
    display: none;
  }
  .team-cards .team-card {
    padding-bottom: 0;
  }
  .team-card .team-img {
    aspect-ratio: 345 / 277;
  }
  #team .glide__bullets {
    position: relative;
    top: unset;
    left: unset;
    margin-top: 16px;
    justify-content: center;
    gap: 8px;
  }
}
@media screen and ( max-width: 991px ) {
  main {
    padding: 0 6px;
  }
  .team-container {
    padding: 0;
    aspect-ratio: unset;
    background-color: transparent;
    margin-bottom: 0;
  }
  .team-container .team-main-title {
    font-size: 24px;
    padding: 24px 0;
    margin: 0;
  }
  .team-container .team-main-title::before {
    display: none;
  }
  .team-cards {
    margin-bottom: 40px;
  }
}
