---
// Lightbox passes a resolved `photo` object from the horizontal-filtered list.
interface Photo {
file: string
title?: string
}
interface Props {
photo: Photo
/** background param — plain
with only the background-image (no ratio class) */
background?: boolean
/** ratio param — img-responsive img-responsive-{ratio} wrapper */
ratio?: string
class?: string
}
const { photo, background, ratio, class: className } = Astro.props
const src = `./static/photos/${photo.file}`
---
{background ?
: ratio ?
:

}