Hi, your first solution wokrs fine. Thanks again 🙂
My previous post was to say that before adding your code it behaves strangely when resizing the window. Below 1297px width the HERO module displays correctly, if the width is larger there is already an error.
So for now, I added your code to custom css and everything works fine.