I have been married myself, and my friends are mainly casual shirts.
Especially in May, the weather is so hot that if you wear a suit, you will look out of place with others and be particularly stupid.
Wearing a light T-shirt or shirt, jeans or trousers and shoes, and keeping them clean, is the best way to dress. This is not disrespectful to the bride, but shows our own casual and cordial.
Besides, you weren't the main character that day, and no one would pay attention to you. Dress too formally instead of taking the lead.