diff --git a/src/lib/components/PhotoViewEnhanced.svelte b/src/lib/components/PhotoViewEnhanced.svelte
new file mode 100644
index 0000000..bce783c
--- /dev/null
+++ b/src/lib/components/PhotoViewEnhanced.svelte
@@ -0,0 +1,270 @@
+
+
+
+ {#key id || src}
+
+
+
+ {/key}
+
+
+
\ No newline at end of file
diff --git a/src/routes/api/photos/+server.ts b/src/routes/api/photos/+server.ts
index a9a0e32..9327a5f 100644
--- a/src/routes/api/photos/+server.ts
+++ b/src/routes/api/photos/+server.ts
@@ -112,7 +112,7 @@ export const GET: RequestHandler = async (event) => {
description: album.description || undefined,
coverPhoto: {
id: `cover-${firstMedia.id}`,
- src: firstMedia.thumbnailUrl || firstMedia.url,
+ src: firstMedia.url,
alt: firstMedia.photoCaption || album.title,
caption: firstMedia.photoCaption || undefined,
width: firstMedia.width || 400,
@@ -120,7 +120,7 @@ export const GET: RequestHandler = async (event) => {
},
photos: album.media.map((albumMedia) => ({
id: `media-${albumMedia.media.id}`,
- src: albumMedia.media.thumbnailUrl || albumMedia.media.url,
+ src: albumMedia.media.url,
alt: albumMedia.media.photoCaption || albumMedia.media.filename,
caption: albumMedia.media.photoCaption || undefined,
width: albumMedia.media.width || 400,
@@ -137,7 +137,7 @@ export const GET: RequestHandler = async (event) => {
return {
id: `media-${media.id}`,
- src: media.thumbnailUrl || media.url,
+ src: media.url,
alt: media.photoTitle || media.photoCaption || media.filename,
caption: media.photoCaption || undefined,
width: media.width || 400,
diff --git a/src/routes/photos/[albumSlug]/[photoId]/+page.svelte b/src/routes/photos/[albumSlug]/[photoId]/+page.svelte
index ca87807..28d5fe9 100644
--- a/src/routes/photos/[albumSlug]/[photoId]/+page.svelte
+++ b/src/routes/photos/[albumSlug]/[photoId]/+page.svelte
@@ -1,6 +1,6 @@