- {#if onPhotoClick}
-
handlePhotoClick(photo)} type="button">
-
-
- {:else}
-
- {/if}
+
+
+
+ {#if masonry && masonryConfig()}
+ {@const config = masonryConfig()}
+
+
+ {#snippet children({ item })}
+
+
+ {#if showCaptions}
+
{item.caption || ''}
+ {/if}
+
+ {/snippet}
+
+ {:else if (columns === 1 || columns === 2 || columns === 3) && !masonry}
+
+ {#each columnPhotos as column, colIndex}
+
+ {#each column as photo}
+
+
+ {#if showCaptions}
+
{photo.caption || ''}
+ {/if}
+
+ {/each}
+
+ {/each}
+ {:else}
+
+
+ {#each photos as photo}
+
+
+ {#if showCaptions}
+
{photo.caption || ''}
+ {/if}
+
+ {/each}
- {/each}
+ {/if}
+
\ No newline at end of file
diff --git a/src/lib/components/SingleColumnPhotoGrid.new.svelte b/src/lib/components/SingleColumnPhotoGrid.new.svelte
deleted file mode 100644
index 8dde6b1..0000000
--- a/src/lib/components/SingleColumnPhotoGrid.new.svelte
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/lib/components/SingleColumnPhotoGrid.svelte b/src/lib/components/SingleColumnPhotoGrid.svelte
index 803126f..f06ba47 100644
--- a/src/lib/components/SingleColumnPhotoGrid.svelte
+++ b/src/lib/components/SingleColumnPhotoGrid.svelte
@@ -1,60 +1,12 @@
-
- {#each photoItems as item}
-
-
- {#if !isAlbum(item) && item.caption}
-
- {/if}
-
- {/each}
-
-
-
+
\ No newline at end of file
diff --git a/src/lib/components/ThreeColumnPhotoGrid.new.svelte b/src/lib/components/ThreeColumnPhotoGrid.new.svelte
deleted file mode 100644
index cf4608c..0000000
--- a/src/lib/components/ThreeColumnPhotoGrid.new.svelte
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/lib/components/ThreeColumnPhotoGrid.svelte b/src/lib/components/ThreeColumnPhotoGrid.svelte
index 1f804fb..ad2df82 100644
--- a/src/lib/components/ThreeColumnPhotoGrid.svelte
+++ b/src/lib/components/ThreeColumnPhotoGrid.svelte
@@ -1,282 +1,12 @@
-
- {#each gridItems as { item, spanFull }}
-
handleClick(item)}
- type="button"
- >
-
-
-
- {#if isAlbum(item)}
-
-
- {item.title}
- {item.photos.length} photos
-
-
- {/if}
-
- {/each}
-
-
-
+
\ No newline at end of file
diff --git a/src/lib/components/TwoColumnPhotoGrid.new.svelte b/src/lib/components/TwoColumnPhotoGrid.new.svelte
deleted file mode 100644
index fe027bb..0000000
--- a/src/lib/components/TwoColumnPhotoGrid.new.svelte
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/lib/components/TwoColumnPhotoGrid.svelte b/src/lib/components/TwoColumnPhotoGrid.svelte
index 4f25e38..5be9155 100644
--- a/src/lib/components/TwoColumnPhotoGrid.svelte
+++ b/src/lib/components/TwoColumnPhotoGrid.svelte
@@ -1,51 +1,12 @@
-
-
- {#each column1 as item}
-
- {/each}
-
-
- {#each column2 as item}
-
- {/each}
-
-
-
-
+
\ No newline at end of file
diff --git a/src/routes/albums/[slug]/+page.svelte b/src/routes/albums/[slug]/+page.svelte
index adf2ee8..9171dbd 100644
--- a/src/routes/albums/[slug]/+page.svelte
+++ b/src/routes/albums/[slug]/+page.svelte
@@ -1,6 +1,6 @@
+
+
+
PhotoGrid Component Test
+
+
+
+
+ Columns:
+
+ 1 Column
+ 2 Columns
+ 3 Columns
+ Auto
+
+
+
+
+
+
+ Gap:
+
+ Small
+ Medium
+ Large
+
+
+
+
+
+
+
+ Masonry Layout
+
+
+
+
+
+
+ Show Captions
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file