/* Keep custom banner images at the normal inner-page image ratio. */
.page-production-capabilities:not(.about-custom) .page-production-hero__overlay {
  display: none;
}

.page-product-center .page-product-center__hero-overlay {
  display: none;
}

.page-production-capabilities:not(.about-custom) .page-production-hero__inner {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
  padding-right: 0;
  padding-left: 0;
}

@media (min-width: 768px) and (max-width: 991px) {
  .page-production-capabilities:not(.about-custom) .page-production-hero__inner {
    width: min(calc(100% - 28px), 920px);
  }
}

@media (max-width: 767px) {
  .page-production-capabilities:not(.about-custom) .page-production-hero__inner {
    width: calc(100% - 24px);
  }
}

.page-service-custom .page-service-breadcrumbs,
.page-service-custom .page-service-hero h1,
.page-service-custom .page-service-hero__text {
  color: #082f68;
  text-shadow: none;
}

@media (min-width: 992px) {
  .page-product-center .page-product-center__hero-content,
  .page-production-capabilities:not(.about-custom) .page-production-hero__content {
    width: min(34%, 520px);
  }

  .page-product-center .page-product-center__hero-text,
  .page-production-capabilities:not(.about-custom) .page-production-hero__text {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .page-production-capabilities:not(.about-custom) .page-production-hero h1 {
    font-size: 36px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .page-product-center .page-product-center__hero-text p + p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .page-production-capabilities:not(.about-custom) .page-production-hero h1 {
    font-size: 28px;
  }

  .page-product-center .page-product-center__hero-text p + p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .page-product-center .page-product-center__hero-content {
    width: min(50%, 390px);
  }

  .page-production-capabilities:not(.about-custom) .page-production-hero__content {
    width: min(44%, 340px);
  }

  .page-production-capabilities:not(.about-custom) .page-production-hero h1 {
    font-size: 26px;
  }
}

.page-production-capabilities:not(.about-custom) .page-production-hero__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-production-capabilities:not(.about-custom) .page-production-hero h1 {
  display: block;
  overflow: visible;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.page-production-capabilities:not(.about-custom) .page-production-hero__text p {
  -webkit-line-clamp: 5;
}

@media (max-width: 767px) {
  .page-production-capabilities:not(.about-custom) .page-production-hero__image {
    object-position: 25% center;
  }

  .page-production-capabilities:not(.about-custom) .page-production-hero h1 {
    font-size: 30px;
  }

  .page-product-center .page-product-center__hero-text,
  .page-production-capabilities:not(.about-custom) .page-production-hero__text {
    font-size: 14px;
  }

  .page-product-center .page-product-center__hero-text p + p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
  }
}

.page-product-center .page-product-center__hero,
.page-production-capabilities .page-production-hero {
  height: auto;
  min-height: 0;
}

.page-product-center .page-product-center__hero-image,
.page-production-capabilities .page-production-hero__image {
  position: relative;
  z-index: auto;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-product-center .page-product-center__hero-inner,
.page-production-capabilities .page-production-hero__inner {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}

@media (max-width: 1399px) {
  .page-product-center .page-product-center__hero,
  .page-production-capabilities .page-production-hero {
    height: auto;
    min-height: max(390px, 26.0417vw);
  }

  .page-product-center .page-product-center__hero-image,
  .page-production-capabilities .page-production-hero__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-product-center .page-product-center__hero-inner,
  .page-production-capabilities .page-production-hero__inner {
    position: relative;
    inset: auto;
    height: auto;
    min-height: max(390px, 26.0417vw);
    padding-top: 88px;
    padding-bottom: 28px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .page-product-center .page-product-center__hero h1,
  .page-product-center .page-product-center__hero-text {
    color: #fff;
  }

  .page-product-center .page-product-center__hero-rule {
    background: #fff;
  }
}

/* The production banner grows with the complete approved heading. */
.page-production-capabilities:not(.page-quality-control):not(.page-service-custom):not(.about-custom) .page-production-hero__inner {
  position: relative;
  inset: auto;
  min-height: max(390px, 26.0417vw);
}

.page-production-capabilities:not(.page-quality-control):not(.page-service-custom):not(.about-custom) .page-production-hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .page-product-center .page-product-center__hero-inner {
    text-shadow: 0 2px 4px rgba(0, 15, 35, .98), 0 0 6px rgba(0, 15, 35, .85);
  }
}

@media (max-width: 767px) {
  .page-product-center .page-product-center__hero,
  .page-production-capabilities .page-production-hero {
    height: auto;
    min-height: 0;
  }

  .page-product-center .page-product-center__hero-image,
  .page-production-capabilities .page-production-hero__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-product-center .page-product-center__hero-inner,
  .page-production-capabilities .page-production-hero__inner {
    min-height: 390px;
    padding-top: 72px;
    padding-bottom: 34px;
  }

  .page-product-center .page-product-center__hero h1,
  .page-product-center .page-product-center__hero-text {
    color: #fff;
  }

  .page-product-center .page-product-center__hero-rule {
    background: #fff;
  }
}
