
/* Headings */
.text-block-title:not(:first-child) {
  margin-top: 3.5rem;
}

/* Lead */
.text-block-lead:not(:last-child) {
  margin-bottom: 1.5rem;
}
.text-block-lead, .text-block-lead p, .text-block-lead ul li {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.85;
}
.text-block-lead:last-child p:last-child {
  margin-bottom: 0;
}
.text-block-lead b, .text-block-lead strong {
  font-weight: 700;
}
.font-size-lead.text-block-link a {
  font-family: var(--font);
  font-size: 1.6875rem;
}
.font-size-lead .text-block-link-arrow .arrow-svg {
  width: 2.25rem;
  height: 2.25rem;
}


/* Text */
.text-block .text-block-text:not(:last-child) {
  margin-bottom: 1.5rem;
}
.text-block .text-block-text:last-child p:last-child {
  margin-bottom: 0;
}
.text-block-text a {
  text-decoration: underline;
}


/* Link */
.text-block-link a {
  font-family: var(--font);
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  margin-bottom: 1rem;
}
.text-center .text-block-link a {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.text-block-link-arrow {
  margin-left: 0.75rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}


/* Citation */
.text-block-citation {
  align-items: center;
  display: grid;
  grid-gap: 5.75rem;
  grid-template-columns: 21rem 1fr;
}
.text-block-citation:not(:first-child) {
  margin-top: 3rem;
}
.text-block .citation-image {
  position: relative;
}
.text-block .citation-text p {
  font-size: 1.5625rem;
  font-weight: 400;
  line-height: 1.68;
}
.text-block .citation-title {
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
}

.text-block-citation .image-block {
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  position: relative;
  width: 100%;
}
.text-block-citation .image-block img {
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
}

.text-block .quote-block {
  align-items: center;
  background: var(--color-primary);
  display: flex;
  height: 5rem;
  justify-content: center;
  position: absolute;
  right: -1.25rem;
  top: -1.25rem;
  width: 5rem;
  z-index: 1;
}
.text-block .quotes-alt {
  position: absolute;
  transform: translatex(-66px);
}


/* Button */
.text-block .btn {
  display: inline-flex;
}
.text-block .btn:not(:first-child) {
  margin-top: 1.5rem;
}
.text-block .btn:not(:last-child) {
  margin-right: 1rem;
}
.text-block .btn + .btn {
  margin-top: 1rem;
}

.text-block-lead + .btn,
.text-block-lead + .btn:not(:first-child) {
  margin-top: .5rem;
}



/***************   Mobile    ***************/

@media (max-width: 1199px) {
  /* Citation */
  .text-block-citation {
    grid-gap: 4rem;
    grid-template-columns: 16rem 1fr;
  }
  .text-block .quote-block {
    height: 3.875rem;
    right: -1rem;
    top: -1rem;
    width: 4rem;
  }
  .text-block .quotes {
    width: 1.875rem;
  }
  .text-block .citation-text p {
    font-size: 1.375rem;
  }
  .text-block .citation-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 1023px) {
  .text-block-lead, .text-block-lead p {
    font-size: 1.125rem;
  }
  .text-block-text {
    font-size: 1rem;
  }
  .text-block-text p {
    margin-bottom: 1.5rem;
  }
  .text-block-link a {
    font-size: 1rem;
  }

  /* Citation */
  .text-block-plain-citation {
    padding-left: 5rem;
  }
}

@media (max-width: 823px) {
  /* Citation */
  .text-block-citation {
    grid-gap: 2rem;
    grid-template-columns: 1fr;
  }
  .text-block .quote-block {
    right: -0.75rem;
    top: -0.75rem;
  }
  .text-block .quotes {
    width: 1.875rem;
  }
  .text-block .citation-text p {
    font-size: 1.25rem;
  }
  .text-block .citation-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 639px) {
  /* Citation */
  .text-block-plain-citation {
    padding-left: 0rem;
  }
  .text-block .quotes-alt {
    transform: translatex(-2.875rem);
    width: 1.625rem;
  }
}
