Drop the overnight in San Gim ; add it to Venice. Given your timeframe I think you need to Skip San Gim entirely unless you skip Siena instead.
Feel like even doing so you need a couple more nights, good chance you will get some rainy periods.
If photography is important you will need more time most everywhere to have a chance at good light in each place.
Given the hassle of getting to CT and then getting from there all the way to Venice, I would want 3 nights in the CT and think you should give that serious consideration.
I imagine any Val D'Orcia photography tours worth taking meet before sunrise ; and the meeting place will be an hour+ south of Siena making that tough for you to get to from Siena and you would need a car.
The area between Pienza and San Quirico is really all you need ; most every shot you have seen is from this very small area.
Pay for my flight and I would be happy to guide you around :)
I remember being all alone on a field at the Belvedere overlook/property as a van screeched up about 10 minutes past sunrise which I thought at the time was too late and about 15 people with tripods and a tour operator jumped out and descended on where I was standing.
A few rudely even ahead of where I was standing in my cameras field of view.
It turned a beautiful moment for me into a chaotic one.
We all caught some nice mist in the valley as the sun rose on the horizon and the fog lifted ; one of the very rare places where 30 minutes past Sunrise was better than Sunrise itself though the fog lifting was gone in about 15 minutes after it started.
If you are fine with day time photography in the Val D' Orcia there is no reason to pay for a guide other than transportation if you have no car.