/*
 * Team grid (Phase 7.5) — reproduces the legacy "Team Showcase" plugin's card
 * layout for /about-us/the-team/. The plugin's own CSS was inline and rendered
 * client-side (never captured in the crawl), so these rules are measured
 * verbatim from live's rendered cards and scoped to `.team-grid-section` so they
 * only style the teamGrid block (components/blocks/team-grid.tsx). Values from
 * live: 3-up grid, 350×350 photos, name 24px/500 #134534, role 16px/400 #1e1f1e.
 */
.team-grid-section .wpm-6310-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 30px;
  justify-content: flex-start;
}
.team-grid-section .wpm_6310_team_style_1 {
  width: 350px;
  margin-bottom: 50px;
  text-align: center;
}
.team-grid-section .wpm_6310_team_style_1_pic {
  width: 350px;
  height: 350px;
  overflow: hidden;
}
.team-grid-section .wpm_6310_team_style_1_pic img.wpm-6310-main-image-single {
  display: block;
  width: 350px;
  height: 350px;
  object-fit: fill;
}
.team-grid-section .wpm_6310_team_style_1_team_content {
  padding-top: 10px;
}
.team-grid-section .wpm_6310_team_style_1_title {
  margin: 15px 0 5px;
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 40px;
  color: #134534;
}
.team-grid-section .wpm_6310_team_style_1_designation {
  margin: 0 0 15px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #1e1f1e;
}

/*
 * Team member bio modal — mirrors live's Team Showcase popup (`.wpm_6310_modal`):
 * an 80%-opacity black overlay, a centred white panel with the photo on the left
 * and role/name/bio on the right, prev/next arrows outside the panel and a close
 * button. Values measured from live (panel ~1080px, photo column ~330px, name in
 * the brand green). Only active when the teamGrid renders it.
 */
.wpm_6310_modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.8);
}
.wpm_6310_modal-content {
  position: relative;
  width: 1080px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  padding: 40px;
}
.wpm_6310_modal_close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #1e1f1e;
  cursor: pointer;
}
.wpm_6310_modal_template {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.wpm_6310_modal_body_picture_content {
  flex: 0 0 330px;
  max-width: 330px;
}
.wpm_6310_modal_body_picture_content img {
  display: block;
  width: 100%;
  height: auto;
}
.wpm_6310_modal_body_content {
  flex: 1 1 0;
  min-width: 260px;
}
.wpm_6310_modal_designation {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #1e1f1e;
  margin-bottom: 6px;
}
.wpm_6310_modal_title {
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  color: #134534;
  margin: 0 0 24px;
}
.wpm_6310_modal_description {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  color: #1e1f1e;
}
.wpm_6310_modal_description p {
  margin: 0 0 20px;
}
.wpm_6310_modal_description p:last-child {
  margin-bottom: 0;
}
.wpm_6310_modal_nav {
  border: 0;
  background: none;
  color: #fff;
  font-size: 60px;
  line-height: 1;
  cursor: pointer;
  padding: 0 20px;
  flex: 0 0 auto;
}
.wpm_6310_modal_nav:hover {
  opacity: 0.7;
}

@media (max-width: 780px) {
  .wpm_6310_modal { padding: 15px; }
  .wpm_6310_modal-content { padding: 24px; }
  .wpm_6310_modal_body_picture_content { flex-basis: 100%; max-width: 100%; }
  .wpm_6310_modal_title { font-size: 32px; }
  .wpm_6310_modal_nav { position: absolute; top: 50%; font-size: 40px; }
  .wpm_6310_modal_prev { left: 4px; }
  .wpm_6310_modal_next { right: 4px; }
}
