How to open images and galleries in a lightbox

Images and galleries opens in a lightbox automatic if you "Link to" to "Media file" in Insert Media modal.