/* V4.1: image bounds are explicit so intrinsic portrait sizes cannot crop cards. */
.card-image.product-image-frame{position:relative;display:block;aspect-ratio:var(--product-image-ratio,4/3);height:auto;min-height:0;background:#f5f5f5;overflow:hidden}
.card-image.product-image-frame img{position:absolute;inset:0;margin:auto;width:var(--product-image-scale,100%);height:var(--product-image-scale,100%);max-width:none;max-height:none;object-fit:var(--product-image-fit,contain);object-position:center;transform:none;padding:0}
.equipment-detail .gallery-main.product-slideshow{display:block;position:relative;padding:0;aspect-ratio:var(--product-image-ratio,1/1);overflow:hidden;touch-action:pan-y;background:#1b1e20}
.product-slide-track{position:absolute;inset:0;display:flex;transition:transform .3s ease;will-change:transform}
.product-slide{position:relative;flex:0 0 100%;height:100%;min-width:0;margin:0;overflow:hidden}
.equipment-detail .product-slide img{position:absolute;inset:0;margin:auto;width:var(--product-image-scale,100%);height:var(--product-image-scale,100%);max-width:none;max-height:none;object-fit:var(--product-image-fit,contain);object-position:center;user-select:none;-webkit-user-drag:none;padding:0}
.equipment-detail .product-slide img.substitute{width:90px;height:90px}
.gallery .gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:48px;padding:0;border:1px solid #ffffff66;background:#101112bf;color:white;font-size:30px;cursor:pointer;line-height:1}
.gallery-arrow.prev{left:10px}.gallery-arrow.next{right:10px}.gallery .gallery-arrow:hover{background:#d52027}
.gallery .gallery-counter{position:absolute;bottom:10px;right:12px;z-index:2;background:#101112bf;color:white;padding:4px 10px;font-size:14px;border-radius:2px}
.gallery [hidden]{display:none!important}.product-slideshow:focus-visible{outline:2px solid #d52027;outline-offset:3px}
.gallery [data-slide-index][aria-pressed=true]{border:2px solid #d52027}
@media(prefers-reduced-motion:reduce){.product-slide-track{transition:none}}
.card:hover .card-image.product-image-frame img{transform:none}
.card-image.product-image-frame img.substitute{width:70px;height:70px}
