Wrote an article
📸 how you can create a basic responsive gallery in SvelteKit with lazy-loading.

Also see how you use DOM element height in your ❤️ Svelte code and how Vite ./your-folder/*.js imports work.

Hope you find it useful!

https://rodneylab.com/simple-svelte-responsive-image-gallery/