--- import { staticPath } from '@shared/lib/assets' // Lightbox passes a resolved `photo` object from the horizontal-filtered list. interface Photo { file: string title?: string } import type { AspectRatio } from '@shared/lib/tokens' interface Props { photo: Photo /** plain
with only the background-image (no ratio class) */ background?: boolean /** img-responsive img-responsive-{ratio} wrapper */ ratio?: AspectRatio | undefined class?: string } const { photo, background, ratio, class: className } = Astro.props const src = staticPath(`photos/${photo.file}`) --- {background ?
: ratio ?
: {photo.title}}