The Gallery Alb got custom-class : flexed-gallery
.flexed-gallery .avia-gallery-thumb {
display: flex;
flex-flow: row wrap;
justify-content: space-evenly; /*** or use space-between, space-around, center etc. ***/
}
.flexed-gallery .avia-gallery-thumb > a {
flex: 0 1 19%;
margin-bottom: 1%;
width: unset !important;
}
@media only screen and (min-width: 768px) and (max-width: 989px) {
.flexed-gallery .avia-gallery-thumb > a {
flex: 0 1 24%;
}
}
@media only screen and (min-width: 480px) and (max-width:767px) {
.flexed-gallery .avia-gallery-thumb > a {
flex: 0 1 32%;
}
}
@media only screen and (min-width: 376px) and (max-width: 479px) {
.flexed-gallery .avia-gallery-thumb > a {
flex: 0 1 49%;
}
}
@media only screen and (max-width: 375px) {
.flexed-gallery .avia-gallery-thumb > a {
flex: 1 1 100%;
}
}