/* =========================
   PAGE LAYOUT
========================= */

.team-page {
  padding: 80px 5vw;
}

.team-page__header {
  max-width: 900px;
  margin-bottom: 60px;
}

.team-page__title {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.1;
}

.team-page__intro {
  font-size: 18px;
  line-height: 1.6;
}

/* =========================
   GRID
========================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 88px;
  position: relative;
}

/* =========================
   CARD BASE
========================= */

/* .team-card {
  position: relative;
  cursor: pointer;
  perspective: 1200px;
  min-height: 360px;
  transition: opacity 0.3s ease;
}*/

.team-card {

  position: relative;
  cursor: pointer;
  perspective: 1200px;
  transition: opacity 0.3s ease, transform 0.25s ease;

}

.team-card {
  min-height: 0;
}



.team-card::before {

  content: none;
  display: none;

}




.team-card--featured {
  grid-column: span 2;
}
.team-card--featured {
  min-height: 0;
}

.team-card--featured::before {

  aspect-ratio: 16 / 10;

}
/* =========================
   INNER (FLIP CONTAINER)
========================= */

/*.team-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
}*/

.team-card__inner {

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;

}

/* =========================
   FRONT / BACK
========================= */

/*.team-card__front,
.team-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: #fff;
}*/

.team-card__front,
.team-card__back {

  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: #000000;
  height:200px;

}

.team-card__back {
  transform: rotateY(180deg);
  padding: 28px;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

/* =========================
   IMAGE
========================= */

.team-card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee;
}

.team-card--featured .team-card__image-wrap {
  aspect-ratio: 16 / 10;
}

.team-card__image,
.team-card__back-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__image {
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__image {
  transform: scale(1.04);
}

/* =========================
   TEXT (FRONT)
========================= */

.team-card__meta {
  padding-top: 16px;
}

.team-card__name {
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 600;
  padding-left:5px;
  color:white;
}

.team-card__title {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.team-card__bio2 {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.4;
  font-style: italic;
}

/* =========================
   BACK CONTENT
========================= */

.team-card__back-image {
  width: 25%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 20px;
}
.team-card__back-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.team-card__back-title {
  margin: 6px 0 0;
  font-size: 15px;
}

.team-card__bio1 {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.55;
}

.team-card__email {
  margin-top: 18px;
  font-size: 14px;
}

.team-card__email a {
  text-decoration: none;
}

.team-card__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* =========================
   HOVER DIMMING
========================= */

.team-grid.is-hovering .team-card {
  opacity: 0.82;
}

.team-grid.is-hovering .team-card.is-hovered,
.team-grid .team-card.is-active {
  opacity: 1;
}

/* =========================
   ACTIVE STATE
========================= */

.team-card.is-active {
  z-index: 1000;
}

/* =========================
   PLACEHOLDER (PREVENT SHIFT)
========================= */

/*.team-card-placeholder {
  visibility: hidden;
  pointer-events: none;
  min-height: 360px;
}*/

.team-card-placeholder {

  visibility: hidden;
  pointer-events: none;

}

.team-card-placeholder::before {

  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;

}

/*.team-card-placeholder.team-card--featured {
  grid-column: span 2;
  min-height: 520px;
}*/
.team-card-placeholder.team-card--featured {
  grid-column: span 2;
}
.team-card-placeholder.team-card--featured::before {

  aspect-ratio: 16 / 10;

}
/* =========================
   SMOOTH TRANSITIONS
========================= */

.team-card,
.team-card__inner {
  will-change: transform;
}


/* =========================
   carousel
========================= */
.team-carousel {
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  perspective: 2600px;
   perspective-origin: 50% 60%;
}

.team-carousel__viewport {
  width: min(90vw, 1100px);
  height: 620px;
  position: relative;
  transform-style: preserve-3d;
}
.team-carousel__tilt {

  width: 100%;

  height: 100%;

  position: relative;

  transform-style: preserve-3d;

  transform: rotateZ(45deg);

}
.team-carousel__ring {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}



.team-carousel .team-card {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 120px;
  height: 120px;

  margin-left: -110px;
  margin-top: -110px;

  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.team-card {
  transform: rotateZ(-45deg);
}

.team-carousel{
  pointer-events: auto;
}

.team-carousel,
.team-carousel__viewport,
.team-carousel__ring,
.team-carousel .team-card,
.team-carousel .team-card__inner,
.team-carousel .team-card__front,
.team-carousel .team-card__back {
  pointer-events: auto;
}

.team-carousel .team-card,
.team-carousel .team-card__inner,
.team-carousel .team-card__front,
.team-carousel .team-card__back {
  border-radius: 0px;
}

.team-carousel .team-card {
  cursor: pointer;
}

.team-carousel .team-card__inner {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}




.team-carousel .team-card__inner {
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);

}

.team-carousel .team-card.is-flipped .team-card__inner {
  transform: rotateY(180deg) translateZ(20px) scale(2);;
}

.team-carousel .team-card {
  pointer-events: auto;
  transform-style: preserve-3d;
}


.team-carousel .team-card,
.team-carousel .team-card * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}