I have 2 galleries, each with a textbox and label. The only difference between them is that the one on the right has a container holding the label and text input, the other does not as you can see from the attached screenshot.

I have a label underneath each attempting to sum the values entered in each text box. The label under the left gallery (without the container) has the formula of Sum(ForAll(Gallery1.AllItems, Value(TextInput4.Text)),Value). And as you can see, the total is correct.
The label under the containerized gallery uses the exact same formula Sum(ForAll(Gallery4.AllItems, Value(TextInput3.Text)),Value), however as you can see the total is wrong.
So, is it possible to get the values out of the textboxes inside the container in the gallery? Is there some method to do this I haven't found yet, or is this just not possible?
I was using containers inside the galleries to get them to look and function a little better, so I would like to get this to work if possible. Otherwise I will have to modify my galleries to remove the containers (but I would really rather not).
Thank you in advance to everyone who has a look, and thank you again to the community as a whole for their excellent support.
Aaron