okay, so in src/content/config.ts add: video: z.string().optional(), under "image_alt"
In src/pages/work/[...slug].astro replace the code in the "main" tags with:
<main class="wrapper">
<div class="stack gap-10 content">
{
entry.data.video !== undefined ? (
<video src={entry.data.video} poster={entry.data.img} controls autoplay muted>
Sorry, your browser doesn't support embedded videos, you can
<a href={entry.data.video}>download it</a> instead!
</video>
) : (
<img src={entry.data.img} alt={entry.data.img_alt || ''} />
)
}
<div class="content">
<Content />
</div>
</div>
</main>
In your .md project files, you can now include a new line under the image alt: video: https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4