
/* Editor Styles */
.editor-styles-wrapper .block-ecm {
	border: 1px dashed var(--wp--preset--color--primary);
	padding: 8px;
}

.editor-styles-wrapper .block-ecm:not(.expanded) .block-ecm__content {
	height: auto;
}

.editor-styles-wrapper .block-ecm:not(.expanded) .block-ecm__content:after {
	display: none;
}

/* Frontend Styles */
.block-ecm:not(.expanded) .block-ecm__content {
	position: relative;
}

.block-ecm:not(.expanded) .block-ecm__content:after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 2;
	background-image: linear-gradient(180deg, rgba(255,0,0,0), rgba(255,255,255,1));
}

.block-ecm .block-ecm__toggle {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	outline: none;
	cursor: pointer;
	line-height: var(--wp--custom--line-height--small);
	text-align: center;

	color: var(--wp--preset--color--primary);
	font-weight: 900;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: underline;

}

.block-ecm.expanded .block-ecm__toggle .read-more {
	display: none;
}

.block-ecm:not(.expanded) .block-ecm__toggle .read-less {
	display: none;
}


@media only screen and (max-width: 767px) {
	.block-ecm:not(.expanded) .block-ecm__content {
		height: 160px;
		overflow: hidden;
	}
}

@media only screen and (min-width: 768px) {
	.block-ecm:not(.expanded) .block-ecm__content {
		height: 65px;
		overflow: hidden;
	}
}
