Fixed conditional for block-grid margin and padding.