.single-product.woocommerce div.product .ho-portrait-gallery{width:100%;max-width:560px;margin-inline:auto}
.ho-gallery-stage{position:relative;width:100%;aspect-ratio:3/4;background:var(--ho-soft);border-radius:12px;overflow:hidden}
.ho-gallery-slide,.ho-gallery-slide>a{display:block;width:100%;height:100%;margin:0}
.ho-gallery-slide[hidden]{display:none!important}
.single-product.woocommerce div.product .ho-gallery-slide>a img{display:block;width:100%;height:100%;max-height:none;margin:0;object-fit:contain;background:var(--ho-soft)}
.ho-gallery-slide>a>picture{display:block;width:100%;height:100%}
.ho-gallery-enlarge{position:absolute;right:12px;top:12px;z-index:4;border:1px solid var(--ho-line);border-radius:7px;padding:8px 12px;min-height:40px;background:#fff;color:var(--ho-ink);font-size:12px}
.ho-gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:12px}
.ho-gallery-thumbnails>a{position:relative;display:block;aspect-ratio:3/4;min-width:0;border:2px solid transparent;border-radius:8px;overflow:hidden;padding:3px;background:var(--ho-soft)}
.ho-gallery-thumbnails>a[aria-current=true],.ho-gallery-thumbnails>a:hover{border-color:var(--ho-red)}
.woocommerce div.product .ho-gallery-thumbnails img{display:block;width:100%;height:100%;object-fit:contain;margin:0;opacity:1}
.ho-gallery-thumbnails>a>span{position:absolute;left:0;right:0;bottom:0;background:#a80f24;color:#fff;font-size:10px;line-height:1.3;text-align:center;padding:3px 1px}
.ho-gallery-hint{font-size:12px;line-height:1.5;color:var(--ho-muted);margin:10px 0 0}
.ho-gallery-dialog{width:min(1100px,96vw);max-width:96vw;max-height:94vh;max-height:94svh;border:0;border-radius:12px;padding:14px;background:#fff;color:var(--ho-ink)}
.ho-gallery-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:9px}
.ho-gallery-dialog::backdrop{background:#111c}
.ho-gallery-dialog-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
.ho-gallery-dialog button{min-height:42px;border:1px solid var(--ho-line);border-radius:7px;padding:8px 12px;background:var(--ho-soft);color:var(--ho-ink);font-size:13px}
.ho-gallery-dialog-image{min-height:0;text-align:center}
.ho-gallery-dialog-image img{display:block;width:100%;height:72vh;height:72svh;max-height:72vh;max-height:72svh;object-fit:contain;margin:auto}
.ho-gallery-caption{font-size:13px;color:var(--ho-red);text-align:center}
.ho-gallery-original{font-size:12px;text-align:center;text-decoration:underline;text-underline-offset:3px}
@media(max-width:767px){.single-product.woocommerce div.product{display:block}.single-product.woocommerce div.product div.summary{margin-top:24px}.ho-gallery-thumbnails{gap:7px}.ho-gallery-thumbnails>a>span{font-size:9px}.ho-gallery-dialog{padding:10px}.ho-gallery-dialog-image img{height:65vh;height:65svh;max-height:65vh;max-height:65svh}}