.resq-gallery{min-width:0;--gallery-line:var(--r6-line,#E3E1DC);--gallery-red:var(--r6-red,#CF3A28)}
.resq-gallery__stage{position:relative;aspect-ratio:1;max-height:var(--commerce-media-desktop,680px);background:#fff;border:1px solid var(--gallery-line);touch-action:pan-y pinch-zoom}
.resq-gallery__slide{position:absolute;inset:0;display:block;cursor:zoom-in}
.resq-gallery__slide[hidden]{display:none}
.resq-gallery__slide>img{width:100%;height:100%;object-fit:contain;display:block}
.resq-gallery__slide--package{padding:32px}
.resq-gallery__slide--package>img{filter:drop-shadow(0 14px 12px #11111115)}
.resq-gallery__controls,.resq-gallery__paging{display:flex;align-items:center;justify-content:space-between;gap:12px}
.resq-gallery__paging{margin-left:auto;gap:8px;white-space:nowrap}
.resq-gallery__paging [data-gallery-position]{min-width:40px;text-align:center}
.resq-gallery__zoom,.resq-gallery__arrow{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--gallery-line);border-radius:4px;background:#fff;color:#111;font:inherit;cursor:pointer}
.resq-gallery__zoom{gap:12px;font-size:12px}.resq-gallery__zoom>span{font-size:18px}
.resq-gallery__arrow{width:44px;padding:10px;border-radius:50%;flex-shrink:0}
.resq-gallery__arrow[hidden],.resq-gallery__zoom[hidden]{display:none}
@media(hover:hover) and (pointer:fine){.resq-gallery__arrow:hover,.resq-gallery__zoom:hover{border-color:var(--gallery-red)}}
.resq-gallery__arrow svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
.resq-gallery__meta{display:grid;gap:8px;margin:12px 0;color:var(--r6-muted,#6B6B6B);font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}
.resq-gallery__thumbnails{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:clamp(76px,17%,104px);gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:4px 4px 10px;scrollbar-width:thin}
.resq-gallery__thumbnail{display:flex;flex-direction:column;min-width:0;border:1px solid var(--gallery-line);border-radius:4px;background:#fff;color:#111;text-align:center;text-decoration:none;overflow:hidden;scroll-snap-align:start}
.resq-gallery__thumbnail[aria-current=true]{border-color:var(--gallery-red);box-shadow:inset 0 0 0 1px var(--gallery-red)}
.resq-gallery__thumbnail img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;padding:4px}
.resq-gallery__thumbnail span{padding:4px 2px 8px;font-size:11px;line-height:1.45}
.resq-gallery :is(a,button,[tabindex]):focus-visible{outline:2px solid var(--gallery-red);outline-offset:3px}
.resq-gallery__dialog{position:fixed;inset:0;width:min(1120px,calc(100% - 48px));max-width:none;height:min(1000px,calc(100dvh - 48px));max-height:none;margin:auto;padding:0;border:0;border-radius:4px;background:#fff;color:#111;overflow:hidden}
.resq-gallery__dialog::backdrop{background:#111b}
.resq-gallery__dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.resq-gallery__dialog-bar,.resq-gallery__dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid var(--gallery-line);font-size:14px}
.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button{min-height:44px;padding:8px 12px;border:1px solid var(--gallery-line);border-radius:4px;background:#fff;color:#111;font:inherit;cursor:pointer}
.resq-gallery__dialog-bar button span{margin-left:8px;font-size:20px}
.resq-gallery__dialog-image{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.resq-gallery__dialog-image img{display:block;width:100%;height:100%;object-fit:contain}
.resq-gallery__dialog[data-gallery-magnified] .resq-gallery__dialog-image img{width:max(100%,1200px);height:auto;max-width:none}
.resq-gallery__dialog-controls{border-top:1px solid var(--gallery-line);border-bottom:0}
.resq-gallery-open{overflow:hidden}
.resq-gallery-open .resq-product-sticky{visibility:hidden;pointer-events:none}
@media(max-width:680px){.resq-gallery__stage{max-height:var(--commerce-media-mobile,400px)}.resq-gallery__slide--package{padding:20px}.resq-gallery__thumbnails{grid-auto-columns:80px;gap:8px}.resq-gallery__thumbnail span{font-size:11px;padding-bottom:6px}.resq-gallery__dialog{width:100%;height:100dvh;border-radius:0}.resq-gallery__dialog-bar,.resq-gallery__dialog-controls{padding:10px 12px;gap:8px;font-size:12px}.resq-gallery__dialog-bar>span{min-width:0}.resq-gallery__dialog-bar button{flex-shrink:0}.resq-gallery__dialog-controls{flex-wrap:wrap}.resq-gallery__dialog-controls button{padding:8px}}

body.resq-body .resq-gallery{--gallery-line:var(--resq-ui-line,#dce1e2)}
body.resq-body :is(.resq-gallery__zoom,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button){border-radius:var(--resq-ui-radius,3px)}
body.resq-body :is(.resq-gallery__zoom,.resq-gallery__arrow,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button){transition:background-color 150ms ease-out,border-color 150ms ease-out,color 150ms ease-out,transform 150ms ease-out}
body.resq-body :is(.resq-gallery__zoom,.resq-gallery__arrow,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button):active{background:var(--r14-paper,#f2f4f5);border-color:var(--r14-ink,#182527);transform:translateY(var(--resq-ui-press,1px))}
.resq-gallery__dialog[open]{animation:resq-gallery-dialog-in 150ms ease-out}
.resq-gallery__dialog[open]::backdrop{animation:resq-gallery-backdrop-in 150ms ease-out}
.resq-gallery__dialog[open][data-gallery-instant],.resq-gallery__dialog[open][data-gallery-instant]::backdrop{animation:none}
body.resq-body :is(.resq-gallery__zoom,.resq-gallery__arrow,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button):focus-visible{transition:none}
body.resq-body :is(.resq-gallery__zoom,.resq-gallery__arrow,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button):focus-visible:active{transform:none}
@keyframes resq-gallery-dialog-in{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes resq-gallery-backdrop-in{from{background:#1110}to{background:#111b}}
@media(hover:hover) and (pointer:fine){body.resq-body :is(.resq-gallery__zoom,.resq-gallery__arrow,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button):hover{background:var(--r14-paper,#f2f4f5);border-color:var(--r14-ink,#182527);text-decoration:none}}
@media(prefers-reduced-motion:reduce){
 body.resq-body :is(.resq-gallery__zoom,.resq-gallery__arrow,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button){transition:none}
 body.resq-body :is(.resq-gallery__zoom,.resq-gallery__arrow,.resq-gallery__thumbnail,.resq-gallery__dialog-bar button,.resq-gallery__dialog-controls button):active{transform:none}
 .resq-gallery__dialog[open],.resq-gallery__dialog[open]::backdrop{animation:none}
}
