/**
 * Elementor Addons by Ryzels - Clamp Heading (shared by Clamp Heading and Atomic Clamp Heading)
 *
 * The CSS below is a fallback that clamps with -webkit-line-clamp. When the JavaScript
 * runs, it adds .ryzels-clamp-js and replaces the clamp with a custom ending (e.g. "...").
 */

/* Fallback: native line clamp, used until (or without) the JavaScript. */
.ryzels-clamp-heading[data-ryzels-clamp="1"]:not(.ryzels-clamp-js) {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--ryzels-clamp-lines, 2);
	overflow: hidden;
}

/* JavaScript has taken over: content is already trimmed to the line count. */
.ryzels-clamp-heading.ryzels-clamp-js {
	display: block;
	overflow: visible;
}

/* Temporary state used by the script to measure the full text height. */
.ryzels-clamp-heading.is-measuring {
	display: block !important;
	-webkit-line-clamp: none !important;
	overflow: visible !important;
}
