Photometry and high-resolution spectroscopy of comet 21P/Giacobini-Zinner during its 2018 apparition