/* Slide widths must include their borders; the viewport alone clips the strip. */
body.single-product .woocommerce-product-gallery .flex-viewport { overflow:hidden!important; isolation:isolate; background:transparent; border-radius:4px; clip-path:inset(0 round 4px); box-shadow:none; }
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { margin:0; border:0; }
body.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery .flex-viewport .hfj-gallery-enquiry { box-sizing:border-box!important; border:0!important; overflow:hidden; background:#fff; }
body.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image>a { display:block; overflow:hidden; width:100%; background:#fff; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs { cursor:grab; overscroll-behavior-x:contain; touch-action:pan-x pan-y; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs li { border-radius:4px; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs img { border-radius:inherit; user-select:none; -webkit-user-drag:none; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) { border-color:#ad8c5e; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity:1; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img:focus-visible) {
  outline:2px solid var(--hfj-control-focus-ring); outline-offset:1px;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs.is-dragging { cursor:grabbing; scroll-behavior:auto; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs.is-dragging img { pointer-events:none; }
/* HFJ lightbox: native WooCommerce/PhotoSwipe zoom, gestures and focus handling. */
body .pswp { --hfj-focus-color:#444444; background:#fff; }
body .pswp--animate_opacity { transition:opacity 180ms ease; }
@starting-style { body .pswp--open.pswp--animate_opacity { opacity:0!important; } }
@media(prefers-reduced-motion:reduce) { body .pswp--animate_opacity { transition:none; } }
body .pswp__bg { background:#fff; }
body .pswp__img--placeholder--blank { background:#fff; }
body:has(.pswp--open) { overflow:hidden!important; }
body .pswp .pswp__top-bar { height:76px; display:flex; align-items:center; gap:10px; padding:12px 20px; background:#fff; border-bottom:1px solid #dddddd; opacity:1; z-index:2; }
.hfj-lightbox-brand { display:block; width:170px; margin-right:auto; }
.hfj-lightbox-brand img { display:block; width:100%; height:48px; object-fit:contain; }
body .pswp__counter { position:static; height:auto; padding:0 10px; color:#393633; opacity:1; font:500 13px/22px var(--hfj-font,Arial,sans-serif); }
body .pswp__button { float:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; margin:0; border:0; border-radius:50%; --hfj-gallery-disc:var(--hfj-paper); background:radial-gradient(circle, var(--hfj-gallery-disc) 14px, transparent 15px)!important; color:var(--hfj-action); transition:--hfj-gallery-disc 180ms ease; opacity:1; cursor:pointer; }
body .pswp__button::before { display:none!important; }
body .pswp__button:hover,body .pswp__button:focus-visible { --hfj-gallery-disc:var(--hfj-soft); }
body .pswp__button:focus-visible { outline:2px solid var(--hfj-control-focus-ring); outline-offset:-5px; }
@media(prefers-reduced-motion:reduce) { body .pswp__button { transition:none; } }
body .pswp__button .hfj-icon { font-size:22px; }
body.single-product .hfj-pdp-gallery-controls > button,
body .pswp :is(.pswp__button--arrow--left,.pswp__button--arrow--right) {
  background:transparent!important; color:var(--hfj-action); font:400 24px/1 Arial,sans-serif;
  text-shadow:-1px 0 var(--hfj-paper),1px 0 var(--hfj-paper),0 -1px var(--hfj-paper),0 1px var(--hfj-paper);
}
@media (hover:hover) and (pointer:fine) {
  body.single-product .hfj-pdp-gallery-controls > button:enabled:hover,
  body .pswp :is(.pswp__button--arrow--left,.pswp__button--arrow--right):hover { color:var(--hfj-ink); }
}
body.single-product .hfj-pdp-gallery-controls > button:focus-visible { outline:2px solid var(--hfj-control-focus-ring); outline-offset:-5px; }
/* PhotoSwipe 4 dispatches from the hit element's class, not its ancestors. */
body .pswp__button * { pointer-events:none!important; }
body .pswp__button--zoom.is-enlarged .hfj-photo-zoom-plus { display:none; }
body .pswp--touch .pswp__ui:not(.pswp__ui--one-slide) :is(.pswp__button--arrow--left,.pswp__button--arrow--right) { visibility:visible; }
body .pswp__button--arrow--left,body .pswp__button--arrow--right { position:absolute; top:50%; width:48px; height:48px; margin-top:-24px; visibility:visible; }
body .pswp__button--arrow--left { left:20px; }
body .pswp__button--arrow--right { right:20px; }
body .pswp .pswp__caption { background:#fffffff5; border-top:1px solid #dddddd; }
body .pswp__caption__center { max-width:760px; padding:16px 24px; color:#333333; text-align:center; font:400 14px/1.6 var(--hfj-font,Arial,sans-serif); }
body .pswp .hfj-lightbox-loading { position:fixed; top:calc(50% + 38px); left:50%; display:flex; flex-direction:column; align-items:center; gap:14px; width:max-content; max-width:calc(100vw - 100px); height:auto; margin:0; padding:20px; transform:translate(-50%,-50%); background:#fff; color:#333; font:400 14px/1.5 var(--hfj-font,Arial,sans-serif); text-align:center; opacity:0; visibility:hidden; pointer-events:none; }
body .pswp .hfj-lightbox-loading.pswp__preloader--active { opacity:1; visibility:visible; }
.hfj-lightbox-loading img { display:block; width:44px; height:44px; animation:hfj-gallery-loading 1s ease-in-out infinite alternate; }
body .pswp__error-msg { padding:20px 64px; color:#333; line-height:1.6; }
body .pswp__error-msg a { color:inherit; text-underline-offset:4px; }
@media(max-width:480px) { body .pswp .pswp__top-bar { padding:10px 12px; gap:6px; } .hfj-lightbox-brand { width:130px; } body .pswp__counter { padding:0 4px; } body .pswp__button--arrow--left { left:10px; } body .pswp__button--arrow--right { right:10px; } body .pswp__caption__center { padding:12px 16px; font-size:12px; } }

.hfj-pdp-gallery-controls { position:absolute; right:6px; display:flex; align-items:center; z-index:5; height:44px; color:#333; }
.hfj-pdp-gallery-controls button { width:44px; height:44px; padding:0; border:0; background:transparent; color:inherit; font-size:24px; box-shadow:none; }
.hfj-pdp-gallery-controls button:disabled { opacity:.3; cursor:default; }
.woocommerce-product-gallery__trigger[hidden] { display:none!important; }
.hfj-pdp-gallery-loading { pointer-events:none; }
/* The scroll-wrap clips the stage. Never clip the translated slide container:
   PhotoSwipe keeps adjacent images beyond its initial bounds for navigation. */
@media(prefers-reduced-motion:reduce) { .hfj-lightbox-loading img { animation:none; } body .pswp .hfj-lightbox-loading { transition:none; } }
