/**
* Below function is responsible to calculate the clamp value based on the received parameters
* $font-size-at-min-width - Required font size at minimum width of viewport
* $font-size-at-max-width - Required font size at minimum width of viewport
* $min-width - Minimum width of viewport
* $max-width - Maximum width of viewport
**/
/**
* Below function is responsible to generate the css variable and add to root.
* $suffix - this will be added to the end of the variable name.
* $variable-list - CSS map for list of required variables which include class/tag names and min/max values.
* $is-clamp-variable - Boolean indicating whether it's to generate clamp variable.
* $breakpoint - If this value is present then breakpoint based list will come.
**/
.profile-card {
  max-width: 60rem;
  -webkit-box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.03), 0 12px 16px -4px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.03), 0 12px 16px -4px rgba(0, 0, 0, 0.08);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.profile-card__image-wrapper {
  height: 28.3rem;
  position: relative;
  z-index: 0;
}
.profile-card__image {
  height: inherit;
}
.profile-card__content {
  -webkit-transition: all 0.5s ease-in;
  transition: all 0.5s ease-in;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.profile-card__content p:has(+ .cta) {
  margin-bottom: 0;
}
.profile-card .cta {
  margin-top: 3rem;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  opacity:0;
  color:var(--copper);
}
.profile-card--visible .profile-card__content {
  background-color: var(--copper);
  color: var(--white);
  margin-top: -5.4rem;
}
.profile-card--visible .cta {
  display: inline-block;
  opacity: 1;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  color: var(--white);
}
.profile-card .cta--default .cta__label::after {
  background-color: var(--copper);
}
.profile-card--visible .cta .icon {
  color: inherit;
}

.profile-card:hover .profile-card__content,.profile-card:focus-within .profile-card__content {
  margin-top: -5.4rem;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.profile-card:hover .cta,.profile-card:focus-within .cta {
  display: inline-block;
  opacity: 1;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.profile-detail {
  overflow: hidden;
  max-height: 0;
  -webkit-transition: max-height 0s;
  transition: max-height 0s;
  width: 100%;
}
.profile-detail__close {
  position: absolute;
  top: var(--lg-4);
  right: var(--lg-4);
  border: none;
  background-color: transparent;
  color: var(--onyx);
  font-size: 4rem;
  padding: 0;
  line-height: 2.6rem;
  z-index: 1;
  visibility: hidden;
}
.profile-detail.profile-detail--visible .profile-detail__close{visibility: visible;}
.profile-detail__title-wrapper {
  max-width: 72rem;
}
.profile-detail .body-text p:last-child {
  margin-bottom: 0;
}
.profile-detail--visible {
  -webkit-transition: max-height 2s;
  transition: max-height 2s;
  max-height: 2000px;
  width: 100%;
  margin-top: var(--sm-1);
}

.profiles > .row > [class*=col-] {
  margin-bottom: var(--sm-1);
}

.bod {
  scroll-margin-top: 9.7rem;
}

@media (min-width: 576px) {
  .profiles [class*=col-] .profile-detail--visible {
    width: calc(200% + 1.6rem);
  }
  .profiles [class*=col-]:nth-child(2n+2) .profile-detail {
    left: calc(-100% - 1.6rem);
  }
}
@media (min-width: 992px) {
  .profile-detail::after {
    width: 35.2rem;
    height: 26.6rem;
    background-size: 100%;
  }
  .profiles [class*=col-] .profile-detail--visible {
    width: calc(300% + 3.2rem);
  }
  .profiles [class*=col-]:nth-child(3n+1) .profile-detail {
    left: 0;
  }
  .profiles [class*=col-]:nth-child(3n+2) .profile-detail {
    left: calc(-100% - 1.6rem);
  }
  .profiles [class*=col-]:nth-child(3n+3) .profile-detail {
    left: calc(-200% - 3.2rem);
  }
}
@media (min-width: 1200px) {
  .profile-card {
    max-height: 486px;
    overflow-y: hidden;
  }
  .profile-card__image-wrapper {
    height: 32.4rem;
  }
  .profiles [class*=col-] .profile-detail--visible {
    width: calc(300% + 6.4rem);
  }
  .profiles [class*=col-]:nth-child(3n+1) .profile-detail {
    left: 0;
  }
  .profiles [class*=col-]:nth-child(3n+2) .profile-detail {
    left: calc(-100% - 3.2rem);
  }
  .profiles [class*=col-]:nth-child(3n+3) .profile-detail {
    left: calc(-200% - 6.4rem);
  }
}