Please reason step by step, and put your final answer within \boxed{}.
Find the volume of a regular triangular pyramid with a plane angle at the apex of $90^{\circ}$, and the distance between a lateral edge and the opposite side of the base equal to $d$.
user