Many homes and civilian infrastructure in Gaza lies in ruins, and fighting has caused acute shortages of food, water, and medicines.