Making Debut hero image clickable not working for "Fixed Width" / "Adapt to Image"

Hi,

I’m looking to make the entire hero image clickable, so I can use custom design for my banner. I’ve used the solution from here:- https://community.shopify.com/c/shopify-design/make-hero-image-clickable-debut-theme/m-p/1122827#M286874, but it does not work when the image is set to “Fixed Width” / “Adapt to Image”.

Is there a workaround for this?