Shrink the loupe popup to (viewport_width - 32px) when 480px would overflow, keeping the 16:9 aspect ratio. Centering math uses the computed width so the clamp keeps the popup fully on-screen.