/* V4: wide-screen photo placement for the three existing Background A sections.
   Load after revision-home-v3.css. The mobile photo stack remains unchanged. */
@media (min-width:769px){
  body[data-page-key="home"] .slant-section{
    --slant-photo-inset:clamp(24px,2.7vw,56px);
    --slant-photo-width:clamp(270px,31vw,640px);
    --slant-photo-height:calc(var(--slant-photo-width) / 1.14);
    --slant-photo-top:calc(var(--slant-depth) + 54px);
    --slant-caption-space:150px;
  }

  /* Both halves use the section edges, rather than the 1400px text container. */
  body[data-page-key="home"] .slant-section .section-backdrop>img,
  body[data-page-key="home"] #customization.slant-section .section-backdrop>img,
  body[data-page-key="home"] .slant-section.workflow .section-backdrop>img{
    top:var(--slant-photo-top);
    bottom:auto;
    left:var(--slant-photo-inset);
    right:auto;
    width:var(--slant-photo-width);
    height:var(--slant-photo-height);
    max-width:none;
    object-fit:cover;
    object-position:center;
  }
  body[data-page-key="home"] #customization.slant-section .section-backdrop>img{
    left:auto;
    right:var(--slant-photo-inset);
  }

  /* Retain Background A's mirrored fade, ending at the new photo edge. */
  body[data-page-key="home"] .slant-section .section-backdrop:after,
  body[data-page-key="home"] .slant-section.workflow .section-backdrop:after{
    background:linear-gradient(90deg,
      #F1E8D700 0,
      #F1E8D700 calc(var(--slant-photo-inset) + var(--slant-photo-width) * .86),
      #F1E8D7 calc(var(--slant-photo-inset) + var(--slant-photo-width)),
      #F1E8D7 100%);
  }
  body[data-page-key="home"] #customization.slant-section .section-backdrop:after{
    background:linear-gradient(270deg,
      #F1E8D700 0,
      #F1E8D700 calc(var(--slant-photo-inset) + var(--slant-photo-width) * .86),
      #F1E8D7 calc(var(--slant-photo-inset) + var(--slant-photo-width)),
      #F1E8D7 100%);
  }

  /* Keep the existing grid's copy placement. Only the visual and its label
     use the section as their positioning reference. The label has its own
     reserved space below the photo, so it cannot cover the feeder or tray. */
  body[data-page-key="home"] .slant-section>.angled-layout{
    position:static;
  }
  body[data-page-key="home"] .slant-section .angle-visual,
  body[data-page-key="home"] #customization.slant-section .angle-visual{
    position:static;
    isolation:auto;
    width:auto;
    max-width:none;
    min-height:max(500px,calc(var(--slant-photo-height) + var(--slant-caption-space)));
    max-height:none;
    margin:0;
  }
  body[data-page-key="home"] .slant-section .angle-visual>span,
  body[data-page-key="home"] #customization.slant-section .angle-visual>span{
    top:calc(var(--slant-photo-top) + var(--slant-photo-height) + 12px);
    bottom:auto;
    left:var(--slant-photo-inset);
    right:auto;
    max-width:var(--slant-photo-width);
    transform:none;
  }
  body[data-page-key="home"] #customization.slant-section .angle-visual>span{
    left:auto;
    right:calc(var(--slant-photo-inset) + 56px);
  }

  /* The production photo remains below its existing left-column heading.
     Reserving the full photo height keeps both elements from overlapping. */
  body[data-page-key="home"] .slant-section.workflow .workflow-title{
    padding-bottom:calc(var(--slant-photo-height) + 36px);
  }
  body[data-page-key="home"] .slant-section.workflow .section-backdrop>img{
    top:auto;
    bottom:calc(var(--slant-depth) + 54px);
  }
}

/* Keep the enlarged main pictures within the original reading rhythm. The
   existing slanted bottom padding also accommodates the separate label. */
@media(min-width:769px){
  body[data-page-key="home"] .slant-section:not(.workflow){
    --slant-photo-top:calc(var(--slant-depth) + 20px);
    padding:calc(var(--slant-depth) + 20px) 0 calc(var(--slant-depth) + 40px);
  }
  body[data-page-key="home"] .slant-section .angle-visual,
  body[data-page-key="home"] #customization.slant-section .angle-visual{
    min-height:max(500px,calc(var(--slant-photo-height) + 32px));
  }
  /* This decorative process image keeps its established scale beneath the
     heading, rather than adding a second full-height picture to the module. */
  body[data-page-key="home"] .slant-section.workflow .workflow-title{padding-bottom:0}
  body[data-page-key="home"] .slant-section.workflow .section-backdrop>img{
    height:43%;
    bottom:var(--slant-depth);
    object-fit:contain;
    object-position:left bottom;
  }
  body[data-page-key="home"] .slant-section.workflow .section-backdrop:after{
    background:linear-gradient(90deg,#F1E8D700 0%,#F1E8D714 30%,#F1E8D7 46%);
  }
}
