/* Universal gallery sizing and optional commercial panel. */
body .wp-block-gallery.is-style-hm454-horizontal{min-width:0;box-sizing:border-box}
body .wp-block-gallery.is-style-hm454-horizontal > figure.wp-block-image:last-of-type{scroll-snap-align:end}
body .hm5013-cta{margin-block:clamp(32px,6vw,96px)}
body .hm5013-cta-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(24px,4vw,60px);padding:clamp(24px,5vw,72px);border:1px solid currentColor;background:var(--hm24-surface);color:var(--hm24-ink)}
body .hm5013-cta h2{margin:0 0 16px;font-size:clamp(1.65rem,3.5vw,3rem);line-height:1.18;overflow-wrap:anywhere}
body .hm5013-cta p{margin:0;max-width:60ch;overflow-wrap:anywhere}
body .hm5013-cta a.hm5013-button{padding:12px 24px;white-space:normal;text-align:center;overflow-wrap:anywhere}
@media(max-width:781px){body .hm5013-cta-inner{grid-template-columns:minmax(0,1fr);justify-items:start}}
@media print{body #main .hm5013-cta{display:none!important}body #main .wp-block-gallery.is-style-hm454-horizontal{flex-wrap:wrap!important;overflow:visible!important;scroll-snap-type:none!important}body #main .wp-block-gallery.is-style-hm454-horizontal > figure.wp-block-image{flex:0 0 100%!important;width:100%!important;max-width:100%!important}}
/* V50.0.14: native gallery navigation, independent of project lightboxes. */
body .hm5014-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-block:12px 24px;color:inherit}
body .hm5014-gallery-controls[hidden]{display:none!important}
body .hm5014-gallery-controls button{appearance:none;background:transparent;color:inherit;border:1px solid currentColor;border-radius:0;font:inherit;font-size:.875rem;line-height:1.3;min-height:44px;min-width:44px;padding:10px 16px;cursor:pointer}
body .hm5014-gallery-controls button[aria-disabled=true]{opacity:.5;cursor:default}
body .hm5014-gallery-controls button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
body .hm5014-gallery-counter{font-size:.875rem;font-variant-numeric:tabular-nums}
@media(forced-colors:active){body .hm5014-gallery-controls button[aria-disabled=true]{color:GrayText;opacity:1}}
@media print{body .hm5014-gallery-controls{display:none!important}}

/* V51.0.1: keep gallery controls consistent with motion preferences. */
html.hm-high-contrast body .wp-block-gallery.is-style-hm454-horizontal{scroll-snap-type:none;scroll-behavior:auto!important}
@media(forced-colors:active){body .wp-block-gallery.is-style-hm454-horizontal{scroll-snap-type:none;scroll-behavior:auto!important}}
