to trim one's sails with the wind ꞏ to adopt different attitude depending on the circumstances (idiom)