/* Brandtoday product photo gallery (class-bt-gallery.php). !important beats the theme's button styles. */
.btg{font-family:Inter,sans-serif;color:#1d1d1f;width:100%;max-width:620px}
.btg *{box-sizing:border-box}
.btg-stage{position:relative;aspect-ratio:1/1;background:#f5f5f7;border-radius:18px;overflow:hidden;outline:none;cursor:zoom-in}
.btg-stage:focus-visible{box-shadow:0 0 0 3px rgba(126,20,20,.35)}
.btg-main{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain;padding:6%;margin:0!important;mix-blend-mode:multiply;border-radius:0!important}
.btg-main.is-in{animation:btgIn .3s ease}
@keyframes btgIn{from{opacity:.35;transform:scale(.985)}to{opacity:1;transform:none}}
.btg .btg-stage .btw-heart.is-big{top:14px!important;right:14px!important;width:46px!important;height:46px!important}
.btg button.btg-arw,.btg-box button.btg-arw{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:42px;min-height:0;padding:0!important;margin:0;border-radius:50%!important;border:1px solid #e3e3e6!important;background:rgba(255,255,255,.95)!important;color:#1d1d1f!important;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.1)!important;transition:opacity .2s,border-color .15s,color .15s}
.btg button.btg-arw{opacity:0}
.btg-stage:hover button.btg-arw,.btg-stage:focus-within button.btg-arw{opacity:1}
.btg button.btg-arw:hover,.btg-box button.btg-arw:hover{border-color:#7E1414!important;color:#7E1414!important}
.btg-arw svg,.btg-zoom svg,.btg-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btg-arw.is-prev{left:14px}
.btg-arw.is-next{right:14px}
.btg-cnt{position:absolute;left:14px;bottom:14px;z-index:3;background:rgba(255,255,255,.92);border-radius:14px;padding:4px 11px;font-size:12px;font-weight:600;color:#1d1d1f;pointer-events:none}
.btg button.btg-zoom{position:absolute;right:14px;bottom:14px;z-index:3;width:38px;height:38px;min-height:0;padding:0!important;margin:0;border-radius:50%!important;border:0!important;background:rgba(255,255,255,.92)!important;color:#1d1d1f!important;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:none!important}
.btg button.btg-zoom:hover{color:#7E1414!important}
/* colour chips */
.btg-chips{display:flex;gap:7px;margin:12px 0 10px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.btg-chips::-webkit-scrollbar{display:none}
.btg button.btg-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:0;margin:0;padding:6px 12px 6px 8px!important;border-radius:18px!important;border:1px solid #e3e3e6!important;background:#fff!important;color:#1d1d1f!important;font:500 12.5px/1.2 Inter,sans-serif!important;cursor:pointer;white-space:nowrap;box-shadow:none!important;transition:border-color .15s,background .15s}
.btg button.btg-chip:first-child{padding-left:12px!important}
.btg button.btg-chip i{width:14px;height:14px;border-radius:50%;display:inline-block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.btg button.btg-chip:hover{border-color:#7E1414!important}
.btg button.btg-chip.is-on{border-color:#7E1414!important;background:#FBF3F3!important;color:#7E1414!important}
/* arrows at the ends of a long colour row */
.btg-chipwrap{position:relative;margin:12px 0 10px}
.btg-chipwrap .btg-chips{scroll-behavior:smooth;margin:0}
.btg-chipwrap + .btg-thumbs{margin-top:0}
.btg-chipwrap.has-more .btg-chips{padding-left:2px;padding-right:2px}
.btg button.btg-ca{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:30px;height:30px;min-height:0;padding:0!important;margin:0;border-radius:50%!important;border:1px solid #EBD3D3!important;background:#fff!important;color:#7E1414!important;display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(17,17,17,.12)!important;transition:opacity .2s,border-color .15s}
.btg button.btg-ca:hover{border-color:#7E1414!important}
.btg button.btg-ca svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.btg-chipwrap.has-more button.btg-ca{display:flex}
.btg button.btg-ca.is-prev{left:-4px}
.btg button.btg-ca.is-next{right:-4px}
.btg-chipwrap.at-start button.btg-ca.is-prev,.btg-chipwrap.at-end button.btg-ca.is-next{opacity:0;pointer-events:none}
/* soft fade under the arrows so chips slide out of view */
.btg-chipwrap.has-more::before,.btg-chipwrap.has-more::after{content:"";position:absolute;top:0;bottom:2px;width:44px;z-index:1;pointer-events:none;transition:opacity .2s}
.btg-chipwrap.has-more::before{left:0;background:linear-gradient(90deg,#fff 40%,rgba(255,255,255,0))}
.btg-chipwrap.has-more::after{right:0;background:linear-gradient(270deg,#fff 40%,rgba(255,255,255,0))}
.btg-chipwrap.at-start::before,.btg-chipwrap.at-end::after{opacity:0}
@media (max-width:767px){.btg button.btg-ca{width:26px;height:26px}.btg button.btg-ca svg{width:13px;height:13px}}
/* thumbnails */
.btg-thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:2px 2px 6px;margin-top:10px;scroll-snap-type:x proximity}
.btg-chips + .btg-thumbs{margin-top:0}
.btg button.btg-t{flex:0 0 72px;width:72px;height:72px;min-height:0;margin:0;padding:0!important;border-radius:12px!important;border:2px solid transparent!important;background:#f5f5f7!important;overflow:hidden;cursor:pointer;scroll-snap-align:start;box-shadow:none!important;transition:border-color .15s}
.btg button.btg-t:hover{border-color:#EBD3D3!important}
.btg button.btg-t.is-on{border-color:#7E1414!important}
.btg button.btg-t.is-hid{display:none}
.btg-t img{width:100%!important;height:100%!important;object-fit:contain;padding:8%;mix-blend-mode:multiply;margin:0!important;border-radius:0!important}
/* zoom view */
.btg-box{position:fixed;inset:0;z-index:100010;background:rgba(17,17,17,.92);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .25s}
.btg-box.is-open{opacity:1;pointer-events:auto}
.btg-box img{max-width:min(92vw,1024px);max-height:86vh;object-fit:contain;background:#fff;border-radius:14px}
.btg-box .btg-arw.is-prev{left:20px}
.btg-box .btg-arw.is-next{right:20px}
.btg-box button.btg-x{position:absolute;top:18px;right:18px;width:44px;height:44px;min-height:0;padding:0!important;border-radius:50%!important;border:0!important;background:#fff!important;color:#1d1d1f!important;display:flex;align-items:center;justify-content:center;cursor:pointer}
.btg-box .btg-cnt{left:50%;bottom:22px;transform:translateX(-50%)}
html.btg-lock,html.btg-lock body{overflow:hidden}
@media (max-width:767px){
	.btg{max-width:none}
	.btg-stage{border-radius:14px}
	.btg button.btg-arw{opacity:1;width:36px;height:36px}
	.btg button.btg-t{flex-basis:60px;width:60px;height:60px;border-radius:10px!important}
	.btg-box button.btg-arw{width:38px;height:38px}
	.btg-box .btg-arw.is-prev{left:8px}
	.btg-box .btg-arw.is-next{right:8px}
}
@media (prefers-reduced-motion:reduce){.btg-main.is-in{animation:none}}
