/* Shared enlarged photo viewer; original image links remain usable without JS. */
body.pgl-open{overflow:hidden;padding-right:var(--pgl-body-padding,0px)}
dialog.pgl-dialog{--pgl-green:#226d3c;--pgl-ink:#20372a;position:fixed;inset:0;width:min(1240px,calc(100vw - 64px));height:min(920px,calc(100dvh - 64px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #dce6df;border-radius:16px;background:#fff;color:var(--pgl-ink);box-shadow:0 24px 100px #0006;overflow:hidden;font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;z-index:1080}
dialog.pgl-dialog::backdrop{background:#10231de0;backdrop-filter:blur(4px)}
dialog.pgl-dialog:not([open]){display:none}dialog.pgl-dialog[open]{display:flex;flex-direction:column}
.pgl-dialog *{box-sizing:border-box}.pgl-dialog [hidden]{display:none!important}
.pgl-dialog button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid #d7e3da;border-radius:9px;background:#fff;color:var(--pgl-green);font:inherit;cursor:pointer;touch-action:manipulation}
.pgl-dialog button:hover{background:#edf6ef}.pgl-dialog button:disabled{opacity:.45;cursor:default}
.pgl-dialog :is(button,a):focus-visible{outline:3px solid #32844d;outline-offset:3px}
.pgl-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;padding:16px 20px;border-bottom:1px solid #e2eae5;background:#fff}
.pgl-heading{min-width:0}.pgl-heading p{margin:0}.pgl-heading #pgl-title{font-size:18px;font-weight:700;letter-spacing:-.02em}
.pgl-heading #pgl-product{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;color:#617369;font-size:12px;line-height:1.4}
.pgl-tools{display:flex;align-items:center;gap:8px}
.pgl-stage{position:relative;flex:1;min-height:0;background:#fff;isolation:isolate}
.pgl-viewport{position:absolute;inset:0;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
.pgl-canvas{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:20px 72px}
#pgl-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;user-select:none;-webkit-user-select:none}
.pgl-viewport.is-zoomed{overflow:auto;touch-action:pan-x pan-y pinch-zoom;cursor:grab}
.pgl-viewport.is-zoomed .pgl-canvas{width:max-content;height:max-content;min-width:100%;min-height:100%;padding:16px}
.pgl-viewport.is-zoomed #pgl-image{flex-shrink:0;max-width:none;max-height:none;cursor:zoom-out}
.pgl-dialog .pgl-nav{position:absolute;top:50%;z-index:1;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;box-shadow:0 2px 12px #193e2221;background:#fffffff5}
#pgl-prev{left:14px}#pgl-next{right:14px}
.pgl-error{position:absolute;inset:0;display:grid;place-content:center;margin:0;padding:30px;text-align:center;color:#6a746d;background:#fff}
.pgl-dialog[data-loading="true"] .pgl-stage::after{content:"";position:absolute;top:50%;left:50%;width:30px;height:30px;margin:-15px;border:3px solid #dfebe2;border-top-color:var(--pgl-green);border-radius:50%;animation:pgl-spin .8s linear infinite;pointer-events:none}
.pgl-footer{flex-shrink:0;min-width:0;padding:12px 20px 16px;border-top:1px solid #e2eae5;background:#f7faf8}
.pgl-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px;font-size:12px}.pgl-meta p{margin:0;font-weight:600;white-space:nowrap}.pgl-meta a{color:var(--pgl-green);text-align:right;text-decoration:underline;text-underline-offset:3px}
#pgl-thumbnails{display:flex;gap:9px;max-width:100%;padding:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
#pgl-thumbnails button{width:68px;height:64px;padding:4px;border-radius:7px;border-color:#dce5df;background:#fff}
#pgl-thumbnails button[aria-pressed="true"]{border:2px solid var(--pgl-green);box-shadow:0 0 0 2px #d7eadb}
#pgl-thumbnails img{display:block;width:100%;height:100%;object-fit:contain}
@keyframes pgl-spin{to{transform:rotate(360deg)}}
@media(max-width:767.98px){
    dialog.pgl-dialog{width:100%;height:100dvh;inset:0;margin:0;border:0;border-radius:0}
    .pgl-header{gap:10px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px}.pgl-heading #pgl-title{font-size:15px}.pgl-heading #pgl-product{font-size:11px}.pgl-tools{gap:6px}
    .pgl-dialog button{width:42px;height:42px}.pgl-canvas{padding:12px 44px}.pgl-dialog .pgl-nav{width:38px;height:44px;border-radius:8px}#pgl-prev{left:4px}#pgl-next{right:4px}
    .pgl-footer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.pgl-meta{font-size:11px;gap:8px;margin-bottom:6px}#pgl-thumbnails{gap:8px}#pgl-thumbnails button{width:58px;height:54px}
}
@media(prefers-reduced-motion:reduce){.pgl-dialog[data-loading="true"] .pgl-stage::after{animation:none}}
@media print{dialog.pgl-dialog{display:none!important}}
