When visiting Dubrovnik, especially the main old town, take into consideration that it is a cruise ship stop. Hoards of cruisers arrive during the day and leave around 4/5pm to head back to the cruise ship.
A day tour was included on our trip. But we went back late afternoon around 4.30pm /5pm for pictures. There were less people and still plenty of sunlight until 8pm and you catch the golden hour.