picture:after { position: absolute; content: ""; top: 0; left: 0; bottom: -6px; width: 100%; box-shadow: inset 1px 0 105px 105px #0d0d31; background: linear-gradient(to bottom, #0d0d3105, #0d0d31); background-color: #0d0d3188; position: absolute; } picture > img { object-fit: cover; object-position: top; height: 100%; width: 100%; position: absolute; top: 0; }