{#if block.title}
{/if} {#if descriptionHtml}
{@html descriptionHtml}
{/if} {#if items.length === 0}

{t(T.youtube_missing)}

{:else if block.variant === "grid"} {#if modalOpen} {@const cur = items[modalIndex]} {@const curLabel = (cur.video.title ?? "").trim()} {/if} {:else} {@const second = items.length > 1 ? items[(currentIndex + 1) % items.length] : null}
{#key currentIndex} {@const current = items[currentIndex]}
{#if second} {/if} {/key}
{#if items.length > 1} {/if}
{#key currentIndex} {@const current = items[currentIndex]}
{#if current.video.title}

{current.video.title}

{/if} {#if current.video.description}
{@html renderMd(current.video.description)}
{/if}
{#if second} {/if}
{/key} {#if items.length > 1}
{#each items as _, i} {/each}
{/if}
{/if}