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, rgba(13, 13, 49, 0.0196078431), #0d0d31); background-color: rgba(13, 13, 49, 0.5333333333); position: absolute; } picture > img { object-fit: cover; object-position: top; height: 100%; width: 100%; position: absolute; top: 0; }