Kevin Powell shared this on his video channel, and it works perfectly on elements with background images. While you can easily add a gradient overlay with a few clicks, CSS allows you to standardize the overlay and minimize the code.
.overlay {
border-image: linear-gradient(hsl(240 100% 20% / 0.6), hsl(0 100% 20% / 0.6))
fill 1;
}