.team-card {
  cursor: default;
  aspect-ratio: 3 / 4;
}

.team-card-image {
  width: 100%;
  height: 100%;
}

.team-card-info {
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card-info a {
  text-decoration: none;
}

@media (hover: hover) {
  .team-card:hover .team-card-info {
    opacity: 1;
  }
}

.team-card.is-active .team-card-info,
.team-card--no-image .team-card-info {
  opacity: 1;
}

/* Plus toggle icon */
.team-card-toggle {
  position: absolute;
  top: auto;
  bottom: 0.75rem;
  left: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: var(--nexo-white);
  color: var(--nexo-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.team-card.is-active .team-card-toggle {
  background: var(--nexo-white);
}

.team-card-toggle-icon {
  display: block;
  width: 12px;
  height: 12px;
  position: relative;
  transition: transform 0.3s ease;
}

.team-card-toggle-icon::before,
.team-card-toggle-icon::after {
  content: '';
  position: absolute;
  background: #000;
  border-radius: 1px;
}

.team-card-toggle-icon::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.team-card-toggle-icon::after {
  width: 100%;
  height: 2px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.team-card.is-active .team-card-toggle-icon {
  transform: rotate(45deg);
}

/* Hide toggle on desktop */
@media (min-width: 992px) {
  .team-card-toggle {
    display: none;
  }
}

/* Slider pagination */
.section-team-slider {
  --swiper-pagination-bottom: 0;
}

.section-team-slider .swiper-pagination {
  position: static;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .section-team-slider .swiper-pagination {
    display: none;
  }
}
