.team-portrait {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #dfe5e8;
}

.team-portrait__background,
.team-portrait__person {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.team-portrait__background {
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.team-portrait__person {
  z-index: 1;
  object-fit: contain;
  object-position: center bottom;
}

.team-slider {
  position: relative;
}

.team-viewport {
  overflow: hidden;
}

.team-track {
  display: flex;
  transition: transform 520ms ease;
  will-change: transform;
}

.team-page {
  min-width: 100%;
  display: flex;
  flex-direction: row;
  column-gap: 30px;
  justify-content: center;
}

.team-card {
  flex: 0 0 240px;
  width: 240px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px 12px;
  border: 1px solid var(--orange);
  border-radius: 7px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.team-card:hover,
.team-card:focus-visible {
  border-color: var(--orange);
  outline: none;
  transform: translateY(-2px);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 17px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #dde5e9;
  color: #596775;
  font-weight: var(--font-bold);
  font-size: var(--font-micro);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(4px);
}

.team-card h3 {
  margin: 0;
  color: #060b13;
  font-size: var(--font-title);
  line-height: var(--leading-title);
  font-weight: var(--font-bold);
}

.team-card p {
  margin: 9px 0 0;
  color: #596775;
  font-size: var(--font-ui);
  line-height: var(--leading-title);
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 28px;
  margin-top: auto;
  padding-top: 19px;
  color: #111925;
}

.contact-icons .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icons .icon-mail {
  width: 26px;
  height: 26px;
}

.contact-icons .icon-mail svg,
.contact-icons .icon-whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-icons .icon-mail svg {
  width: 28px;
  height: 28px;
  max-width: none;
}

.contact-icons img {
  display: block;
}

.contact-icons .icon-mail,
.contact-icons .icon-whatsapp {
  cursor: pointer;
}

.contact-icons .icon-whatsapp img {
  filter: brightness(0);
}

.team-rail {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 1.5px solid #7F8B93;
  border-radius: 50%;
  background: var(--white);
  color: #162232;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: var(--font-h3);
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.team-rail:hover,
.team-rail:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  outline: none;
}

.team-rail:hover .rail-arrow-icon,
.team-rail:focus-visible .rail-arrow-icon {
  background-color: var(--orange);
}

.team-rail .rail-arrow-icon {
  display: block;
  width: 20px;
  height: 14px;
  background-color: #7F8B93;
  -webkit-mask: url("../images/icons/arrow.svg") center / contain no-repeat;
  mask: url("../images/icons/arrow.svg") center / contain no-repeat;
}

.team-rail-left {
  left: -48px;
}

.team-rail-right {
  right: -48px;
}

.team-rail-right .rail-arrow-icon {
  transform: rotate(180deg);
}

.team-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.team-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d1d8;
  cursor: pointer;
}

.team-dots button.is-active {
  background: var(--orange);
}

.team-cta {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1180px) {
  .team-rail-left {
    left: -18px;
  }

  .team-rail-right {
    right: -18px;
  }
}

@media (max-width: 900px) {
  .team-page {
    flex-direction: row;
    flex-wrap: nowrap;
    column-gap: 24px;
  }

  .team-card {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
  }

  .team-rail {
    display: none;
  }
}

@media (max-width: 560px) {
  .team-page {
    column-gap: 0;
  }

  .team-card {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-track {
    transition: none;
  }
}
