/* ==========================================================================
   CSS GRID TEAM SLIDER
   ========================================================================== */
.team-slider {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

/* Override the conflicting min-height from style.css so it doesn't leave massive white space */
.team-slide.image-box {
  min-height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: var(--radius);
}

.team-slide {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Ensure images exactly fill the square container and touch the click-hint badge */
.team-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
