Custom Layout for section type pages


I would like to know if there is a possibility to create a custom layout beside list and card for a pages section or even extend them?
I would like to add css classes based on some page field variables and alter the view of the pages.


If you need to add something to the generated HTML, you probably need to create a custom section. You can extend existing ones.