.hmed-gallery[hidden]{display:none!important}
.hmed-gallery{background:#fff;color:#222;position:fixed;inset:0;z-index:9003;overflow-y:auto;width:100%;height:100%}
.hmed-gallery .image-item img{max-width:100%;height:auto}
.hmed-gallery .image-credit,.hmed-inline-credit{overflow-wrap:anywhere}
.hmed-inline-credit{display:block;font-size:.9em;margin-top:.35em}
.hmed-gallery #to_gallery_top_scrollup{border:0;cursor:pointer}
@media(prefers-reduced-motion:reduce){.hmed-gallery{transition:none!important;scroll-behavior:auto!important}}
/* Only explicitly selected portrait heroes use these rules. Legacy heroes keep their markup. */
/* The live Typology text container is only 720px wide: deliberately break out of it. */
body.single .typology-section:not(.typology-section-related) .typology-featured-image.hmed-hero-portrait{box-sizing:border-box;display:block!important;position:relative!important;width:min(var(--hmed-hero-width),calc(95vw - 32px))!important;max-width:none!important;padding:0!important;margin-left:0!important;margin-right:0!important;float:none!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
body.single .typology-section:not(.typology-section-related) .hmed-hero-portrait .featured-image-wrap{position:relative;width:100%!important;height:auto!important;padding:0!important}
body.single .typology-section:not(.typology-section-related) .hmed-hero-portrait .hmed-hero-crop{position:relative;display:block;width:100%;aspect-ratio:var(--hmed-hero-ratio);overflow:hidden;border-radius:9px}
body.single .typology-section:not(.typology-section-related) .hmed-hero-portrait .hmed-hero-crop img{position:absolute!important;display:block!important;width:var(--hmed-img-width)!important;height:var(--hmed-img-height)!important;left:var(--hmed-img-left)!important;top:var(--hmed-img-top)!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:fill!important;aspect-ratio:auto!important;transform:none!important;border-radius:0!important}
body.single .typology-section:not(.typology-section-related) .hmed-hero-portrait .wp-caption-wrap{width:100%;max-width:100%;box-sizing:border-box}

.hmed-ai-label{display:block;font-weight:400;font-size:12px;line-height:1.5;color:#555;margin-top:4px}.wp-caption-wrap>.hmed-ai-label{clear:both}.hmed-inline-ai{display:block;font-weight:400;margin-top:4px}
