How was same-sex desire and activity thought about in ancient Greece?

 How was same-sex desire and activity thought about in ancient Greece? 

What was accepted and permissible? What wasn’t? 

What examples of same-sex relationships appear in ancient Greek literature?

 What were these types of relationships like in Ancient Rome and how did they differ from those in Greece? 

How were same-sex female relationships viewed during these period?