/* Local layout/photo increment. Native headings, type, palette and scripts stay authoritative. */
.medical-masonry.fh-layout-products,
.medical-masonry.fh-layout-applications{align-items:stretch!important;grid-auto-rows:auto!important;grid-auto-flow:row}
.fh-layout-products>.machine-card,
.fh-layout-applications>.case-card{margin-top:0!important;align-self:stretch!important;min-width:0;translate:none!important;display:grid!important;grid-template-rows:subgrid;row-gap:0}
.fh-layout-products>.machine-card{grid-row:span 6!important}
.fh-layout-products .machine-image{height:auto;min-height:0;aspect-ratio:3/2;position:relative}
.fh-layout-products .machine-image>img:first-child,
.fh-layout-products .machine-image>.machine-alt{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.fh-layout-products .machine-copy{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:0;min-width:0;padding:25px 27px 27px!important}
.fh-layout-products .machine-copy>.machine-spec{align-self:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:subgrid;grid-row:span 2;row-gap:0}
.fh-layout-products .machine-copy .machine-spec>span{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:0;min-width:0;margin-top:0}
.fh-layout-applications>.case-card{grid-row:span 4!important}
.fh-layout-applications>.case-card>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.fh-layout-applications>.case-card>div{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:0;min-width:0;align-self:stretch}
.fh-layout-applications .case-card .round-arrow{position:static;justify-self:end;align-self:end;margin-top:12px}
.fh-layout-news{align-items:stretch;grid-auto-rows:auto}
.fh-layout-news>.news-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:0;min-width:0;margin-top:0;align-self:stretch}
.fh-layout-news .news-image{aspect-ratio:16/9;height:auto;min-height:0;overflow:hidden}
.fh-layout-news .news-image img{width:100%;height:100%;object-fit:cover}
.fh-layout-news>.news-card>div:not(.news-image){display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0;min-width:0}
.fh-layout-news .news-card .text-link{align-self:end;justify-self:start}
.workflow.fh-layout-workflow{align-items:stretch;grid-auto-rows:auto}
.workflow.fh-layout-workflow>.fh-workflow-step{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0;min-width:0;align-self:stretch}
.fh-workflow-photo{display:block;position:relative;aspect-ratio:3/2;overflow:hidden;margin:0 0 18px;min-width:0;border-radius:8px}
.fh-workflow-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.fh-workflow-step:hover .fh-workflow-photo img{transform:scale(1.025)}
/* Author display rules must never undo a native filter/hidden state. */
.fh-layout-products>[hidden],.fh-layout-applications>[hidden],.fh-layout-news>[hidden],.fh-layout-workflow>[hidden]{display:none!important}
@media(max-width:1000px){.fh-layout-products>.machine-card{grid-row:span 8!important}.fh-layout-products .machine-copy{padding:22px!important;grid-row:span 7}.fh-layout-products .machine-copy>.machine-spec{grid-template-columns:minmax(0,1fr);grid-row:span 4}.fh-layout-products .machine-copy .machine-spec>span+span{margin-top:8px}}
@media(max-width:700px){.fh-layout-products>.machine-card{grid-row:span 6!important}.fh-layout-products .machine-copy{padding:20px!important;grid-row:span 5}.fh-layout-products .machine-copy>.machine-spec{grid-template-columns:repeat(2,minmax(0,1fr));grid-row:span 2}.fh-layout-products .machine-copy .machine-spec>span+span{margin-top:0}}
@media(prefers-reduced-motion:reduce){.fh-workflow-photo img{transition:none;transform:none!important}}
html.motion-reduced .fh-workflow-photo img{transition:none;transform:none!important}

/* Side-by-side cards use their own text flow instead of sharing the image row. */
@media(min-width:1101px) {
  .fh-layout-products>.machine-card:not([hidden]) {
    grid-row: auto !important;
    grid-template-rows: minmax(min-content, 1fr);
    align-items: stretch;
  }
  .fh-layout-products>.machine-card .machine-image {
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 190px;
    min-width: 0;
    border-radius: 0;
  }
  .fh-layout-products>.machine-card .machine-copy {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    justify-content: flex-start;
    min-width: 0;
  }
  .fh-layout-products>.machine-card .machine-copy h3 {
    max-width: none;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }
  .fh-layout-products>.machine-card .machine-copy>.machine-spec {
    margin-top: 14px;
    grid-template-rows: auto;
    grid-row: auto;
    align-self: stretch;
  }
  .fh-layout-products>.machine-card .machine-copy .machine-spec>span {
    display: block;
    grid-row: auto;
    overflow-wrap: anywhere;
  }
}
@media(max-width:1100px) {
  .fh-layout-products>.machine-card:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
}
