I have this implemented using core container component, I have container component with margin/padding
.cmp-container--main-content>.cmp-container>.aem-Grid>.aem-GridColumn.aem-GridColumn--default--12 {
margin: 0 5rem;
max-width: 85rem;
background: #fff;
padding: 1rem;
}
this can be added only in edit/preview mode as well
.cmp-container--main-content>.cmp-container>.aem-Grid>.aem-GridColumn.aem-GridColumn--default--12.cq-Editable-dom {
margin: 0 5rem;
max-width: 85rem;
background: #fff;
padding: 1rem;
}
OR
.aem-AuthorLayer-Preview .cq-Editable-dom--container, .aem-AuthorLayer-Preview .cq-Editable-dom--container.aem-GridColumn {
padding-top: 0;
padding-bottom: 0;
}
.cq-Editable-dom--container, .cq-Editable-dom--container.aem-GridColumn {
padding-top: 1.25rem;
padding-bottom: 1.25rem;
}
Arun Patidar