My question is about using "had" and "had been" in a complex sentence. A character is flashing back over something that happened about an hour ago, and I write:
"I had been seconds away from leaving the room when the door had suddenly opened as if by a divine force."
Is it correct to use "had been" in the first part of the sentence and then "had" in the second? Or should I use simple past tense in the latter part, as follows:
"I remembered that I had been seconds away from leaving the room when suddenly the door opened as if by a divine force."
PS. I'm not simply writing in past tense, "I was seconds away from leaving the room when the door opened..." because my character is having a sort of flashback about what happened a while ago. Thus the use of "had" to indicate that this all happened before, rather than in the present moment where the character is just ruminating over it.