The equation of an ellipse is \[\frac{x^2}{3} + \frac{y^2}{3} = 1.\] All four vertices of a square lie on the ellipse, and its sides are parallel to the coordinate axes. Find the area of the square.