From a44b7848dde07f3b9e9ec123242030b6388eb974 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 10 Feb 2026 20:29:38 +0000 Subject: [PATCH] Fix lightbox: close when clicking outside the photo itself Move stopPropagation from the outer container to the image element only, so clicking dark space around the photo closes the lightbox. Co-Authored-By: Claude Opus 4.6 --- src/app/page.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f6942a6..6ad847a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -258,11 +258,11 @@ function GallerySection() { -
e.stopPropagation()} - > -
+
+
e.stopPropagation()} + > {selectedArtwork.title}
-

+

e.stopPropagation()} + > {selectedArtwork.title}