I used Astro and Tailwind as this is the stack I want to master. I used the principle of having the heading and text of the card above the image in the DOM and then just changing the order with CSS as outlined in Inclusive Components
https://inclusive-components.design/cards/
https://www.astroicon.dev/getting-started/
https://fontsource.org/fonts/noto-sans/install
<style>
button * {
color: #4f46e5;
}
button:hover * {
color: #3730a3;
}
button:disabled * {
color: #a3a3a3;
}
</style>
I'd be interested to see if anybody can get Astro Icon working with disabled states etc as I'm assuming that I was the problem in this situation (as usual 😂).