When using the .navbar-brand class with images, Bootstrap 5 will automatically style the image to fit the navbar.