That sounds good too. You could probably add a category to each type to make specific css changes to ones with a gallery and ones without. In that case you could could make the css body.gallery and body.no-gallery properties, and give the position: absolute; to the ones under the body.gallery posts.
This way, you just check the category and it’ll automatically apply the appropriate css.