/* v0.2.6 coach authority, About story and tablet hero focal-point refinements */

/* The supplied 800px portrait screenshots need individual focal points. The
   image moves left so the people on the right stay inside the tablet crop. */
@media (min-width: 641px) and (max-width: 1180px) {
  .xa-slide--physique .xa-slide__media img {
    object-position: 64% top;
  }

  .xa-slide--rebuild .xa-slide__media img {
    object-position: 72% top;
  }
}

/* The edited couple portrait is held as the sharp right-hand focal point in a
   purpose-built wide asset rather than being stretched across the viewport. */
.page-template-page-about-us .xa-inner-hero__media img {
  object-position: center top;
}

.page-template-page-about-us .xa-inner-hero__content {
  width: min(var(--xa-shell), calc(100% - 48px));
  max-width: var(--xa-shell);
  text-align: left;
}

.page-template-page-about-us .xa-inner-hero__content p {
  max-width: 650px;
  margin-right: 0;
  margin-left: 0;
}

.xa-about-story {
  overflow: hidden;
  background: #f4f0ef;
}

.xa-about-story .xa-section-head {
  max-width: 850px;
  margin-bottom: 60px;
}

.xa-about-story__grid {
  display: grid;
  gap: 0;
}

.xa-about-story__item {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  min-height: 450px;
  background: #fff;
}

.xa-about-story__item:nth-child(even) figure {
  order: 2;
}

.xa-about-story__item figure {
  position: relative;
  min-height: 450px;
  margin: 0;
  overflow: hidden;
  background: var(--xa-navy);
}

.xa-about-story__item figure:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(239, 66, 56, .22));
  pointer-events: none;
}

.xa-about-story__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.86) contrast(1.03);
  transition: transform .75s cubic-bezier(.2,.75,.25,1), filter .4s;
}

.xa-about-story__item:nth-child(2) img {
  object-position: center 40%;
}

.xa-about-story__item:nth-child(3) img {
  object-position: center top;
}

.xa-about-story__item:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.02);
}

.xa-about-story__item > div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(45px, 6vw, 88px);
}

.xa-about-story__item > div > span {
  position: absolute;
  top: 24px;
  right: 30px;
  color: rgba(239, 66, 56, .14);
  font-family: var(--xa-head);
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.xa-about-story__item h3 {
  position: relative;
  margin: 0 0 24px;
  color: var(--xa-navy);
  font-size: clamp(2rem, 3vw, 3rem);
}

.xa-about-story__item h3:before {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-bottom: 22px;
  background: var(--xa-red);
}

.xa-about-story__item p {
  position: relative;
  margin: 0 0 16px;
  color: #566970;
  line-height: 1.7;
}

.xa-coach-gallery--kristi figure:first-child img,
.xa-coach-gallery--kristi figure:nth-child(2) img {
  object-position: center center;
}

.xa-coach-gallery--kristi figure:nth-child(3) img {
  object-position: 58% center;
}

@media (max-width: 780px) {
  .page-template-page-about-us .xa-inner-hero__media img {
    object-position: right top;
  }

  .page-template-page-about-us .xa-inner-hero__content {
    width: calc(100% - 32px);
    text-align: center;
  }

  .page-template-page-about-us .xa-inner-hero__content p {
    margin-right: auto;
    margin-left: auto;
  }

  .xa-about-story .xa-section-head {
    margin-bottom: 35px;
  }

  .xa-about-story__item {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .xa-about-story__item:nth-child(even) figure {
    order: 0;
  }

  .xa-about-story__item figure {
    min-height: 320px;
  }

  .xa-about-story__item > div {
    padding: 45px 28px 50px;
  }

  .xa-about-story__item > div > span {
    top: 18px;
    right: 20px;
    font-size: 4.8rem;
  }
}
