initial template + gallery adjustments