Modal on bottom of card

Hi, I would like to have a card deck where each card has a modal on the bottom. I know there is a footer, but I can only have text there (would be nice to have a footer-slice!). I also know that buttons can be added to the bottom of the card in the card settings, but I need a button that opens my modal. I tried putting it in a CSS-box-stack with the card-footer class, but that does not work at it is still within the body apparently. Any suggestions to get this done?