/* Theme adapters: Flatsome 3.20.9 + WooCommerce classic */
.single-product .product-gallery,.single-product .woocommerce-product-gallery{position:relative}
.single-product .product-gallery .q88wst-gallery-counter,.single-product .woocommerce-product-gallery .q88wst-gallery-counter{position:absolute;right:12px;bottom:12px;z-index:9;border-radius:18px;padding:4px 10px;background:rgba(37,36,58,.76);color:#fff;font-size:12px;line-height:1.4;pointer-events:none}
.single-product .product-gallery .product-thumbnails img,.single-product .woocommerce-product-gallery .flex-control-thumbs img{border-radius:8px}
.single-product .product-gallery .product-thumbnails .is-nav-selected img{outline:2px solid #7652e8;outline-offset:-2px}

/* Gallery Engine v0.8.5. All rules scoped to the selected mode. */
body.q88wst-gallery-layout-grid2 .q88wst-gallery-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;float:none;width:100%;min-width:0}
body.q88wst-gallery-layout-grid2 .q88wst-gallery-grid2-item{display:block;min-width:0;overflow:hidden;border-radius:10px}
body.q88wst-gallery-layout-grid2 .q88wst-gallery-grid2-item img{display:block;width:100%;height:auto;object-fit:cover}
@media(max-width:640px){body.q88wst-gallery-layout-grid2 .q88wst-gallery-grid2{gap:8px}}

/* v0.8.5.1 — Advanced layouts. Restricted to explicitly selected modes. */
body.q88wst-gallery-layout-stacked .q88wst-gallery-stacked {
  display:flex;flex-direction:column;gap:14px;width:100%;float:none;
}
body.q88wst-gallery-layout-masonry .q88wst-gallery-masonry {
  display:block;columns:2;column-gap:14px;width:100%;float:none;
}
body.q88wst-gallery-layout-masonry .q88wst-gallery-masonry > .q88wst-gallery-grid2-item {
  display:block;break-inside:avoid;margin-bottom:14px;
}
body.q88wst-gallery-layout-featured .q88wst-gallery-featured {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;float:none;
}
body.q88wst-gallery-layout-featured .q88wst-gallery-featured > .q88wst-gallery-grid2-item:first-child {
  grid-column:1 / -1;
}
body.q88wst-gallery-layout-featured .q88wst-gallery-featured > .q88wst-gallery-grid2-item:first-child img {
  width:100%;height:auto;
}
/* Flatsome stacked image groups: preserve native image/lightbox markup. */
body.q88wst-gallery-layout-stacked .product-gallery .product-gallery-slider .col {
  width:100%;max-width:100%;
}
body.q88wst-gallery-layout-masonry .product-gallery .product-gallery-slider .row,
body.q88wst-gallery-layout-masonry .product-gallery .product-gallery-slider .flickity-slider {
  align-items:start;
}
body.q88wst-gallery-layout-featured .product-gallery .product-gallery-slider .col:first-child {
  flex-basis:100%;max-width:100%;
}
@media(max-width:640px){
 body.q88wst-gallery-layout-masonry .q88wst-gallery-masonry{columns:1}
 body.q88wst-gallery-layout-featured .q88wst-gallery-featured{gap:8px}
}

/* v0.8.5.2: scoped gallery layouts; no changes to gallery markup in native mode. */
body.q88wst-gallery-layout-fullslider .q88wst-gallery-fullslider{display:block;width:100%;float:none;min-width:0;position:relative}
body.q88wst-gallery-layout-fullslider .q88wst-gallery-slides{position:relative;overflow:hidden;border-radius:12px}
body.q88wst-gallery-layout-fullslider .q88wst-gallery-slides>.q88wst-gallery-grid2-item{display:none}
body.q88wst-gallery-layout-fullslider .q88wst-gallery-slides>.q88wst-gallery-grid2-item.q88wst-is-active{display:block}
body.q88wst-gallery-layout-fullslider .q88wst-gallery-slides img{width:100%;height:auto;display:block}
body.q88wst-gallery-layout-fullslider .q88wst-gallery-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:10px}
body.q88wst-gallery-layout-fullslider .q88wst-gallery-controls button{margin:0;padding:3px 14px;min-height:34px;line-height:1.2;border-radius:8px}
body.q88wst-gallery-layout-fullslider .product-gallery,body.q88wst-gallery-layout-fullslider .woocommerce-product-gallery{max-width:100%}
/* Sticky only when explicitly chosen. Parent overflow and layout determine effective stickiness. */
@media(min-width:850px){body.q88wst-gallery-layout-sticky .product-gallery,body.q88wst-gallery-layout-sticky .woocommerce-product-gallery{position:sticky;top:var(--q88wst-sticky-gallery-top,90px);align-self:flex-start}}
@media(max-width:849px){body.q88wst-gallery-layout-sticky .product-gallery,body.q88wst-gallery-layout-sticky .woocommerce-product-gallery{position:relative;top:auto}}

body.q88wst-gallery-layout-fullslider .q88wst-gallery-slides>.q88wst-gallery-grid2-item:first-child{display:block}
body.q88wst-gallery-layout-fullslider .q88wst-gallery-slides>.q88wst-gallery-grid2-item.q88wst-is-active{display:block}

/* v0.8.5.3: layout-specific renderer, independent of Flatsome stacked markup. */
.q88wst-gallery-custom{box-sizing:border-box;width:100%;max-width:100%;min-width:0;float:none;position:relative}
.q88wst-gallery-custom .q88wst-gallery-grid2-item{display:block;min-width:0;overflow:hidden;border-radius:10px;line-height:0}
.q88wst-gallery-custom .q88wst-gallery-grid2-item img{display:block;width:100%;height:auto;max-width:100%;object-fit:cover}
.q88wst-gallery-custom.q88wst-gallery-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.q88wst-gallery-custom.q88wst-gallery-stacked{display:flex;flex-direction:column;gap:14px}
.q88wst-gallery-custom.q88wst-gallery-masonry{display:block;columns:2;column-gap:14px}
.q88wst-gallery-custom.q88wst-gallery-masonry>.q88wst-gallery-grid2-item{break-inside:avoid;margin-bottom:14px}
.q88wst-gallery-custom.q88wst-gallery-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.q88wst-gallery-custom.q88wst-gallery-featured>.q88wst-gallery-grid2-item:first-child{grid-column:1/-1}
.q88wst-gallery-custom.q88wst-gallery-fullslider{display:block}
.q88wst-gallery-custom.q88wst-gallery-fullslider .q88wst-gallery-slides>.q88wst-gallery-grid2-item{display:none}
.q88wst-gallery-custom.q88wst-gallery-fullslider .q88wst-gallery-slides>.q88wst-gallery-grid2-item.q88wst-is-active{display:block}

.q88wst-gallery-custom.q88wst-gallery-fullslider .q88wst-gallery-slides:has(.q88wst-is-active)>.q88wst-gallery-grid2-item:first-child:not(.q88wst-is-active){display:none}
.q88wst-gallery-custom .q88wst-gallery-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:10px}
.q88wst-gallery-custom .q88wst-gallery-controls button{margin:0;padding:5px 14px;min-height:34px}
@media(max-width:640px){.q88wst-gallery-custom.q88wst-gallery-masonry{columns:1}.q88wst-gallery-custom.q88wst-gallery-grid2,.q88wst-gallery-custom.q88wst-gallery-featured{gap:8px}}

/* 0.8.5.4 custom gallery navigation + horizontal stacked */
.q88wst-gallery-custom.q88wst-gallery-horizontalstack{width:100%}
.q88wst-gallery-custom.q88wst-gallery-horizontalstack .q88wst-gallery-slides{display:flex;overflow:hidden;width:100%;border-radius:12px}
.q88wst-gallery-custom.q88wst-gallery-horizontalstack .q88wst-gallery-slides>.q88wst-gallery-grid2-item{flex:0 0 100%;display:none}
.q88wst-gallery-custom.q88wst-gallery-horizontalstack .q88wst-gallery-slides>.q88wst-is-active{display:block}
.q88wst-gallery-custom .q88wst-gallery-controls button{background:#12294a;color:#fff;border:1px solid #fff;box-shadow:0 2px 12px #0004;border-radius:50%;width:46px;height:46px;padding:0;display:grid;place-items:center;font-size:32px;line-height:1;cursor:pointer;opacity:1}
.q88wst-gallery-custom .q88wst-gallery-controls button:hover,.q88wst-gallery-custom .q88wst-gallery-controls button:focus-visible{background:#0754ad;color:#fff;outline:2px solid #0754ad;outline-offset:2px}
.q88wst-gallery-video-play{display:block;position:relative;width:100%;border:0;padding:0;cursor:pointer;background:#111;color:white}
.q88wst-gallery-video-play img{width:100%;height:auto;opacity:.75}
.q88wst-gallery-video-play span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background:#d82027;color:white;font-size:24px;width:64px;height:64px;display:grid;place-items:center}
.q88wst-gallery-video iframe{display:block;width:100%;aspect-ratio:16/9;border:0}

/* v0.9.8.7.9: explicit-gallery only; never restyle native Flatsome gallery. */
.q88wst-gallery-custom .q88wst-gallery-thumbnails{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:8px 1px;scrollbar-width:thin}
.q88wst-gallery-custom .q88wst-gallery-thumb{flex:0 0 64px;width:64px;height:64px;padding:3px;min-height:0;margin:0;background:#fff;color:#25243a;border:1px solid #e7e9ef;border-radius:10px;display:grid;place-items:center;cursor:pointer;box-shadow:none}
.q88wst-gallery-custom .q88wst-gallery-thumb.is-active,.q88wst-gallery-custom .q88wst-gallery-thumb:focus-visible{border-color:#980d25;outline:2px solid #980d25;outline-offset:1px}
.q88wst-gallery-custom .q88wst-gallery-thumb img{width:100%;height:100%;object-fit:contain}
.q88wst-gallery-custom .q88wst-gallery-custom-count{position:absolute;right:12px;bottom:12px;padding:4px 10px;border-radius:16px;background:#25243acc;color:#fff;font-size:12px}
.q88wst-gallery-modal{position:fixed;inset:0;max-width:min(96vw,1100px);max-height:94vh;width:100%;padding:16px;border:1px solid #e7e9ef;border-radius:12px;background:#fff;color:#222;box-shadow:0 12px 45px #0002}
.q88wst-gallery-modal::backdrop{background:rgba(0,0,0,.75)}
.q88wst-gallery-modal__bar{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-bottom:8px}
.q88wst-gallery-modal__bar button,.q88wst-gallery-modal__body button{margin:0;border:1px solid #e7e9ef;border-radius:8px;background:#fff;color:#222;min-height:36px;min-width:36px;line-height:1;font-size:24px;padding:3px}
.q88wst-gallery-modal__body{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px;max-height:calc(94vh - 80px)}
.q88wst-gallery-modal__body img{display:block;margin:auto;max-width:100%;max-height:calc(94vh - 90px);width:auto;height:auto;object-fit:contain}
@media(max-width:640px){.q88wst-gallery-custom .q88wst-gallery-thumb{flex-basis:54px;width:54px;height:54px}.q88wst-gallery-modal{padding:8px}.q88wst-gallery-modal__body{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px}}
