I could solve your problem with the following solution:
display: flex; on the DIV with class
height: 100%; on the UL with class
height: 100%; on
.photo-profile li and change the
max-height property on
.photo-profile li img to
You’ll probably have to do something with media queries to only do this on the larger screens.