Theme Preview

{#each images as image, i (image.full)} {/each}
event.target === lightbox && lightbox.close()} onkeydown={(event) => { if (event.key === 'ArrowLeft') show(current - 1); if (event.key === 'ArrowRight') show(current + 1); }} > {images[current].alt}