Ergosterol increases the intermolecular distance of amphotericin B in the membrane-bound assembly as evidenced by solid-state NMR.