From f3005e626d9791a20221db3924157bf63999dd84 Mon Sep 17 00:00:00 2001 From: jay Date: Tue, 30 Jun 2026 14:52:10 -0400 Subject: [PATCH] art: desktop zoom in the lightbox (pan-by-cursor), mobile keeps pinch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The full-screen lightbox showed the framed piece capped at ~66vh, so on desktop it was barely larger than the page view and there was no way to inspect detail (mobile can pinch). Add a "Zoom in" affordance: it swaps to a magnified inspection view (full-res image scaled 2.5×) where moving the cursor pans via transform-origin; click or Escape steps back to the framed view, Escape/✕/backdrop close. Restructured the lightbox from a single + + {#if zoomed} + + + Move to look closer · click to zoom out + {:else} + + + {#if isWood}{@render woodRails()}{/if} + {art.title} + + {art.title}{#if art.artist}·{art.artist}{/if} + - {art.title}{#if art.artist}·{art.artist}{/if} - - + {/if} + {/if}