When using inherit width it looks better on a size with mobile dimensions. The 24rem for small looks OK on my mobile, so I am leaving that as is.