/* Progressive enhancement: an ordinary image link works without a dialog. */
a[data-showcase]{position:relative;display:block;max-width:100%;min-width:0;justify-self:center;cursor:zoom-in}
a[data-showcase]:focus-visible,#showcase-viewer :focus-visible{outline:3px solid #d89321;outline-offset:3px}
a[data-showcase]::after{content:"⤢";position:absolute;right:.35rem;bottom:.35rem;display:grid;place-items:center;width:1.8rem;height:1.8rem;border:1px solid #fffa;border-radius:50%;background:#173f32;color:#fff;font:700 1.15rem/1 system-ui;pointer-events:none}
.showcase-open,.showcase-open body{overflow:hidden}
#showcase-viewer{position:fixed;inset:0;box-sizing:border-box;width:fit-content;max-width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);margin:auto;padding:.7rem;border:1px solid #bfc9b9;border-radius:1rem;background:#fffaf0;color:#20392c;overscroll-behavior:contain}
#showcase-viewer:not([open]){display:none}
#showcase-viewer::backdrop{background:#101f19db}
#showcase-viewer header{display:flex;align-items:center;justify-content:space-between;gap:1rem;position:static;background:transparent}
#showcase-viewer button,#showcase-viewer [data-original]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:.25rem .65rem;font:inherit}
#showcase-viewer button{color:white;background:#214e3d;border-radius:.5rem;border:0;cursor:pointer}
#showcase-viewer figure{margin:.4rem 0 0;text-align:center}
#showcase-viewer img{display:block;margin:auto;max-width:100%;width:auto;max-height:70vh;max-height:70dvh;height:auto;object-fit:contain;touch-action:pan-x pan-y pinch-zoom}
#showcase-viewer figcaption{margin:.25rem auto 0;max-width:65ch;line-height:1.35}
@media(max-width:680px){
  body main .container:has(.online83-shot){width:calc(100% - 1.25rem);max-width:none;margin-inline:auto}
  main .online83-gallery,main .editorial-pair,main .two-view,main .hero-grid{grid-template-columns:minmax(0,1fr)}
  main .online83-shot,main .hero-product,main .online83-gallery>*{width:100%;max-width:none;min-width:0}
  main .online83-shot a[data-showcase]{display:block;width:100%}
  main .online83-shot a[data-showcase] img,main .two-view .online83-shot a[data-showcase] img{display:block;width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain;aspect-ratio:auto}
  main .online83-shot figcaption{font-size:.9rem}
  #showcase-viewer{max-width:calc(100vw - .5rem);padding:.5rem}
}
@media(prefers-reduced-motion:reduce){#showcase-viewer,#showcase-viewer::backdrop,a[data-showcase]{animation:none;transition:none;scroll-behavior:auto}}
