/* 在旧主题图片选择器之后加载，图库缩略图不继承首图的大尺寸。 */
.cms-product-gallery{min-width:0;width:100%;align-self:start}
.cms-product-gallery .cms-product-gallery-stage{width:100%;aspect-ratio:1;overflow:hidden;background:var(--cms-surface,#f6f5f3)}
.cms-product-gallery .cms-product-gallery-stage>div{width:100%;height:100%}
.cms-product-gallery .cms-product-gallery-stage img{display:block;position:static;width:100%;height:100%;max-width:100%;max-height:none;object-fit:contain;margin:0}
.cms-product-gallery [hidden]{display:none!important}
.cms-product-gallery .cms-product-gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 2px;max-width:100%;align-items:center}
.cms-product-gallery .cms-product-gallery-thumbs button{display:block;flex:0 0 64px;width:64px;height:64px;min-height:44px;padding:3px;margin:0;border:1px solid #d7d7d7;background:transparent;border-radius:3px;cursor:pointer}
.cms-product-gallery .cms-product-gallery-thumbs button[aria-pressed=true]{border-color:var(--cms-primary,currentColor);box-shadow:0 0 0 1px var(--cms-primary,currentColor)}
.cms-product-gallery .cms-product-gallery-thumbs img{position:static;display:block;width:100%;height:100%;max-height:none;object-fit:contain;margin:0}
/* 保留小屏触控空间，缩略图横向滚动不撑宽页面。 */
@media(max-width:720px){.cms-product-gallery .cms-product-gallery-thumbs{gap:8px}.cms-product-gallery .cms-product-gallery-thumbs button{flex-basis:56px;width:56px;height:56px}}
