.team-widget h1, 
.team-widget h2, 
.team-widget h3, 
.team-widget h4, 
.team-widget h5, 
.team-widget h6 {
    margin: 0px !important;
}

.leader-card {
  display: flex;
  max-width: 136rem;
/*   min-height: 85.7rem; */
  align-items: flex-start;
}

.layout1_leader_image {
  max-width: 52rem;
  flex-shrink: 0;
  align-self: stretch;
}

.layout1_leader_image img {
  width: 100%;
  height: 100% !important;
/*   min-height: 85.7rem; */
  object-fit:cover;
}

.layout1_leader_content {
  background: var(--Color-Surface-Subtle, #f4f4f4);
  display: flex;
  padding: var(--Spacing-3XL, 4rem) 3.2rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6.4rem;
  flex: 1 0 0;
  align-self: stretch;
}

.layout1_leader_inside_content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4rem;
  align-self: stretch;
}

.leader_content_2{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
  align-self: stretch;
}

.layout1_leader_texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  align-self: stretch;
}

.layout1_leader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  align-self: stretch;
}

.layout1_leader_name {
  flex: 1 0 0;
  color: var(--Text-primary, #111614);
}

.layout1_leader_job {
  align-self: stretch;
  color: var(--Color-Content-Secondary, #363636);
}

.layout1_leader_bio {
  align-self: stretch;
  color: var(--Color-Content-Tertiary, #6b6b6b);
}

.social_buttons {
  display: flex;
  align-items: flex-start;
  gap: var(--Spacing-XS, 1.2rem);
  margin-top: auto;
}

.social_button,
.full_button {
  display: flex;
  height: 6.4rem;
  padding: 1.7rem 2.4rem;
  align-items: center;
  gap: 0.8rem;
  border-radius: var(--Radii-Full, 100rem);
}

.social_button {
  border: 0.2rem solid var(--Color-Buttons-Outline-Idle, #03231b);
}

@media (max-width: 768px) {
  .leader-card {
    min-height: 0rem;
    align-items: self-end;
    flex-direction: column;
  }

  .layout1_leader_image {
    height: 20rem;
    max-width: 100%;
  }

  .layout1_leader_image img {
    height: 20rem !important;
    width: 100%;
    aspect-ratio: 393 / 200;
    min-height: 0rem;
  }

  .layout1_leader_content {
    padding: 2.4rem 1.6rem;
	gap: 3.2rem;
  }

  .layout1_leader_inside_content{
	gap: 2.4rem;
  }

  .leader_content_2{
	gap: 1.2rem;	
  }

  .layout1_leader_texts {
    padding-bottom: 0.8rem;
  }

  .layout1_leader_name {
    color: var(--Color-Content-Primary, #0d0d0d);
  }

  .social_button,
  .full_button {
    height: 4rem;
    padding: 0rem 1.6rem;
  }

  .social_button {
    border: 1.2px solid var(--Color-Buttons-Outline-Idle, #03231b);
  }

  .social_button svg,
  .full_button svg {
    display: flex;
    width: 1.6rem;
    height: 1.6rem;
    justify-content: center;
    align-items: center;
    gap: 0.5333rem;
  }
}

/* layout 2 */

.team-widget{
  max-width: 144rem;
  padding: 0 4rem;
}
.team_members_layout_2 {
  display: flex;
  overflow-x: auto;
/*   overflow-y: hidden; */
  scroll-behavior: smooth;
  width: 100%;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  user-select: none;
/*   cursor: grab; */
  cursor: -webkit-grab;
  max-width: 136rem;
}
.team_members_layout_2.active {
  /* cursor: grabbing;
  cursor: -webkit-grabbing; */
  scroll-behavior: auto; /* Disable smooth scroll during drag for better control */
}

.team_members_grid {
  display: flex;
  align-items: flex-start;
  gap: 3.2rem;
  align-self: stretch;
  max-width: 136rem;
}

.card_member {
  display: flex;
  width: 52rem;
  min-width: 52rem;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  height: 100%;
}

.team_member_image {
  display: flex;
  height: 32rem;
  align-items: center;
  gap: 0.8rem;
  align-self: stretch;
}

.team_member_image img {
  height: 32rem !important;
  width: 100%;
  object-fit:cover;
}

.team_member_full_content {
  display: flex;
  padding: 3.2rem 2.4rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 4.8rem;
  align-self: stretch;
  background: var(--BG-secondary, #f4f4f4);
  flex-grow: 1;
}

.team_member_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4rem;
  align-self: stretch;
}

.member_content_1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.member_content_2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}

.member_name {
  flex: 1 0 0;
  color: var(--Text-primary, #111614);
}

.member_job {
  align-self: stretch;
  color: var(--Color-Content-Secondary, #363636);
}

.member_bio {
  align-self: stretch;
  color: var(--Color-Content-Tertiary, #6b6b6b);
}

.member_button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.member_button span {
  color: var(--Color-Content-Secondary, #363636);

  /* Desktop/Link 1 D */
  font-family: var(--Type-Link-Link-1-Family, Involve);
  font-size: 2rem;
  font-style: normal;
  font-weight: var(--Type-Link-Link-1-Weight, 600);
  line-height: 130%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-color: var(
    --Color-Content-Secondary-overlay,
    rgba(0, 0, 0, 0.25)
  );
  text-decoration-thickness: auto;
  text-underline-offset: 50%;
  text-underline-position: from-font;
}

.member_button svg {
  width: 2.4rem;
  height: 2.4rem;
  aspect-ratio: 1/1;
}

@media (max-width: 768px) {
  .team-widget {
    padding: 0 2rem;
  }
  .team_members_grid {
    gap: 1.6rem;
  }
  .card_member {
    width: 28rem;
	min-width: 28rem;
  }

  .team_member_image,
  .team_member_image img {
    height: 20rem !important;
  }

  .team_member_full_content {
    padding: 2.4rem 1.6rem;
    gap: 2.3rem;
  }

  .team_member_content {
    gap: 2.4rem;
  }

  .member_content_2 {
    gap: 1.2rem;
  }

  .member_name {
    color: var(--Color-Content-Primary, #0d0d0d);
    font-size: 2rem;
    line-height: 130%;
  }

  .member_job {
    font-size: 1.4rem;
    line-height: 140%;
  }

  .member_bio {
    font-size: 1.2rem;
    line-height: 140%;
  }

  .member_button span {
    font-size: 1.4rem;
    line-height: 140%;
  }

  .member_button svg {
    display: flex;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0.2145rem 0.2334rem 0.2542rem 0.2148rem;
    justify-content: center;
    align-items: center;
  }
}

/* Modal */

.member_modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 6rem 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
	overscroll-behavior-y:contain;
}

.modal_full_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  background-color: #fff;
  margin: auto;
  width: 80%;
  position: relative;
  max-width: 100rem;
}

.close_modal {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 6.4rem;
  height: 6.4rem;
  padding: 1.7rem var(--Spacing-XL, 2.4rem);
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  border-radius: var(--Radii-Full, 100rem);
  background: var(--Color-Buttons-Primary-Idle, #03231b);
}

.invert-close {
  background: var(--Color-Buttons-Secondary-Idle, #f4f4f4);
}

.invert-close svg path {
  stroke: #0d0d0d;
}

.modal_member_image {
  display: flex;
  height: 40rem;
  padding: 4rem;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.8rem;
  align-self: stretch;
	background-size:cover;
}

.modal_content {
  display: flex;
  padding: 5.6rem 4rem;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.4rem;
  align-self: stretch;
}

.modal_text_links_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4.8rem;
  align-self: stretch;
}

.modal_text_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5.6rem;
  align-self: stretch;
}

.modal_content_1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  align-self: stretch;
}

.modal_member_name {
  flex: 1 0 0;
  color: var(--Text-primary, #111614);
}

.modal_member_job {
  align-self: stretch;
  color: var(--Color-Content-Secondary, #363636);
}

.modal_content_2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
  align-self: stretch;
}

.modal_member_long_bio {
  align-self: stretch;
  color: var(--Color-Content-Tertiary, #6b6b6b);
}

.full_button {
  background: var(--Color-Buttons-Primary-Idle, #03231b);
}

.full_button_text {
  color: var(--Color-Content-Inverse, #f2f2f2);
}

@media (max-width: 768px) {
  .member_modal {
    padding: 3rem 0;
  }

  .close_modal {
    width: 4.4rem;
    height: 4.4rem;
    padding: 0rem 1.4rem;
  }

  .modal_member_image {
    height: 24rem;
    padding: 2rem;
  }

  .modal_content {
    padding: 3.2rem 2rem;
    gap: 1.6rem;
  }

  .modal_text_links_content {
    gap: 3.2rem;
  }

  .modal_text_content {
    gap: 4rem;
  }

  .modal_member_name {
    color: var(--Color-Content-Primary, #0d0d0d);
  }

  .name_medium {
    font-size: 2.4rem;
    line-height: 130%;
  }

  .name_big {
    font-size: 3.2rem;
    line-height: 120%;
  }

  .modal_member_job {
    font-size: 1.6rem;
    line-height: 140%;
  }

  .modal_member_long_bio {
    font-size: 1.4rem;
    line-height: 140%;
  }

  .full_button_text {
    font-size: 1.6rem;
    line-height: 140%;
  }
}
