And the main compositional elements are lines and frames. It is they that allow you to control the viewer's view, guide him and not let him "leave" the frame.
Lines help to structure the space in the frame and "point" to important elements. And the frames create a complete composition and make the picture more voluminous and multifaceted.
I will give some examples from a wedding photo.
Here, one way or another, any composition should be built around the groom and the bride and bring the viewer's attention to them. Therefore, all the lines will point to the pair and the frames will not let the attention dissipate.
If you work indoors, then as a framework, door and window openings may well act, and guide lines will help create interior elements or furniture.
It turns out like this:
here, as a frame, ajar doors are used, and the guides are decorative slats on them. The main thing is to calculate the angle of opening the door.
Well, the lines formed by themselves because of the geometry of the room.