.product-gallery-box.jivika-product-gallery{min-width:0;align-self:start;}
.jivika-gallery-stage{width:100%;height:380px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.product-gallery-box.jivika-product-gallery #mainPackshot{display:block;width:100%;height:100%;max-width:100%;max-height:380px;object-fit:contain;}
.jivika-gallery-thumbnails{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px;max-width:100%;}
.jivika-gallery-thumbnail{flex:0 0 64px;width:64px;height:64px;display:flex;align-items:center;justify-content:center;padding:4px;border:1px solid var(--border,#d4e5dc);border-radius:6px;background:#fff;cursor:pointer;}
.jivika-gallery-thumbnail[aria-pressed="true"]{border:2px solid var(--primary,#065f46);box-shadow:0 0 0 2px #d1fae5;}
.jivika-gallery-thumbnail:focus-visible{outline:3px solid #059669;outline-offset:2px;}
.product-gallery-box.jivika-product-gallery .jivika-gallery-thumbnail img{display:block;width:100%;height:100%;max-height:54px;object-fit:contain;margin:0;}
.jivika-gallery-caption{min-height:18px;margin:10px 0 0;color:#64748b;font-size:12px;text-align:center;}
@media(max-width:767px){
  .jivika-gallery-stage{height:240px;}
  .product-gallery-box.jivika-product-gallery #mainPackshot{max-height:240px!important;}
  .jivika-gallery-thumbnails{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:3px 2px 10px;scrollbar-width:thin;}
  .jivika-gallery-thumbnail{scroll-snap-align:start;}
}
