{#if items.length === 0}
No pictures.
{:else}
1 && nearing} > {#each items as item, i (i)} {@const label = item.alt || `Picture ${i + 1} of ${items.length}`} {@const fit = style === 'carousel' ? 'contain' : 'cover'} {@const sized = style === 'rows' ? {} : { srcset: item.srcset, sizes }}
{#if style === 'carousel' && i > reached + 1} {:else if item.full && (style !== 'carousel' || zoom)}
(onlike && event.detail > 0 ? tapped({ i, opens: true, event }) : (open = i))} >
{:else if onlike}
tapped({ i, opens: false, event })}>
{:else}
{/if} {#if showAlt && item.alt}{@const alt = overlay(i, 'alt')}
{/if} {#if style !== 'carousel' && item.info?.length}{@const info = overlay(i, 'info')}
{/if}
{/each}
{#if style === 'carousel' && items.length > 1} {#if at > 0}
step(at - 1)} >
{/if} {#if at < items.length - 1}
step(at + 1)} >
{/if}
{#each dots as i (i)}
{/each}
{/if}
{#if infoLines > 0 && items[at]?.info?.length}
{#each items[at]?.info ?? [] as line, i (i)}
{line.text}
{/each}
{/if} {/if} {#if open !== null}
(open = null)} /> {/if}