.team-page {
  overflow: hidden;
  color: #fafafa;
  font-family: Outfit, sans-serif;
}

.team-title-section {
  padding-bottom: 110px;
}

.team-title-section .information-section__heading {
  margin-bottom: 0;
}

.team-title-section .information-section__heading h1 {
  margin: 0;
  color: #fafafa;
  font-family: Outfit, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 53px;
  text-transform: uppercase;
}

.team-editor-content {
  width: 100%;
}

.team-editor-content > h1 {
  width: 100%;
  margin: 0 0 56px;
  color: #f00;
  font-family: Outfit, sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 53px;
  text-transform: uppercase;
}

.team-editor-content > .team-member {
  width: 100%;
  margin-left: auto;
  padding: 0;
}

.team-editor-content > .team-member + .team-member {
  margin-top: 64px;
}

.team-member > .wp-block-group__inner-container {
  width: 100%;
  max-width: none;
}

.team-member > .wp-block-image,
.team-member > .wp-block-group__inner-container > .wp-block-image {
  width: 100%;
  max-width: none !important;
  margin: 24px 0 32px !important;
  overflow: hidden;
}

.team-member > .wp-block-image img,
.team-member > .wp-block-group__inner-container > .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 35%;
}

.team-member > .wp-block-image figcaption,
.team-member > .wp-block-group__inner-container > .wp-block-image figcaption {
  margin: 10px 0 0;
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
}

.team-member > h2,
.team-member > .wp-block-group__inner-container > h2 {
  max-width: none;
  margin: 0;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-bottom: 16px;
  border-bottom: 2px solid #f00;
  color: #f00;
  font-family: Outfit, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.team-member > p,
.team-member > .wp-block-group__inner-container > p {
  max-width: none;
  margin: 0;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 0;
  color: #fafafa;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}

.team-member > h2 + p,
.team-member > .wp-block-group__inner-container > h2 + p {
  padding-top: 32px;
}

.team-member > p + p,
.team-member > .wp-block-group__inner-container > p + p {
  margin-top: 32px;
}

.team-member > p:last-child,
.team-member > .wp-block-group__inner-container > p:last-child {
  padding-bottom: 32px;
  border-bottom: 2px solid #fafafa;
}

.team-member a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (min-width: 1024px) {
  .team-title-section {
    padding-bottom: 120px;
  }

  .team-title-section .information-section__heading h1 {
    font-size: 72px;
    line-height: 60px;
  }

  .team-editor-content > h1 {
    margin-bottom: 80px;
    font-size: 160px;
    line-height: 166px;
  }

  .team-editor-content > .team-member {
    width: 70%;
  }

  .team-member:has(> .wp-block-image),
  .team-member > .wp-block-group__inner-container:has(> .wp-block-image) {
    display: grid;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 64px);
    padding-bottom: 32px;
    border-bottom: 2px solid #fafafa;
  }

  .team-member:has(> .wp-block-image) > h2,
  .team-member
    > .wp-block-group__inner-container:has(> .wp-block-image)
    > h2 {
    grid-column: 1 / -1;
  }

  .team-member > .wp-block-image,
  .team-member > .wp-block-group__inner-container > .wp-block-image {
    position: relative;
    grid-row: 2 / span 20;
    grid-column: 1;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 32px 0 0 !important;
  }

  .team-member > .wp-block-image img,
  .team-member > .wp-block-group__inner-container > .wp-block-image img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .team-member:has(> .wp-block-image) > p,
  .team-member
    > .wp-block-group__inner-container:has(> .wp-block-image)
    > p {
    grid-column: 2;
  }

  .team-member > .wp-block-image + p,
  .team-member
    > .wp-block-group__inner-container
    > .wp-block-image
    + p {
    padding-top: 32px;
  }

  .team-member:has(> .wp-block-image) > p:last-child,
  .team-member
    > .wp-block-group__inner-container:has(> .wp-block-image)
    > p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .team-member > h3,
  .team-member > .wp-block-group__inner-container > h3 {
    font-size: 32px;
    line-height: 40px;
  }

  .team-member > p,
  .team-member > .wp-block-group__inner-container > p {
    font-size: 20px;
    line-height: 27px;
  }
}

@media (min-width: 2100px) {
  .team-title-section .information-section__heading h1 {
    font-size: 120px;
    line-height: 130px;
  }
}


@media only screen and (min-width: 1451px){
	.team-info{
		height: 700px;
		align-items: center;
		align-content: center;
	}
	.team-info p{
		font-size: 20px;
        line-height: 27px;
	}
}

@media only screen and (max-width: 1450px){
	.team-info{
		height: 550px;
		align-items: center;
		align-content: center;
	}
	.team-info p{
		font-size: 20px;
        line-height: 27px;
	}
}

@media only screen and (max-width:768px){
	.team-info{
		height:unset;
	}
}


/* Team directory */
.team-directory {
    background: #171717;
    color: #fff;
}

.team-directory .closing-section__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 24vw);
    grid-template-rows: auto 1fr;
    gap: clamp(40px, 4vw, 80px);
    width: 100%;
    max-width: none;
    padding: clamp(60px, 7vw, 120px) clamp(20px, 2vw, 40px);
    box-sizing: border-box;
}

.team-directory__header {
    grid-column: 1;
    grid-row: 1;
}

.team-directory__header h1 {
    margin: 0;
    color: #ff1a0a;
    font-size: clamp(72px, 8.5vw, 170px);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.team-directory__layout {
    display: contents;
}

/* Members grid */
.team-directory__grid {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(40px, 4vw, 70px) clamp(18px, 2.5vw, 48px);
    align-self: start;
}

.team-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    appearance: none;
}

.team-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: #272727;
    border-radius: 12px;
}

.team-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
    transition:
        filter 0.3s ease,
        opacity 0.3s ease;
}

.team-card:hover .team-card__image img,
.team-card.is-active .team-card__image img {
    filter: grayscale(0);
}

.team-card__name {
    display: block;
    padding: 12px 0 10px;
    font-size: clamp(17px, 1.25vw, 25px);
    font-weight: 700;
    line-height: 1.1;
    border-bottom: 2px solid #fff;
}

/* Selected profile */
.team-directory__profiles {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 30px;
}

.team-profile[hidden] {
    display: none;
}

.team-profile__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 14px;
    background: #272727;
    border-radius: 12px;
}

.team-profile__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
}

.team-profile__name {
    margin: 0 0 6px;
    font-size: clamp(20px, 1.45vw, 29px);
    font-weight: 700;
    line-height: 1.1;
}

.team-profile__job-title {
    margin: 0;
    padding-bottom: 14px;
    font-size: clamp(14px, 0.95vw, 18px);
    line-height: 1.35;
    border-bottom: 2px solid #fff;
}

.team-profile__bio {
    padding-top: 14px;
    font-size: clamp(14px, 0.95vw, 18px);
    line-height: 1.45;
}

.team-profile__bio p {
    margin: 0 0 1em;
}

.team-profile__bio p:last-child {
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1200px) {
    .team-directory .closing-section__container {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 32vw);
    }

    .team-directory__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 850px) {
    .team-directory .closing-section__container {
        display: flex;
        flex-direction: column;
        gap: 36px;
        padding: 56px 20px;
    }

    .team-directory__layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .team-directory__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 16px;
    }

    .team-directory__profiles {
        position: static;
    }

    .team-directory__header h1 {
        font-size: clamp(58px, 17vw, 100px);
    }
}

@media (max-width: 480px) {
    .team-directory__grid {
        grid-template-columns: 1fr;
    }

    .team-card__image {
        aspect-ratio: 1 / 1.05;
    }
}



