.product-gallery{min-width:0}.gallery-main{display:block;position:relative;width:100%;border:0;background:#ebebeb;border-radius:12px;overflow:hidden;padding:0;cursor:zoom-in}.gallery-main>img{height:620px;width:100%;object-fit:contain;padding:12px 10px 36px}.gallery-enlarge{position:absolute;right:18px;bottom:18px;background:#ffffffd9;border-radius:30px;padding:8px 13px;font-size:11px;color:#222}.gallery-caption{display:flex;justify-content:space-between;gap:12px;padding:14px 2px;font-size:10px;color:#666}.gallery-thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.gallery-thumbnails button{min-width:0;border:1px solid #d5d5d5;border-radius:9px;overflow:hidden;padding:0 0 8px;background:#eee;color:#222}.gallery-thumbnails button[aria-pressed=true]{border:2px solid #306cf6}.gallery-thumbnails img{width:100%;height:88px;object-fit:contain;padding:7px}.gallery-thumbnails span{font-size:10px;display:inline-block;background:#ffffffdf;border-radius:4px;padding:1px 5px}.gallery-lightbox{width:min(1100px,95vw);height:92svh;max-height:92svh;padding:25px 35px;background:#f5f5f5;overflow:hidden;border-radius:14px}.gallery-lightbox>img{height:calc(100% - 65px);width:100%;object-fit:contain}.gallery-close{position:absolute;right:16px;top:12px;border:0;background:#fff;border-radius:50%;width:42px;height:42px;font-size:26px;z-index:1}.gallery-lightbox-controls{display:flex;justify-content:center;align-items:center;gap:30px;height:65px;font-size:12px}.gallery-lightbox-controls button{width:42px;height:42px;border:1px solid #ccc;background:#fff;border-radius:50%;font-size:20px}
@media(min-width:1100px){.product-detail:has(.product-gallery){grid-template-columns:.85fr 1.15fr;gap:55px;padding-top:45px;align-items:center}.gallery-main>img{height:clamp(620px,72vh,800px)}.gallery-thumbnails img{height:105px}}
@media(max-width:760px){.gallery-main>img{height:430px;padding:10px 5px 34px}.gallery-thumbnails{gap:7px}.gallery-thumbnails img{height:78px}.gallery-caption{font-size:9px}.gallery-thumbnails span{font-size:9px}.gallery-lightbox{padding:40px 10px 10px}.gallery-lightbox-controls{gap:20px}}
