/* Product-only gallery. Loaded after the seasonal storefront styles. */
.product-gallery .pg-gallery{display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;gap:12px;height:min(760px,var(--pg-available,calc(100svh - 200px)));min-width:0}
.pg-gallery .pg-stage{position:relative;min-height:0;overflow:hidden;background:var(--soft,#eeece6);touch-action:pan-y pinch-zoom}
.product-gallery .pg-gallery .product-zoom{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;overflow:hidden;cursor:zoom-in}
.product-gallery .pg-gallery .main-product-img{display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;background:transparent;user-select:none;-webkit-user-drag:none}
.pg-gallery .product-zoom:focus-visible{outline:2px solid var(--accent,#613e3f);outline-offset:-4px}
.pg-zoom-hint{position:absolute;top:13px;right:13px;font-size:11px;line-height:1.4;padding:6px 10px;background:#faf9f6e8;color:var(--ink,#292825);pointer-events:none}
.pg-counter{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);padding:4px 11px;border-radius:20px;background:#faf9f6ed;color:var(--ink,#292825);font-size:12px;line-height:1.5;pointer-events:none;white-space:nowrap}
.pg-stage .pg-arrow,.pg-lightbox-stage .pg-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #d4d0c8;border-radius:50%;padding:10px;background:#faf9f6ed;color:var(--ink,#292825);box-shadow:0 2px 12px #2928250d;cursor:pointer}
.pg-arrow-prev{left:12px}.pg-arrow-next{right:12px}.pg-arrow svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.pg-arrow:hover{background:#fff}.pg-arrow:focus-visible,.pg-thumb:focus-visible,.pg-close:focus-visible{outline:2px solid var(--accent,#613e3f);outline-offset:2px}
.pg-gallery .gallery-caption,.pg-gallery .source-note{margin:0;font-size:11px;line-height:1.55;max-height:54px;overflow:auto;overflow-wrap:anywhere;color:var(--muted,#68665f)}
.pg-gallery [hidden]{display:none}
.pg-thumbs,.pg-support-thumbs,.pg-filmstrip{position:relative;display:flex;gap:9px;align-items:center;overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;scrollbar-width:thin;scrollbar-color:#b8b0a4 transparent;overscroll-behavior-x:contain;padding:3px 3px 7px;margin:-3px -3px -7px;touch-action:pan-x pan-y pinch-zoom}
.pg-thumbs .pg-thumb,.pg-support-thumbs .pg-thumb,.pg-filmstrip .pg-thumb{display:block;flex:0 0 62px;width:62px;height:70px;min-width:62px;min-height:44px;border:1px solid transparent;padding:2px;background:transparent;cursor:pointer;box-sizing:border-box}
.pg-thumbs .pg-thumb.active,.pg-filmstrip .pg-thumb.active{border-color:var(--ink,#292825)}
.pg-thumb img{display:block;width:100%;height:100%;object-fit:contain;background:var(--white,#fff);pointer-events:none;user-select:none;-webkit-user-drag:none}
.pg-support-thumbs{margin-top:12px}.pg-support summary{cursor:pointer}.pg-support summary>span{color:var(--muted,#68665f);font-size:11px;margin-left:8px}.pg-support p{font-size:12px;line-height:1.7;color:var(--muted,#68665f);margin-top:10px}
dialog.pg-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:15px clamp(12px,2vw,30px) 12px;border:0;background:var(--paper,#faf9f6);color:var(--ink,#292825);overflow:hidden;box-sizing:border-box}
dialog.pg-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:12px}
.pg-lightbox::backdrop{background:#292825d9}
.pg-lightbox-header{display:flex;gap:20px;align-items:center;min-width:0;min-height:44px}.pg-lightbox-header h2{flex:1;min-width:0;font:500 15px/1.45 var(--sans,Arial,sans-serif);letter-spacing:0;margin:0;max-height:44px;overflow:auto;overflow-wrap:anywhere}.pg-lightbox-count{flex-shrink:0;font-size:13px;white-space:nowrap}.pg-lightbox-header .pg-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid var(--line,#dedbd4);border-radius:50%;padding:0;font:400 21px/1 Arial,sans-serif;background:var(--paper,#faf9f6);color:var(--ink,#292825);cursor:pointer}
.pg-lightbox-stage{position:relative;min-width:0;min-height:0;overflow:hidden;background:var(--soft,#efede7);touch-action:pan-y pinch-zoom}
.pg-lightbox .pg-lightbox-image{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
.pg-lightbox-caption{margin:0;max-height:42px;overflow:auto;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:var(--muted,#68665f)}
.pg-filmstrip{align-self:end;padding-bottom:8px;margin-bottom:-8px;min-height:84px}.pg-filmstrip .pg-thumb{flex-basis:68px;min-width:68px;width:68px;height:80px}.pg-filmstrip-group{display:flex;flex:0 0 auto;align-items:center;align-self:stretch;max-width:110px;padding:4px 9px 4px 13px;margin-left:7px;border-left:1px solid var(--line,#dedbd4);font-size:11px;line-height:1.5;color:var(--muted,#68665f)}.pg-filmstrip-group:first-child{padding-left:0;margin-left:0;border-left:0}.pg-lightbox-help{font-size:11px;line-height:1.5;color:var(--muted,#68665f);text-align:center;margin:0}
@media(min-width:641px){.product-gallery:has(.pg-gallery){top:100px}.product-gallery .pg-gallery{max-height:calc(100svh - 116px)}}
@media(max-width:640px){.product-gallery .pg-gallery{height:min(610px,var(--pg-available,calc(100svh - 180px)));gap:10px}.pg-stage .pg-arrow,.pg-lightbox-stage .pg-arrow{width:44px;height:44px}.pg-arrow-prev{left:8px}.pg-arrow-next{right:8px}.pg-thumbs{gap:7px}.pg-thumbs .pg-thumb{flex-basis:53px;min-width:53px;width:53px;height:60px}.pg-zoom-hint{top:10px;right:10px;font-size:10px}.pg-counter{bottom:10px}.pg-gallery .gallery-caption,.pg-gallery .source-note{font-size:11px;max-height:68px}dialog.pg-lightbox{padding:8px 8px max(10px,env(safe-area-inset-bottom));gap:9px}.pg-lightbox-header{gap:10px}.pg-lightbox-header h2{font-size:12px;max-height:38px}.pg-lightbox-count{font-size:12px}.pg-lightbox-caption{font-size:11px;max-height:52px}.pg-filmstrip{gap:7px;min-height:74px}.pg-filmstrip .pg-thumb{flex-basis:57px;min-width:57px;width:57px;height:68px}.pg-filmstrip-group{font-size:10px;max-width:84px;padding-left:9px;padding-right:5px}.pg-lightbox-help{font-size:10px}.pg-lightbox-help span{display:none}}
@media(max-height:500px){dialog.pg-lightbox[open]{gap:6px}.pg-filmstrip{min-height:58px}.pg-filmstrip .pg-thumb{height:52px;flex-basis:47px;min-width:47px}.pg-lightbox-caption{max-height:20px}.pg-lightbox-help{display:none}}
