Move the mountain to a layer separate from the sky. Put the rainbow between the sky and mountain.