I swapping a fixture for cosmetic purposes. The old fixture (installed before I was here) has three indistinguishable clear-wrapped wires and a grounding wire.
The wiring in the ceiling is confusing me a lot - I have a bundle of two black and a red, a bundle of three whites, and another lone black wire:
Going off of the solution here, I connected white to white, and then black to the black-and-red bundle, and capped the lone black wire. When I kicked power on, the light always stays on, ignoring the switch.
I'm not sure where to go next. I would try just connecting to the red as the link said, but I'm confused how all of this worked with the previous light fixture, and why the two blacks are bundled with the red. This is my first install, so I want to be sure I don't do anything dangerous.
Appreciate any advice!
EDIT 1: adding a picture of previous fixture wiring as requested for clarity: One wire was attached to one of each capped bundle in the previous picture.
EDIT 2 adding picture of full previous fixture and closeup of it's make.