Used for https://www.therosendale.nl/ Source Michelle Nunan: <https://www.facebook.com/groups/DiviThemeUsers/posts/3977278402401726/>
Add in the main element CSS field for the column that contains the gallery module:
display: flex;
flex-direction: column;
Code language: HTTP (http)
Add the the main element CSS field for the gallery module:
flex: 1 1 auto;
Code language: HTTP (http)
Then you will want to add the following in your child theme or Divi theme options custom CSS. I suggest you replace .et_pb_gallery with a custom class and add it to your gallery modules.
.et_pb_gallery .et_pb_gallery_items,
.et_pb_gallery .et_pb_gallery_item,
.et_pb_gallery .et_pb_gallery_image,
.et_pb_gallery .et_pb_gallery_image img {
height: 100%;
}
.et_pb_gallery .et_pb_gallery_image img {
object-fit: cover;
}
Code language: CSS (css)