Prova aggiungendo Display: block e Overflow: hidden al contenitore, lasciando height: auto, dovrebbe risolvere.