diff --git a/index.html b/index.html
index dcffe49..61e4cfb 100755
--- a/index.html
+++ b/index.html
@@ -1506,20 +1506,23 @@
Photos
const card = document.createElement('div');
card.className = 'album-item';
- // High-res hack: substitute =s... with =s1200 for better quality than default thumbnail
- let src = item.thumbnailLink;
- if (src && src.includes('=s')) {
- src = src.replace(/=s\d+/, '=s1200');
+ // Optimized: Use smaller size for grid, larger for lightbox
+ let thumbSrc = item.thumbnailLink;
+ let fullSrc = item.thumbnailLink;
+
+ if (thumbSrc && thumbSrc.includes('=s')) {
+ thumbSrc = thumbSrc.replace(/=s\d+/, '=s400');
+ fullSrc = fullSrc.replace(/=s\d+/, '=s1200');
}
const img = document.createElement('img');
img.alt = item.name || 'Photo';
img.loading = 'lazy';
- img.src = src;
+ img.src = thumbSrc;
// Add Lightbox interaction
img.style.cursor = 'pointer';
- img.addEventListener('click', () => openLightbox(src));
+ img.addEventListener('click', () => openLightbox(fullSrc));
card.appendChild(img);
grid.appendChild(card);
diff --git a/server.log b/server.log
new file mode 100644
index 0000000..e2ca792
--- /dev/null
+++ b/server.log
@@ -0,0 +1,4 @@
+127.0.0.1 - - [31/Jan/2026 16:37:53] "GET / HTTP/1.1" 200 -
+127.0.0.1 - - [31/Jan/2026 16:37:53] "GET /flower.jpg HTTP/1.1" 200 -
+127.0.0.1 - - [31/Jan/2026 16:38:38] "GET / HTTP/1.1" 200 -
+127.0.0.1 - - [31/Jan/2026 16:38:38] "GET /flower.jpg HTTP/1.1" 200 -