/* Intrinsic-size CSS works without metadata/JS: at most 1.5x, never a fabricated source. */
.hermes-product-image-frame[data-hermes-image-mode]{--hermes-image-scale:1;display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:200px;padding:12px;background:#f5f4f0;overflow:hidden;border-radius:6px}
.hermes-product-image-frame[data-hermes-image-mode="native"]{--hermes-image-scale:1;height:160px}
.hermes-product-image-frame[data-hermes-image-mode] img,
.hermes-skin[data-hermes-skin] .hs-product-media .hermes-product-image-frame img,
.hermes-products .hermes-image-link .hermes-product-image-frame img,
.hermes-crosssell .hermes-crosssell-grid .hermes-product-image-frame img,
.coffelto-funnel .hermes-product-image-frame .coffelto-image{display:block!important;flex:none;width:auto!important;height:auto!important;max-width:calc(100% / var(--hermes-image-scale))!important;max-height:128px!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain!important;transform:scale(var(--hermes-image-scale));transform-origin:center;margin:0!important;padding:0!important;border:0;box-shadow:none}
.hermes-image-previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),320px));gap:24px;max-width:100%}
.hermes-image-previews section{min-width:0}

/* Legacy phone cards previously reserved only 36% of their width for the photo. */
.hermes-products .hermes-grid .hermes-card{display:flex;flex-direction:column;min-width:0}
.hermes-products .hermes-card .hermes-image-link{width:100%;min-width:0}

/* Compatibility collections share the same one-primary-image component. */
.hermes-products .hs-gallery,.hermes-crosssell .hs-gallery,.coffelto-funnel .hs-gallery{width:100%;min-width:0}
.hermes-products .hs-gallery-panel,.hermes-crosssell .hs-gallery-panel,.coffelto-funnel .hs-gallery-panel{margin:0;padding:12px;min-height:224px;background:#f5f4f0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto}
.hermes-products .hs-gallery-panel img,.hermes-crosssell .hs-gallery-panel img,.coffelto-funnel .hs-gallery-panel img{width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;padding:0!important;margin:0!important;transform:none!important}
.hermes-products .hs-gallery-panel[data-resize=true] img,.hermes-crosssell .hs-gallery-panel[data-resize=true] img,.coffelto-funnel .hs-gallery-panel[data-resize=true] img{max-width:100%!important;max-height:280px!important}
.hermes-products .hs-gallery-panel figcaption,.hermes-crosssell .hs-gallery-panel figcaption,.coffelto-funnel .hs-gallery-panel figcaption{font-size:11px;color:#596b5b;margin-top:8px}
