/* Full overlay content block — ported from CMS11 _content-block.scss for career pages */

body.career-template .content-block {
  background-size: cover;
  display: grid;
  position: relative;
  width: 100%;
}

@media screen and (min-width: 64em) {
  body.career-template .content-block:not(.content-block--flex) {
    min-height: 100vh;
  }
}

body.career-template .content-block__background-image {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  height: 100%;
  position: relative;
  overflow: hidden;
  width: 100%;
  z-index: -1;
}

@media screen and (min-width: 64em) {
  body.career-template .content-block__background-image {
    height: 100%;
    position: absolute;
  }
}

body.career-template .content-block__background-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
}

body.career-template .content-block__body {
  margin: 0 0 1.5rem;
  max-width: 60rem;
  text-align: center;
  line-height: 1.5;
}

body.career-template .content-block__body a {
  font-weight: 700;
}

body.career-template .content-block__button {
  margin-bottom: 1rem;
}

@media screen and (min-width: 64em) {
  body.career-template .content-block__button {
    margin-right: 1rem;
  }

  body.career-template .content-block__button:last-of-type {
    margin-right: 0;
  }
}

body.career-template .content-block__buttons {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
}

body.career-template .content-block__buttons .btn {
  margin-bottom: 0.5rem;
}

@media screen and (min-width: 64em) {
  body.career-template .content-block__buttons {
    flex-direction: row;
    justify-content: center;
  }

  body.career-template .-align-left .content-block__buttons {
    justify-content: flex-start;
  }
}

body.career-template .content-block__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  max-width: 60rem;
}

body.career-template .content-block__heading {
  font-size: 2rem;
  font-weight: 300;
  margin: 0 0 1.25rem;
  text-align: center;
}

@media screen and (min-width: 64em) {
  body.career-template .content-block__heading {
    font-size: 3rem;
    line-height: 1;
  }
}

body.career-template .content-block__overlay {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  height: 100%;
  justify-content: center;
  width: 100%;
}

body.career-template .bg-light .content-block__overlay {
  background: var(--career-white-opaque, rgba(255, 255, 255, 0.95));
}

body.career-template .bg-dark .content-block__overlay {
  background: color-mix(in srgb, var(--career-black, #121212) 95%, transparent);
  color: var(--career-text-light, #ffffff);
}

body.career-template .bg-primary-light .content-block__overlay {
  background: color-mix(in srgb, var(--career-primary-light) 95%, transparent);
}

body.career-template .bg-primary-dark .content-block__overlay {
  background: color-mix(in srgb, var(--career-primary-dark) 95%, transparent);
  color: var(--career-text-light, #ffffff);
}

body.career-template .bg-secondary-light .content-block__overlay {
  background: color-mix(in srgb, var(--career-secondary-light) 95%, transparent);
}

body.career-template .bg-secondary-dark .content-block__overlay {
  background: color-mix(in srgb, var(--career-secondary-dark) 95%, transparent);
  color: var(--career-text-light, #ffffff);
}

body.career-template .bg-light .content-block__overlay--bg-solid {
  background: var(--career-white, #ffffff);
  color: var(--career-text-dark, #121212);
}

body.career-template .bg-dark .content-block__overlay--bg-solid {
  background: var(--career-black, #121212);
  color: var(--career-text-light, #ffffff);
}

body.career-template .bg-primary-light .content-block__overlay--bg-solid {
  background: var(--career-primary-light);
  color: var(--career-text-dark, #121212);
}

body.career-template .bg-primary-dark .content-block__overlay--bg-solid {
  background: var(--career-primary-dark);
  color: var(--career-text-light, #ffffff);
}

body.career-template .bg-secondary-light .content-block__overlay--bg-solid {
  background: var(--career-secondary-light);
  color: var(--career-text-dark, #121212);
}

body.career-template .bg-secondary-dark .content-block__overlay--bg-solid {
  background: var(--career-secondary-dark);
  color: var(--career-text-light, #ffffff);
}

body.career-template .content-block__subheading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-align: center;
}

body.career-template .content-block__subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-align: center;
}

@media screen and (min-width: 64em) {
  body.career-template .content-block__subtitle {
    font-size: 3rem;
    line-height: 1;
    font-weight: 300;
  }
}

body.career-template .content-block__caption {
  padding: 0 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

@media screen and (min-width: 64em) {
  body.career-template .content-block__caption {
    padding: 0 5rem;
  }
}

body.career-template .content-block--flex {
  height: auto !important;
}

/* CMS11 _content-block.scss — flex overlays in 2-across rows fill column height */
body.career-template .row .content-block--flex {
  height: 100% !important;
}

body.career-template .content-block--flex .content-block__content {
  padding: 2rem 1rem;
  max-width: 60rem;
}

@media screen and (min-width: 64em) {
  body.career-template .row .content-block--flex .content-block__content {
    max-width: 45rem;
    padding: 3rem;
  }
}

body.career-template .content-block.-align-left .content-block__body,
body.career-template .content-block.-align-left .content-block__caption {
  text-align: left;
}

body.career-template .content-block.-align-left .content-block__caption {
  padding: 0;
}

body.career-template .content-block.-align-left .content-block__content {
  align-items: flex-start;
}

@media screen and (min-width: 64em) {
  body.career-template .allow-animation .content-block.animate .content-block__background-image {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  body.career-template .allow-animation .content-block.animate .content-block__overlay {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
  }

  body.career-template .allow-animation .content-block.animate .content-block__content {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.75s ease 0.5s, transform 0.75s ease 0.5s;
  }

  body.career-template .allow-animation .content-block.animate.-visible .content-block__background-image,
  body.career-template .allow-animation .content-block.animate.-visible .content-block__overlay,
  body.career-template .allow-animation .content-block.animate.-visible .content-block__content {
    opacity: 1;
    transform: translateY(0);
  }
}
