/*! ratio-ui · design system for knowledge sharing · https://github.com/losol/ratio-ui · (c) 2026 Losol AS · MPL-2.0 */
//#region src/utils/buildCoverImageStyle.ts
/**
* Build an inline style for a full-cover background image,
* optionally with a dark gradient overlay.
*/
function buildCoverImageStyle(imageUrl, existingStyle, overlay = true) {
	if (!imageUrl) return existingStyle;
	return {
		backgroundImage: overlay ? `linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.3)), url(${imageUrl})` : `url(${imageUrl})`,
		backgroundSize: "cover",
		backgroundPosition: "center",
		...existingStyle
	};
}
//#endregion
export { buildCoverImageStyle };

//# sourceMappingURL=buildCoverImageStyle.js.map