Initial-state fluctuations from midperipheral to ultracentral collisions in an event-by-event transport approach