movies where characters cannot leave (like vivarium)

loved vivarium, especially the part where they realise theyre trapped. i think it was so well done. and even though i didnt loke them as much, i still enjoyed the trope in the deep house, and grave encounters. even in american horror story, the first season.

just to be a bit more specific, i dont mean movies where the chacters could technically leave, but its too dangerous (eg the mist). i mean where the front door vanishes, or the exit isnt where it is supposed to be, or you reach the edge of the garden and are suddenly back in the house etc.

i just think its so spooky and it gets me every time - does anyone have recommendations of movies where the characters are trapped/stuck by some extra human force? i think time loop also fits into this category :)