This isn’t a matter of time period, it’s skill and attention. At the time of the Bond films it was well-known how to do good lighting, and people had been doing it for decades. Contrast the crappy Bond films with any beautiful old movie, like “The Third Man” or “Citizen Kane,” still legendary for great cinematography.
As a side note, my mom was an accountant at Paramount who handled residuals for Shatner, et al. She briefly dated Harlan Ellison before marrying my father, which might have explained his aversion to Star Trek and my banishment to the Black and White TVs while watching it. (When I was twelve or thirteen and got really into Ellison's fiction, she got alarmed and told me Harlan was "a creep" and left it there).
The upshot was I got to go onto the TNG set when I was a kid... which was both wildly exciting and sort of disappointing as it wasn't an actual starship. All I wanted was to be Wesley Crusher.
But yeah, we watched TOS in b&w.
If anyone wants to take a look, The Cabinet of Dr. Caligari has some great examples.
of the scanlines wink
I thought it was specifically because of (1) the color film process used at the time required it for faithful (-ish) reproduction, and (2) the need to make something that looked good on both black and white and color TVs, as lots of people were still using black and white.
For example sky can be any colour except blue, and doors can open every which way (except downwards, because that would require digging a hole in the set) and they make all sorts of sounds – as long as they're not "just" doors (they're "alien" doors!) They used those awkward holsters for phasers because pockets looked too "common".
Other more technical factors probably played a factor as well, but this also worked two ways and limited creativity: IIRC the origin skin colour for Vulcans was supposed to be red, but was changed to the off-white because the red didn't work on B&W.
https://www.trekbbs.com/threads/mudds-gobos.276831/#post-113...
https://startrektour.com/photo-gallery/our-beautifully-recre...
and you can take the above tour and see them in use yourself. They were made of metal because the lights were hot. Some sources for them, if you want to play with your own, are old metal pot holders and small cast iron table tops. They usually welded a rod to them to attach them to the light fixtures using standard lighting rod clamps so they'd be stable. Cast iron is heavy, aluminum pot holders are preferred and they disippate heat better.