Elephants display mourning behavior within their social groups by showing signs of grief and sadness when a member of the herd passes away. They have been observed gently touching the deceased individual with their trunks, staying close to the body, and even showing signs of distress such as vocalizations and agitation. This behavior suggests that elephants are capable of forming strong emotional bonds and experiencing grief similar to humans.