This sounds a bit theoretical. If you’re using !important, you can bet there’s a better way. Why not set a different gap, or no gap at all? Or you could use something like calc() maybe to vary gaps.
I don’t want to mess around with the complex Twig theming and the corresponding complex CSS of this framework and its current core theme which are Drupal 10 and Olivero.