situational homosexuality
same-sex sexual behavior that develops in a situation or environment in which the opportunity for heterosexual activity is missing and close contact with individuals of the same sex occurs, such as a prison, school, or military setting where individuals are living together, segregated according to their sex. Once away from this setting, the person typically returns to heterosexual activity.