I don’t perform intensive tasks for music production or photo/video but, I do push my iMac (21.5” i7) pretty hard for intermittent sessions involving multiple office applications and multiple screens of said applications simultaneously. Sometimes a little CAD work, but not much. Quite often I’ll drive the LG5K while working as well.
I do basic things with video/photos but that’s typically limited to trimmings vids and modest photo edits using Apple’s native apps (e.g., cropping, overlaying text, convert to pdf, etc).
Music production: as much as I want to, I simply never do anything with my iMac because I’ve never taken the time to sort any of it out (learn). *I do have multiple amps, some rack effects, and basic recording equipment - just not integrated into the mac environment or pro tools.
Although it’s apples/oranges to a large extent, I also have a 27” 2010 iMac w/an i7. No matter the environment, the 27” has always run quite warm but it never misses a beat. Plus it has, indeed, been used in environments such as the environment you have described for long periods of time. The current 21.5 w/i7 and inherent heat??, err, not so much. I haven’t any measured numbers for you but it seems to run rather cool. It purrs right along and has proven to be a really nice computer that doesn’t hiccup at all. I can’t say it’s persistently run in an environment where ambient is any more than say 72’ish but, there are times that I run it in a room with a wood stove and that sucker will take ambient up to a wonderfully blissful 80+ in the winter months. During those times, I can’t say I’ve noticed much, if any difference at all in the way of extra heat or reduced performance using the computer. Once again, I’m sorry I haven’t any actual temps to share, and I can’t offer you real-world certainty that the 21.5 i7 wouldn’t be problematic in a persistent environment, but I highly doubt it. It’s been a kick ass computer for me. I think many here would surmise I’m not a “pro” user..but..lol, whatever.
FWIW – if an iMac, any iMac would be a consideration for you; the 21, sounds like a good choice.
I’d also caution you not to fall victim to the 27/21 bs that seems to run overtly rampant on this site.
The 2017 21.5” iMac is a stellar computer.