/* =========================================
   Anchor Team Grid
   File: /css/anchor-team-grid.css
   Used by shortcode: [anchor_staff_members]
   ========================================= */

/* Wrapper */

.anchor-team-grid-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 34px auto 82px;
}

.anchor-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 42px;
  row-gap: 68px;
  align-items: start;
}

.anchor-team-founders {
  margin-top: 78px;
  padding-top: 44px;
  border-top: 1px solid rgba(44, 81, 52, 0.18);
}

.anchor-team-grid-wrap .anchor-team-founders__heading {
  margin: 0 0 32px !important;
  padding: 0 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 42px !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em !important;
  color: #1d3a1e !important;
}

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

/* Card base */

.anchor-team-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Image */

.anchor-team-card-image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 20px;
  overflow: hidden;
  background: #e9f4e6;
  text-decoration: none;
}

/* Small brand accent under the image */
.anchor-team-card-image-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: #ff9900;
  z-index: 2;
  transition: width 0.25s ease;
}

.anchor-team-card-image-link:hover::after,
.anchor-team-card-image-link:focus::after {
  width: 76px;
}

.anchor-team-card-image {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.anchor-team-card-image-link:hover .anchor-team-card-image,
.anchor-team-card-image-link:focus .anchor-team-card-image {
  transform: scale(1.025);
  filter: saturate(0.96);
}

/* Content */

.anchor-team-card-content {
  padding: 0;
}

/* Name */

.anchor-team-grid-wrap .anchor-team-card-name {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 30px !important;
  line-height: 1.02 !important;
  font-weight: 600 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
  color: #1d3a1e !important;
}

.anchor-team-grid-wrap .anchor-team-card-name a {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #1d3a1e !important;
  text-decoration: none !important;
}

.anchor-team-grid-wrap .anchor-team-card-name a:hover,
.anchor-team-grid-wrap .anchor-team-card-name a:focus {
  color: #2c5134 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Role / title */

.anchor-team-card-role {
  display: block;
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-family: "Albert Sans", Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: 0.015em !important;
  color: #2c5134 !important;
}

/* Quote */

.anchor-team-card-quote {
  position: relative;
  margin: 0 !important;
  padding: 15px 0 0 !important;
  border-top: 1px solid rgba(44, 81, 52, 0.22);
  font-family: "Albert Sans", Arial, sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  font-weight: 400 !important;
  color: #4b4f52 !important;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

/* Do not inject quotation marks.
   The ACF quote field may already include them. */
.anchor-team-card-quote::before,
.anchor-team-card-quote::after {
  content: none !important;
}

/* Focus states */

.anchor-team-card-image-link:focus-visible,
.anchor-team-card-name a:focus-visible {
  outline: 2px solid #ff9900;
  outline-offset: 4px;
}

/* Clean up Salient / WPBakery defaults */

.anchor-team-grid-wrap h3,
.anchor-team-grid-wrap p {
  padding: 0;
}

.anchor-team-grid-wrap p:empty {
  display: none;
}

.anchor-team-grid-wrap .anchor-team-card-content p:last-child {
  margin-bottom: 0;
}

/* Tablet */

@media (max-width: 999px) {
  .anchor-team-grid-wrap {
    margin: 30px auto 70px;
  }

  .anchor-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 58px;
  }

  .anchor-team-founders {
    margin-top: 66px;
    padding-top: 38px;
  }

  .anchor-team-grid-wrap .anchor-team-founders__heading {
    margin-bottom: 28px !important;
    font-size: 38px !important;
  }

  .anchor-team-grid-wrap .anchor-team-card-name {
    font-size: 29px !important;
  }

  .anchor-team-card-role {
    font-size: 15px !important;
  }

  .anchor-team-card-quote {
    font-size: 15.5px !important;
  }
}

/* Mobile */

@media (max-width: 690px) {
  .anchor-team-grid-wrap {
    margin: 26px auto 58px;
  }

  .anchor-team-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .anchor-team-founders {
    margin-top: 58px;
    padding-top: 34px;
  }

  .anchor-team-grid-wrap .anchor-team-founders__heading {
    max-width: 420px;
    margin: 0 auto 24px !important;
    font-size: 36px !important;
  }

  .anchor-team-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .anchor-team-card-image-link {
    margin-bottom: 18px;
  }

  .anchor-team-grid-wrap .anchor-team-card-name {
    font-size: 34px !important;
    line-height: 1.02 !important;
  }

  .anchor-team-card-role {
    margin-bottom: 13px !important;
    font-size: 16px !important;
  }

  .anchor-team-card-quote {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    padding-top: 14px !important;
    font-size: 16px !important;
    line-height: 1.64 !important;
  }
}
