Aha, you are right for the inbound journey 👍😊
The maritime boundaries in the area have a long history of fighting over. Most recently Slovenia was preventing Croatia from joining EU over them.
If you have the opportunity, visit Trieste for the Barcolana regatta, next is Oct 8, 2023