I am currently working with a bootstrap carousel that contains both portrait and landscape images. On wide screens, the carousel height is automatically set to match the tallest image's height. However, this behavior results in white spaces on the top and bottom of the images when the window size is reduced for mobile screens.
To address this issue, I believe that all images should have the same height, and the carousel height should be set to match the shortest image's height rather than the tallest one. Unfortunately, I have not been able to figure out how to achieve this.
Desired State (Both wide and mobile):
https://i.sstatic.net/ze2S3.png