The key change is `gallery.parentElement.appendChild(oldButton)` — this puts the button at the end of the gallery's parent container, keeping it in the right column and making it full-width within that column. This should finally position it correctly below the product image!