{$_("start")}

{#each trail.expand?.waypoints ?? [] as wp, i}
{#if wp.photos.length} getFileURL(wp, p))} bind:this={gallery[i]} >
{#each wp.photos as photo, j} gallery[i].openGallery(j)} role="presentation" class="w-full object-cover {j == 0 && wp.photos.length > 2 ? 'row-span-2 h-80' : 'h-[159.5px]'}" src={getFileURL(wp, photo)} alt="" /> {/each}
{/if}
{wp.name}
{wp.lat.toFixed(5)}, {wp.lon.toFixed(5)}

{wp.description}

{/each}
{#if trail.distance}

{formatDistance(trail.distance)}

{/if}

{$_("finish")}