/*
 * Lafer Home | Team cards v42
 * Smaller editorial cards with a centered heading and balanced typography.
 * Keeps all portrait sources, crops, carousel controls, links and transitions.
 */
html body.lafer-enterprise.home #main #equipo .team-heading {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-bottom:clamp(23px,2.4vw,32px)!important;
}
html body.lafer-enterprise.home #main #equipo .team-heading .section-head {
  width:100%;
  max-width:920px!important;
  min-width:0;
  margin-inline:auto!important;
  text-align:center!important;
}
html body.lafer-enterprise.home #main #equipo .team-heading .section-title {
  width:100%;
  max-width:900px!important;
  margin-inline:auto!important;
  text-align:center!important;
  text-wrap:balance;
}
html body.lafer-enterprise.home #main #equipo .team-heading .section-lead {
  max-width:810px!important;
  margin:clamp(12px,1.3vw,18px) auto 0!important;
  text-align:center!important;
  text-wrap:pretty;
}
html body.lafer-enterprise.home #main #equipo .team-grid-v2 {
  margin-inline:auto!important;
}
html body.lafer-enterprise.home #main #equipo .person-v2 .person-info {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center!important;
}
html body.lafer-enterprise.home #main #equipo .person-v2 .person-info h3,
html body.lafer-enterprise.home #main #equipo .person-v2 .person-job,
html body.lafer-enterprise.home #main #equipo .person-v2 .person-spec {
  width:100%;
  text-align:center!important;
  overflow-wrap:break-word;
}
html body.lafer-enterprise.home #main #equipo .person-v2 .person-spec {
  max-width:42ch;
  margin-inline:auto!important;
  margin-bottom:clamp(11px,1vw,15px)!important;
  line-height:1.48!important;
}
html body.lafer-enterprise.home #main #equipo .person-v2 .person-link {
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin:auto auto 0!important;
  gap:6px;
}
html body.lafer-enterprise.home #main #equipo .person-v2 .person-link svg:last-child {
  margin-left:0!important;
}

/* Three columns as approved, but much narrower and less tall on desktop. */
@media (min-width:881px) {
  html body.lafer-enterprise.home #main #equipo .team-grid-v2 {
    width:100%!important;
    max-width:1110px!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(15px,1.55vw,20px)!important;
  }
  html body.lafer-enterprise.home #main #equipo .team-grid-v2>.person-v2 {
    min-width:0;
  }
  html body.lafer-enterprise.home #main #equipo .team-grid-v2 .person-v2 .person-cover-v2 {
    height:clamp(240px,20vw,280px)!important;
  }
  html body.lafer-enterprise.home #main #equipo .team-grid-v2 .person-v2 .person-info {
    min-height:195px!important;
    padding:clamp(18px,1.45vw,22px)!important;
  }
  html body.lafer-enterprise.home #main #equipo .person-v2 .person-info h3 {
    font-size:clamp(16px,1.23vw,18px)!important;
  }
  html body.lafer-enterprise.home #main #equipo .person-v2 .person-job {
    font-size:clamp(12px,1vw,13px)!important;
  }
  html body.lafer-enterprise.home #main #equipo .person-v2 .person-spec {
    font-size:clamp(11.5px,.9vw,12.5px)!important;
  }
  html body.lafer-enterprise.home #main #equipo .person-v2 .person-link {
    font-size:clamp(10.5px,.82vw,12px)!important;
  }
}

/* Tablet: keep existing grid/interaction; reduce portrait height only. */
@media (min-width:741px) and (max-width:880px) {
  html body.lafer-enterprise.home #main #equipo .team-grid-v2 .person-v2 .person-cover-v2 {
    height:235px!important;
  }
  html body.lafer-enterprise.home #main #equipo .team-grid-v2 .person-v2 .person-info {
    min-height:0!important;
    padding:17px 14px 19px!important;
  }
  html body.lafer-enterprise.home #main #equipo .person-v2 .person-spec {
    font-size:11.5px!important;
  }
}

/* Mobile carousel remains intact. Slightly narrower cards, more room for the
   longer professional bio, without enlarging or recropping the photographs. */
@media (max-width:620px) {
  html body.lafer-enterprise.home #main #equipo .team-grid-v2>.person-v2 {
    flex:0 0 min(77vw,305px)!important;
    width:min(77vw,305px)!important;
    max-width:305px!important;
    scroll-snap-align:center;
  }
  html body.lafer-enterprise.home #main #equipo .team-grid-v2 .person-v2 .person-info {
    min-height:0!important;
    height:auto!important;
    padding:16px 14px 18px!important;
  }
  html body.lafer-enterprise.home #main #equipo .person-v2 .person-spec {
    font-size:clamp(10.5px,2.75vw,12px)!important;
    line-height:1.5!important;
  }
  html body.lafer-enterprise.home #main #equipo .team-heading .section-title {
    font-size:clamp(27px,6vw,35px)!important;
  }
}
