Thylakoid membranes are involved in ATP synthesis by: Photolysis Glycolysis Chemiosmosis Dark reaction