The capture is possible only right after the pawn jump: not later in the game.
figure.diagram-container
- .diagram2
+ .diagram.diag12
| fen:nr1kb1r1/ppp3pp/8/2Pp4/8/7P/PP3PP1/1R3KBR:
- .diagram2
+ .diagram.diag22
| fen:nr1kb1r1/ppp3pp/3P4/8/8/7P/PP3PP1/2KR2BR:
figcaption.
Left: black just played d5 (jump from d7).