This code segment will allow you to create a PHP (,HTML) and CSS (2+) only responsive image gallery.