Correct usage of "culinary" and "gastronomy"

I’ve used these terms interchangeably, but someone told me they are not the same.

Any ideas?

Ex: His cooking is a masterpiece of gastronomy.

His dish is a culinary masterpiece OR His dish is a gastronomic masterpiece.