If you are in bear country and you don’t know how to secure your food at night, you have no business being in bear country.
Camping in the mountains at Cloudcroft NM, we had to put out trash in metal cans, run a chain from side handle through lid handle to other side handle and padlock it. Horrible car crash noise at 3am. Next morning discovered that noise had been a bear flinging the entire can against a tree trunk about 10 feet up. Split the can open like an egg !
You won’t be there for long - you don’t have any food!