In-medium chiral SU(3) dynamics and hypernuclear structure