🪅 [Collapse Width!] Just 1 Step Missing! - Anyone can CSS/JS/JQ Help?

Unfortunately, only with CSS.

Take a look in the post below, I know that it is related to the height, but I assume you could use the same code/logic to manipulate the width as well.