.product-gallery{min-width:0;padding:12px;border:1px solid #e7dfd1;border-radius:26px;background:#fff;box-shadow:0 12px 30px #52402406}
.gallery-stage{position:relative;overflow:hidden;isolation:isolate;border-radius:18px;background:#f4f3ec;aspect-ratio:1.28;max-height:650px}
.gallery-open{width:100%;height:100%;padding:20px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:zoom-in;touch-action:pan-y pinch-zoom}
.gallery-open>img{width:100%;height:100%;object-fit:contain;border-radius:8px;user-select:none;-webkit-user-drag:none}
.gallery-expand{position:absolute;right:14px;bottom:14px;display:flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #fff9;border-radius:13px;background:#fffffff0;color:#214a3b;font-size:13px;font-weight:800;box-shadow:0 3px 12px #203d2a12;pointer-events:none}
.gallery-expand .ph{font-size:20px}.gallery-position{position:absolute;left:14px;bottom:14px;border-radius:11px;padding:8px 11px;background:#173d32e8;color:white;font-size:13px;font-weight:800;pointer-events:none;font-variant-numeric:tabular-nums}
.gallery-stage>[data-gallery-prev],.gallery-stage>[data-gallery-next],.lightbox-stage>[data-gallery-prev],.lightbox-stage>[data-gallery-next]{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid #e4e4d9;border-radius:50%;background:#fffffff2;color:#234b3b;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 18px #1b35251c;z-index:2}
.gallery-stage>[data-gallery-prev],.lightbox-stage>[data-gallery-prev]{left:12px}.gallery-stage>[data-gallery-next],.lightbox-stage>[data-gallery-next]{right:12px}
.product-gallery button .ph,.photo-lightbox button .ph{font-size:22px}.gallery-arrow{display:block;width:22px;height:22px;flex-shrink:0;pointer-events:none;color:inherit}.gallery-open:focus:not(:focus-visible){outline:none}.gallery-thumbnails button:hover{border-color:#9db58b}
.gallery-thumbnails,.lightbox-thumbnails{position:relative;display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:12px 2px 5px;scroll-snap-type:x proximity}
.gallery-thumbnails button,.lightbox-thumbnails button{position:relative;flex:0 0 78px;height:72px;padding:4px;border:2px solid transparent;border-radius:12px;background:#f5f4ee;cursor:pointer;scroll-snap-align:nearest}
.gallery-thumbnails button[aria-pressed=true],.lightbox-thumbnails button[aria-pressed=true]{border-color:#28543f;background:#e7f3e8}
.gallery-thumbnails img,.lightbox-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:7px;pointer-events:none}.gallery-thumbnails button>span{position:absolute;bottom:4px;right:4px;padding:1px 5px;border-radius:5px;background:#fffef0eb;color:#35513a;font-size:10px;font-weight:800}
.gallery-tip{display:flex;align-items:center;gap:7px;margin:10px 3px 2px;color:#657367;font-size:12px;line-height:1.6}.gallery-tip .ph{font-size:19px;flex-shrink:0}
.gallery-load-error{position:absolute;inset:20% 10%;display:grid;place-items:center;background:#f4f3ec;font-size:16px;color:#657367}.gallery-load-error[hidden]{display:none}
.gallery-unavailable{padding:70px 25px;text-align:center;color:#657367}
html.photo-viewer-open,html.photo-viewer-open body{overflow:hidden!important;overscroll-behavior:none}
.photo-lightbox{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;padding:0;margin:0;border:0;border-radius:0;background:#111c19fa;color:#fff;z-index:1000;overscroll-behavior:none}
.photo-lightbox::backdrop{background:#111c19f5}.photo-lightbox:not([open]){display:none}
.lightbox-shell{width:100%;height:100%;display:flex;flex-direction:column;min-height:0;padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));gap:10px;font-family:Manrope,system-ui,sans-serif}
.lightbox-header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-width:0}.lightbox-header>div{min-width:0}.lightbox-header strong{display:block;max-width:800px;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lightbox-header [data-lightbox-position]{display:block;margin-top:5px;font-size:13px;color:#bbcfc3}
.photo-lightbox button{border:1px solid #ffffff30;border-radius:12px;background:#ffffff12;color:#fff;min-width:44px;height:44px;padding:8px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px;font-weight:700;box-shadow:none;transform:none;flex-shrink:0}
.photo-lightbox button:hover:not(:disabled){background:#ffffff28}.photo-lightbox button:disabled{opacity:.3;cursor:default}.photo-lightbox [data-gallery-close]{border-radius:50%;background:#fff;color:#254437}
.gallery-stage>[data-gallery-prev]:hover,.gallery-stage>[data-gallery-next]:hover,.photo-lightbox .lightbox-stage>[data-gallery-prev]:hover,.photo-lightbox .lightbox-stage>[data-gallery-next]:hover{background:#28543f;color:#fff;border-color:#28543f;filter:none;transform:translateY(-50%)}.photo-lightbox [data-gallery-close]:hover{background:#e3efdf;color:#254437}
.lightbox-toolbar{display:flex;gap:8px;align-items:center;justify-content:center;flex-shrink:0}.lightbox-toolbar output{min-width:50px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.lightbox-toolbar [data-gallery-reset]{padding:8px 14px;margin-left:5px}
.lightbox-stage{flex:1;min-height:0;position:relative;overflow:hidden}.lightbox-surface{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;cursor:zoom-in;outline-offset:-4px}.lightbox-surface.is-zoomed{cursor:grab}.lightbox-surface.is-zoomed:active{cursor:grabbing}
.lightbox-surface>img{max-width:none;max-height:none;flex-shrink:0;object-fit:contain;will-change:transform;transform-origin:center;pointer-events:none;user-select:none;-webkit-user-drag:none}.lightbox-surface>img[hidden]{display:none}
.lightbox-error{max-width:420px;text-align:center;padding:24px;line-height:1.7;color:#e3e9df}.lightbox-error[hidden]{display:none}
.lightbox-thumbnails{flex-shrink:0;justify-content:safe center;padding-top:0;scrollbar-color:#607d6f transparent}.lightbox-thumbnails button{flex-basis:64px;height:56px;padding:3px;background:#ffffff10;min-width:64px}.lightbox-thumbnails button[aria-pressed=true]{border-color:#cfe5a4;background:#ffffff30}
.lightbox-help{margin:0;text-align:center;font-size:11px;line-height:1.5;color:#b2c5b8}
.product-gallery button:focus-visible,.photo-lightbox button:focus-visible,.lightbox-surface:focus-visible{outline:3px solid #9dbb6b;outline-offset:2px}
@media(max-width:820px){.product-gallery{padding:8px;border-radius:20px}.gallery-stage{aspect-ratio:1.12;border-radius:14px}.gallery-open{padding:12px}.gallery-expand{right:10px;bottom:10px;padding:9px}.gallery-expand span{display:none}.gallery-position{left:10px;bottom:10px}.gallery-tip{font-size:11px;margin:8px 2px}.gallery-thumbnails button{flex-basis:64px;height:62px}.gallery-stage>[data-gallery-prev],.gallery-stage>[data-gallery-next]{width:40px;height:40px}.gallery-stage>[data-gallery-prev]{left:7px}.gallery-stage>[data-gallery-next]{right:7px}.lightbox-shell{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));gap:8px}.lightbox-header strong{font-size:14px}.lightbox-help{font-size:10px}.lightbox-stage>[data-gallery-prev],.lightbox-stage>[data-gallery-next]{width:40px;height:40px;min-width:40px;background:#173f32c7;border-color:#ffffff50;color:#fff}.lightbox-stage>[data-gallery-prev]{left:2px}.lightbox-stage>[data-gallery-next]{right:2px}.lightbox-toolbar [data-gallery-reset]{font-size:11px;padding:8px;margin-left:0}}
@media(max-height:500px) and (orientation:landscape){.lightbox-shell{gap:5px;padding-top:5px;padding-bottom:5px}.lightbox-header strong{font-size:13px}.lightbox-header [data-lightbox-position]{display:inline;margin-left:12px}.lightbox-header>div{display:flex;align-items:center}.lightbox-toolbar{position:absolute;right:70px;top:5px;z-index:3}.lightbox-toolbar [data-gallery-reset]{display:none}.lightbox-header strong{max-width:30vw}.lightbox-thumbnails button{height:40px;flex-basis:48px;min-width:48px}.lightbox-help{display:none}}
