/* Keep wide-screen artwork on the same centered grid as its copy.
   Background colors remain full width; mobile and ordinary desktop layouts
   keep their existing composition, typography and image links. */
@media (min-width: 1440px) {
  .site-v2 {
    --wide-wrap-width: min(92vw, 1920px);
    --wide-wrap-padding: 3vw;
    --wide-content-width: calc(var(--wide-wrap-width) - 2 * var(--wide-wrap-padding));
    --wide-content-edge: calc((100% - var(--wide-wrap-width)) / 2 + var(--wide-wrap-padding));
  }

  /* The global main .wrap override had cancelled these template limits. */
  .site-v2 .live-page {
    --wide-wrap-width: min(calc(100vw - 96px), 1440px);
    --wide-wrap-padding: 0px;
    --wide-content-width: var(--wide-wrap-width);
    --wide-content-edge: calc((100% - var(--wide-wrap-width)) / 2);
  }

  .site-v2 main .live-page .wrap {
    padding-inline: 0;
  }

  .site-v2 main .live-page .wrap,
  .site-v2 main .learn-page .wrap {
    max-width: 1440px;
  }

  .site-v2.sap-detail .sap-hero > .wrap {
    width: min(92vw, 1920px);
    max-width: 1920px;
  }

  /* Cloudax is an illustration: keep its right edge beside the content,
     instead of positioning it against the far edge of an ultrawide screen. */
  .site-v2 .cloudax-hero {
    background-position: calc(100% - (100vw - min(92vw, 1920px)) / 2 - 3vw) center;
    background-size: auto 100%;
  }

  .site-v2 .cloudax-hero::before {
    inset-inline: var(--wide-content-edge) auto;
    width: var(--wide-content-width);
  }

  /* Internal split heroes use the same bounded composition for both halves. */
  .site-v2 .page-banner .banner-photo {
    left: auto;
    right: var(--wide-content-edge);
    width: calc(var(--wide-content-width) * .57);
  }

  .site-v2 .page-banner::after {
    inset-inline: var(--wide-content-edge) auto;
    width: var(--wide-content-width);
  }

  .site-v2.sap-detail .sap-hero-photo {
    left: auto;
    right: var(--wide-content-edge);
    width: calc(var(--wide-content-width) * .58);
  }

  .site-v2 .live-hero .live-photo {
    left: calc(var(--wide-content-edge) + var(--wide-content-width) * .38);
    right: var(--wide-content-edge);
  }

  .site-v2 .live-hero::after {
    inset-inline: var(--wide-content-edge) auto;
    width: var(--wide-content-width);
  }

  .site-v2 .segment-page .segment-hero-photo {
    left: calc(var(--wide-content-edge) + var(--wide-content-width) * .47);
    right: var(--wide-content-edge);
  }
}
