Seperating padding into viewport padding and container padding. Margins apply to spacing between content and context. Added support for west and east again. Added standardized checks for container and viewport bounds.