/* Reference layout: native WooCommerce markup, no custom product template. */
.single-product .gfvg-reference{--gfvg-gap:4px;opacity:1!important}
.single-product .gfvg-reference .woocommerce-product-gallery__wrapper{margin:0!important;transform:none!important;transition:none!important;width:100%!important;max-width:none!important;padding:0!important;box-sizing:border-box}
.single-product .gfvg-reference .woocommerce-product-gallery__image{position:relative;aspect-ratio:4/5;overflow:hidden;float:none!important;margin:0!important;min-width:0}
.single-product .gfvg-reference .woocommerce-product-gallery__image>a{display:block;width:100%;height:100%;aspect-ratio:4/5}
.single-product .gfvg-reference .woocommerce-product-gallery__image>a>img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover;object-position:center;aspect-ratio:4/5}
.single-product .gfvg-reference .flex-control-nav,.single-product .gfvg-reference .flex-direction-nav{display:none!important}
.single-product .gfvg-reference .clone{display:none!important}
.single-product .gfvg-reference .flex-viewport{height:auto!important;overflow:visible!important}
.gfvg-native-video>.gfvg-native-cover{pointer-events:none}
.gfvg-native-video>.gfvg-native-cover>img{visibility:hidden}
.gfvg-native-video>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;z-index:2}
.gfvg-native-video>.zoomImg{display:none!important}
.gfvg-progress{height:2.5px;background:#deddd9;overflow:hidden;width:100%;margin:0;clear:both}
.gfvg-progress[hidden]{display:none}
.gfvg-progress-fill{display:block;height:100%;background:#252522;transform-origin:left center;will-change:transform}
@media(min-width:1000px){
 .single-product div.product .gfvg-reference{width:100%!important;max-width:none!important;float:none!important;margin:0 0 30px!important;padding:0!important;box-sizing:border-box}
 .single-product .gfvg-columns{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:32px;align-items:start}
 .single-product .gfvg-columns>*{grid-column:1/-1;min-width:0}
 .single-product .gfvg-columns>.gfvg-reference{grid-column:1;grid-row:1}
 .single-product .gfvg-columns>.summary{grid-column:2;grid-row:1;width:100%!important;float:none!important;margin-left:0!important;box-sizing:border-box}
 .single-product .gfvg-reference .woocommerce-product-gallery__wrapper{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));justify-items:stretch;gap:var(--gfvg-gap)}
 .single-product .gfvg-reference .woocommerce-product-gallery__image{width:100%!important}
 .single-product .gfvg-reference .woocommerce-product-gallery__image:only-child{grid-column:1/-1}
 .single-product .gfvg-reference .gfvg-progress{display:none}
}
@media(max-width:999px){
 .single-product div.product .gfvg-reference{width:100%!important;max-width:none!important;float:none!important;margin:0 0 20px!important}
 .single-product div.product .gfvg-reference~.summary{width:100%!important;float:none!important}
 .single-product .gfvg-reference .woocommerce-product-gallery__wrapper{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;gap:0!important}
 .single-product .gfvg-reference .woocommerce-product-gallery__wrapper::-webkit-scrollbar{display:none}
 .single-product .gfvg-reference .woocommerce-product-gallery__image{width:100%!important;flex:0 0 100%!important;scroll-snap-align:start;scroll-snap-stop:always}
 .single-product .gfvg-reference .woocommerce-product-gallery__wrapper:focus-visible{outline:2px solid currentColor;outline-offset:2px}
}
@media(prefers-reduced-motion:reduce){.gfvg-progress-fill{will-change:auto}}

/* Disable zoom and lightbox affordances, leaving native video controls usable. */
.single-product .gfvg-reference .woocommerce-product-gallery__trigger,.single-product .gfvg-reference .zoomImg{display:none!important}
.single-product .gfvg-reference .woocommerce-product-gallery__image>a{cursor:default;pointer-events:none}
.single-product .gfvg-reference .woocommerce-product-gallery__image{max-width:none!important;padding:0!important;box-sizing:border-box}
/* Stable snap points and a genuinely interactive, touch-sized scrubber. */
.single-product .gfvg-reference .woocommerce-product-gallery__wrapper{overflow-anchor:none}
.single-product .gfvg-reference .gfvg-progress{height:24px;padding:0;background:transparent;position:relative;cursor:pointer;touch-action:none;user-select:none;box-sizing:border-box}
.single-product .gfvg-reference .gfvg-progress::before{content:"";position:absolute;left:0;right:0;top:calc(50% - 1.25px);height:2.5px;background:#deddd9;pointer-events:none}
.single-product .gfvg-reference .gfvg-progress-fill{position:absolute;left:0;top:calc(50% - 1.25px);height:2.5px;pointer-events:none;transition:none}
.single-product .gfvg-reference .gfvg-progress:focus-visible{outline:2px solid #252522;outline-offset:2px}
.single-product .gfvg-reference .woocommerce-product-gallery__wrapper.gfvg-scrubbing{scroll-snap-type:none!important;scroll-behavior:auto!important}
/* The visible line touches the photo; its larger hit area extends downward. */
.single-product .gfvg-reference .gfvg-progress{margin:0!important;padding:0!important}
.single-product .gfvg-reference .gfvg-progress::before,.single-product .gfvg-reference .gfvg-progress-fill{top:0!important}
@media(max-width:999px){
 .single-product div.product .gfvg-reference{display:block!important;row-gap:0!important}
 .single-product .gfvg-reference .woocommerce-product-gallery__wrapper{aspect-ratio:4/5!important;height:auto!important;min-height:0!important;align-items:stretch!important;line-height:0!important;margin-bottom:0!important}
 .single-product .gfvg-reference .woocommerce-product-gallery__image{height:100%!important;min-height:0!important;max-height:100%!important;box-sizing:border-box}
}

/* The scrubber follows the scroll viewport inside any theme-created wrapper. */
@media(max-width:999px){
 body.single-product .gfvg-reference .flex-viewport{margin:0!important;padding:0!important;border:0!important;height:auto!important;line-height:0!important}
 body.single-product .gfvg-reference .woocommerce-product-gallery__wrapper{margin:0!important;padding:0!important;border:0!important;align-items:stretch!important}
 body.single-product .gfvg-reference .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image{height:auto!important;aspect-ratio:4/5!important;align-self:stretch!important}
 body.single-product .gfvg-reference .gfvg-progress{display:block;margin:0!important;padding:0!important;transform:none!important;position:relative!important;top:auto!important;left:auto!important;width:100%!important;max-width:none!important;float:none!important}
 body.single-product .gfvg-reference .gfvg-progress[hidden]{display:none!important}
 body.single-product .gfvg-reference .gfvg-progress::before,body.single-product .gfvg-reference .gfvg-progress-fill{top:0!important}
}
