.lord-rmc {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	--lord-rmc-fade-height: 72px;
	--lord-rmc-fade-to: #ffffff;
}

.lord-rmc *,
.lord-rmc *::before,
.lord-rmc *::after {
	box-sizing: border-box;
}

.lord-rmc__heading {
	margin: 0 0 12px;
	padding: 0;
}

.lord-rmc__content-wrap {
	position: relative;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

/* Soft fade via mask - height mode uses configured fade height. */
.lord-rmc--mode-height:not(.is-expanded):not(.lord-rmc--no-fade) .lord-rmc__content-wrap {
	-webkit-mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 calc(100% - var(--lord-rmc-fade-height)),
		rgba(0, 0, 0, 0.7) calc(100% - (var(--lord-rmc-fade-height) / 2)),
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 calc(100% - var(--lord-rmc-fade-height)),
		rgba(0, 0, 0, 0.7) calc(100% - (var(--lord-rmc-fade-height) / 2)),
		transparent 100%
	);
}

/*
 * Lines mode: keep fade tiny (fraction of one line).
 * A 72px fade on 2 lines hides most of line 2.
 */
.lord-rmc--mode-lines:not(.is-expanded):not(.lord-rmc--no-fade) .lord-rmc__content-wrap {
	-webkit-mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 calc(100% - 0.9em),
		rgba(0, 0, 0, 0.55) calc(100% - 0.35em),
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 calc(100% - 0.9em),
		rgba(0, 0, 0, 0.55) calc(100% - 0.35em),
		transparent 100%
	);
}

.lord-rmc.is-expanded .lord-rmc__content-wrap,
.lord-rmc.lord-rmc--no-fade .lord-rmc__content-wrap,
.lord-rmc--mode-words .lord-rmc__content-wrap,
.lord-rmc.lord-rmc--no-toggle:not(.is-expanded) .lord-rmc__content-wrap {
	-webkit-mask-image: none;
	mask-image: none;
}

/* Height mode */
.lord-rmc--mode-height .lord-rmc__content-wrap {
	max-height: var(--lord-rmc-collapsed-height, 120px);
}

.lord-rmc--mode-height.is-expanded .lord-rmc__content-wrap {
	max-height: none;
}

/* Lines mode */
.lord-rmc--mode-lines .lord-rmc__content-wrap {
	max-height: none;
	overflow: hidden;
}

.lord-rmc--mode-lines:not(.is-expanded) .lord-rmc__content {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--lord-rmc-lines, 3);
	line-clamp: var(--lord-rmc-lines, 3);
	overflow: hidden;
	text-overflow: ellipsis;
}

.lord-rmc--mode-lines.is-expanded .lord-rmc__content-wrap {
	overflow: visible;
}

.lord-rmc--mode-lines.is-expanded .lord-rmc__content {
	display: block !important;
	-webkit-box-orient: initial !important;
	-webkit-line-clamp: none !important;
	line-clamp: none !important;
	max-height: none !important;
	overflow: visible !important;
	text-overflow: unset !important;
}

/* Lines mode overlay must not cover a full line */
.lord-rmc--mode-lines .lord-rmc__fade {
	height: 0.9em;
}

/* Words mode */
.lord-rmc--mode-words .lord-rmc__content-wrap {
	max-height: none;
	overflow: visible;
}

.lord-rmc__content {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.lord-rmc__content > *:first-child {
	margin-top: 0;
}

.lord-rmc__content > *:last-child {
	margin-bottom: 0;
}

/*
 * Optional color wash (matches page background).
 * Always starts fully transparent so Elementor solid "from" colors
 * cannot create a hard horizontal band.
 */
.lord-rmc__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--lord-rmc-fade-height);
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		transparent 18%,
		color-mix(in srgb, var(--lord-rmc-fade-to) 25%, transparent) 45%,
		color-mix(in srgb, var(--lord-rmc-fade-to) 55%, transparent) 70%,
		color-mix(in srgb, var(--lord-rmc-fade-to) 82%, transparent) 88%,
		var(--lord-rmc-fade-to) 100%
	);
	opacity: 1;
	transition: opacity 0.25s ease;
}

/* Fallback when color-mix is unavailable */
@supports not (background: color-mix(in srgb, #fff 50%, transparent)) {
	.lord-rmc__fade {
		background: linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0) 20%,
			rgba(255, 255, 255, 0.35) 50%,
			rgba(255, 255, 255, 0.7) 78%,
			rgba(255, 255, 255, 1) 100%
		);
	}
}

.lord-rmc.is-expanded .lord-rmc__fade,
.lord-rmc.lord-rmc--no-fade .lord-rmc__fade,
.lord-rmc.lord-rmc--no-toggle .lord-rmc__fade,
.lord-rmc--mode-words .lord-rmc__fade {
	opacity: 0;
	visibility: hidden;
}

.lord-rmc__toggle {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 4px;
	background-color: #111111;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lord-rmc__toggle:hover,
.lord-rmc__toggle:focus {
	outline: none;
}

.lord-rmc__toggle-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.lord-rmc__less {
	display: none;
}

.lord-rmc.is-expanded .lord-rmc__more {
	display: none;
}

.lord-rmc.is-expanded .lord-rmc__less {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.lord-rmc__toggle .lord-rmc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.lord-rmc__toggle .lord-rmc__icon i,
.lord-rmc__toggle .lord-rmc__icon svg {
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

.lord-rmc.lord-rmc--no-toggle .lord-rmc__button-wrap {
	display: none;
}

.lord-rmc__button-wrap {
	display: flex;
	width: 100%;
	justify-content: flex-start;
}

.elementor-widget-lord-read-more-content.lord-rmc-btn-align-justify .lord-rmc__toggle,
.lord-rmc-btn-align-justify .lord-rmc__toggle {
	width: 100%;
}
