YidC occupies the lateral gate of the SecYEG translocon and is sequentially displaced by a nascent membrane protein.