jQuery Lightbox: Pop-up Image Viewer
✅ Features:
-
Click thumbnail → Show large image in overlay
-
Dark background (modal style)
-
Close on background click or X button
HTML Structure
CSS Styling
⚙️ jQuery Script
How It Works:
-
Each thumbnail
<img>contains adata-fullattribute with the full-size image. -
When clicked, the lightbox opens and displays that image.
-
Clicking outside the image or on the close button hides the lightbox.
✅ Optional Enhancements:
-
Add arrow buttons to navigate next/prev
-
Add keyboard controls (←/→/ESC)
-
Add captions or zoom functionality
-
Make it responsive for mobile
