CSS — трюки — подборка ссылок
https://www.dejurka.ru/css/css-tutorials-responsive-web-design/
https://zomigi.com/blog/css-effect-space-images-out-to-match-text-height/
https://designshack.net/articles/css/how-to-build-a-responsive-thumbnail-gallery/