/* Shared replacement for the former pixelated photo reveal. */
.ap-pixel-photo { position:relative; display:block; width:100%; overflow:hidden; }
.ap-pixel-photo > img { display:block; }
.ap-photo-band-frame.ap-pixel-pending > .ap-photo-band-media { opacity:0; }
.ap-photo-band { position:absolute; inset:0; transform:translateX(-102%); z-index:2; background:var(--site-black,#17191d); pointer-events:none; }
.ap-photo-band-visible > .ap-photo-band { animation:site-band-sweep var(--site-band-duration) var(--site-band-ease) both; will-change:transform; }
.ap-photo-band-visible > .ap-photo-band-media { animation:site-band-ink var(--site-band-duration) linear both; }
@media(prefers-reduced-motion:reduce) {
  .ap-photo-band { display:none; }
  .ap-photo-band-frame.ap-pixel-pending > .ap-photo-band-media { opacity:1; animation:none; }
  .ap-photo-band-visible > .ap-photo-band-media { animation:none; }
}
/* Stretch photos inside equal-height rows so spare height cannot add bottom space. */
body.aitria-panel.page-ai-ux-sprint #solutions .sol-illu,
body.editorial-site.service-panel[data-site-page] [data-sprint-solutions] .sol-illu,
body.editorial-site.service-panel[data-site-page] #about[data-sprint-approach] .foundation-row-media,
body.editorial-site.service-panel.page-internalization[data-site-page] #solutions .sol-photo {
  display:grid; grid-template-rows:minmax(0,1fr);
}
body.aitria-panel.page-ai-ux-sprint #solutions .ap-pixel-photo,
body.editorial-site.service-panel[data-site-page] [data-sprint-solutions] .ap-pixel-photo,
body.editorial-site.service-panel[data-site-page] #about[data-sprint-approach] .ap-pixel-photo,
body.editorial-site.service-panel.page-internalization[data-site-page] #solutions .sol-photo .ap-pixel-photo {
  height:100%; min-height:0;
}
body.aitria-panel.page-ai-ux-sprint #solutions .sol-illu img,
body.editorial-site.service-panel[data-site-page] [data-sprint-solutions] .sol-illu img,
body.editorial-site.service-panel[data-site-page] #about[data-sprint-approach] .foundation-row-media img {
  height:100%; max-height:none;
}
@media(min-width:681px) {
  body.editorial-site.service-panel[data-site-page] [data-sprint-solutions] .sol-illu,
  body.editorial-site.service-panel[data-site-page] #about[data-sprint-approach] .foundation-row-media {
    padding:16px 0 16px 16px;
  }
}
@media(max-width:1099px) {
  body.aitria-panel.page-ai-ux-sprint #solutions .sol-illu { padding:0; }
}
@media(max-width:680px) {
  body.editorial-site.service-panel[data-site-page] [data-sprint-solutions] .sol-illu,
  body.editorial-site.service-panel[data-site-page] #about[data-sprint-approach] .foundation-row-media { padding:0; }
  body.editorial-site.service-panel.page-internalization[data-site-page] #solutions .sol-photo { padding:20px; }
}
/* Former coordinate scenes now have one ordinary, full-image frame. */
@layer photo-band-frames {
  body[data-site-page] .image-band-frame {
    position:relative;
    box-sizing:border-box;
    border:1px solid var(--panel-rule,var(--border,var(--line,#8a8f95))) !important;
    overflow:hidden !important;
  }
  /* The adjacent copy panel draws the shared desktop divider. */
  @media(min-width:1100px) {
    body[data-site-page="training"] #related .related-service-visual > .image-band-frame,
    body[data-site-page="ai-ux-sprint"] #workshop-link .related-service-visual > .image-band-frame {
      border-right:0 !important;
    }
  }
  body[data-site-page] .image-band-frame::before,
  body[data-site-page] .image-band-frame::after,
  body[data-site-page] [data-photo-panel]:has(.image-band-frame)::before,
  body[data-site-page] .workshop-program-visual:has(.image-band-frame)::before { content:none !important; }
  body[data-site-page] .image-band-frame .ap-photo-band-media { clip-path:none !important; }
  body[data-site-page] .image-band-frame > .cross-crop { inset:0 !important; }
  body[data-site-page] .image-band-frame img { transform:none !important; transition:none !important; }
  body[data-site-page] .image-band-frame.service-reveal-item,
  body[data-site-page] .service-reveal-item:has(.image-band-frame) {
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
  @media(max-width:767px) {
    body[data-site-page] .ops-band.sprint-marker-target:has(.related-service-visual > .image-band-frame) {
      padding-top:calc(var(--sprint-marker-top-space) + 44px) !important;
    }
  }
}

/* Clip only the photo so case headings and links retain their layout. */
body[data-site-page] .case-photo-band {
  position:relative;
  display:block;
  width:100%;
  overflow:hidden;
}
body[data-site-page] .case-photo-band > .ap-photo-band-media {
  display:block;
  width:100%;
}
