/* V16 — minimal alignment/composition overrides on the exact V15 baseline.
   No changes to the approved colours, type scale, wording, or source images. */

/* Home introduction: align the paragraph box with the container's right edge. */
body.v10-page .home-problems .intro-row > p {
  justify-self: end;
  width: 100%;
  margin-inline: 0;
}

/* Align the actual contained product image, not only its wider figure box. */
body.v10-page .system-overview .cutaway {
  justify-self: end;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
}
body.v10-page .system-overview .cutaway img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-left: auto;
}
body.v10-page .system-overview .cutaway figcaption {
  width: 100%;
  text-align: right;
  margin: 6px 0 0;
}

/* Both the three service columns and four industry columns span the container. */
body.v10-page .service-editorial {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.v10-page .service-editorial > article {
  min-width: 0;
  padding-right: 0;
}
body.v10-page .service-editorial p {
  max-width: none;
}

/* Industrial overview: keep the current image size, anchor image and note right. */
body.legacy .product-introduction .industrial-overview-image {
  justify-self: end;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
body.legacy .industrial-overview-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-left: auto;
}
body.legacy .industrial-overview-image .illustration-note {
  width: 100%;
  margin: 6px 0 0;
  text-align: right;
}

/* Mobile package: top-aligned columns and a lower, landscape product stage. */
body.legacy .package-overview {
  align-items: start;
}
body.legacy .product-carousel {
  justify-self: end;
}
body.legacy #package .section-title {
  margin-bottom: 24px;
}
body.legacy .product-slide img {
  aspect-ratio: 16 / 10;
}

/* Edge controller: keep the approved source and dimensions, align right. */
body.legacy .connect-feature .edge-photo {
  justify-self: end;
}

/* AQFILM banner: replace the skewed photo with the approved deep-blue palette.
   This CSS background deliberately supersedes the existing inline photo URL. */
body.page-aqfilm .photo-banner .banner-photo {
  inset: 0;
  transform: none;
  background-image:
    radial-gradient(ellipse at 90% 50%, #00b48d1a 0%, transparent 58%),
    linear-gradient(90deg, #05284e 0%, #143e61 65%, #105088 100%) !important;
  background-position: center;
  background-size: cover;
}
body.page-aqfilm .photo-banner .banner-photo::after {
  background: none;
}

@media (min-width: 901px) {
  body.legacy.page-compact-mobile-water .source-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
  body.legacy.page-compact-mobile-water .source-grid > figure,
  body.legacy.page-compact-mobile-water .source-grid > figure:nth-child(4),
  body.legacy.page-compact-mobile-water .source-grid > figure:nth-child(5) {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  body.v10-page .service-editorial {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 761px) {
  /* Match the two entry rows to the carousel's top and bottom without adding
     any space above the entries or changing their text or typography. */
  body.legacy .package-overview > .package-grid {
    align-self: stretch;
    align-content: space-between;
  }
}
