Weather will be very nice. Some of the palaces and museums get very warm without air conditioning. Layers are good. You won't have very much rain, if any.
If you get to see the "White Nights" you will be in for a real treat. We did and it was fabulous. They only occur a few days, usually in mid to late June.