/* AIMMO System v8 — chapter 03 application / adoption photo evidence. */
html body.aimmo-system-page #journey .aimmo-application-gallery{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;
  max-width:none!important;
  gap:0!important;
  margin-right:0!important;
  margin-left:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#000!important;
}
html body.aimmo-system-page #journey .aimmo-application-gallery__item{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  aspect-ratio:1/1!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:#050505!important;
}
html body.aimmo-system-page #journey .aimmo-application-gallery__item img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center!important;
  filter:none!important;
  transform:none!important;
}
html body.aimmo-system-page #journey .aimmo-application-gallery__item::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:auto 0 0;
  height:52%;
  pointer-events:none;
  background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.48) 52%,rgba(0,0,0,0) 100%);
}
html body.aimmo-system-page #journey .aimmo-application-gallery__item figcaption{
  position:absolute!important;
  z-index:2!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  margin:0!important;
  padding:28px!important;
}
html body.aimmo-system-page #journey .aimmo-application-gallery__item figcaption span{
  display:block!important;
  margin:0 0 10px!important;
  color:var(--hm-blue)!important;
  font-family:var(--hm-font-en)!important;
  font-size:12px!important;
  font-weight:400!important;
  letter-spacing:var(--hm-track-note)!important;
}
html body.aimmo-system-page #journey .aimmo-application-gallery__item figcaption h4{
  margin:0!important;
  max-width:30ch!important;
  color:#fff!important;
  font-family:var(--hm-font-ko)!important;
  font-size:22px!important;
  font-weight:300!important;
  line-height:1.35!important;
  word-break:keep-all!important;
}

/* 03.2 — third gallery caption: match the standard desktop editorial left inset. */
@media(min-width:781px){
  html body.aimmo-system-page #journey .aimmo-application-gallery__item:nth-child(3) figcaption{
    padding-left:40px!important;
  }
}

/* 02.1 — keep the subsection heading on the shared/default scale; only gallery titles are 22px. */
html body.aimmo-system-page #data .aimmo-evidence-gallery .aimmo-evidence-card figcaption strong{
  display:block!important;
  margin:0!important;
  color:#fff!important;
  font-family:var(--hm-font-ko)!important;
  font-size:22px!important;
  font-weight:300!important;
  font-variation-settings:"wght" 300!important;
  line-height:1.35!important;
  word-break:keep-all!important;
}

/* 02.3 — keep the restored copy length; body copy stays merged into the gallery title. */
html body.aimmo-system-page #data .aimmo-improvement-gallery .aimmo-evidence-card figcaption p{
  display:none!important;
}

/* OUTPUT — use the same 32px title-to-chart rhythm as the DECISION chart. */
html body.aimmo-system-page #data .aimmo-output-graph figcaption{
  min-height:0!important;
}
html body.aimmo-system-page #data .aimmo-output-graph__title{
  margin-bottom:0!important;
}
html body.aimmo-system-page #data .aimmo-output-graph .aimmo-reference-bars{
  margin-top:32px!important;
}

/* Requested editorial lines stay unbroken on desktop only. */
@media(min-width:781px){
  html body.aimmo-system-page #data .data-list > .data-card:nth-child(2) .data-card-head .desc,
  html body.aimmo-system-page #data .data-list > .data-card:nth-child(3) .data-card-head .desc,
  html body.aimmo-system-page #data .aimmo-context-insight:nth-child(2) .aimmo-context-insight__copy,
  html body.aimmo-system-page #data .aimmo-context-insight:nth-child(3) .aimmo-context-insight__copy,
  html body.aimmo-system-page #data .aimmo-context-insight:nth-child(4) .aimmo-context-insight__copy{
    max-width:none!important;
    white-space:nowrap!important;
  }
}

@media(max-width:780px){
  html body.aimmo-system-page #journey .aimmo-application-gallery{
    grid-template-columns:1fr!important;
  }
  html body.aimmo-system-page #journey .aimmo-application-gallery__item figcaption{
    padding:22px!important;
  }
  html body.aimmo-system-page #journey .aimmo-application-gallery__item figcaption h4,
  html body.aimmo-system-page #data .aimmo-evidence-gallery .aimmo-evidence-card figcaption strong{
    font-size:22px!important;
  }
  html body.aimmo-system-page #data .aimmo-improvement-gallery .aimmo-evidence-card figcaption strong{
    white-space:normal!important;
  }
}
