// Styling background-images // For custom sized image background, use: class="image image-background" // For bg as layer, use: class="image image-background image-background-layer" .image-background > img, .image-background > img[width][height] { object-fit: cover; } .image-background { overflow: hidden; position: relative; } .image-background > img, .image-background > img[width][height], .image-background-layer { height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 0; }