A pyramid has a square base with sides of length . The slant height of each lateral face (from the midpoint of a base edge to the apex) is . A cube is placed within the pyramid so that one face is on the base of the pyramid and its opposite face has all its edges on the lateral faces of the pyramid. What is the volume of this cube?