/*------------------------------------*\
    
    Hide/Show Text Area - Global styling for all hide/show text

    This method is CSS heavy and light on JS, which is important for good SEO and CWV results

\*------------------------------------*/

  
.read-more__content {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	overflow: hidden;
	position: relative;
}

/* Safari fix, it needs to be inline for the clamp to work on safari  */
.read-more__wrapper { display: inline; }

.read-more__content.is-expanded { -webkit-line-clamp: initial !important; }

.expand {
	text-decoration: none;
	position: relative;
	display: inline-block;
	margin-top: 0;
}

.more-text { -webkit-line-clamp: 5; }

.more-tex-tab { -webkit-line-clamp: 4; }

.expand {
	margin-bottom: 15px;
	margin-top: 0;
	font-size: 16px;
	color: #415748;
	font-weight: 700;
	display: inline-block;
	position: relative;
	border: none;
	padding-bottom: 5px;
}

.expand::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	background: url(../../img/read-more-bdr.png) 0 0 no-repeat;
	width: 100%;
	height: 2px;
	background-size: 100% auto;
}

.read-more__content::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 65px;
	/*background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(250,251,246,1) 100%);*/ 
	-webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgb(250,251,246,1) 100%);
            mask-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgb(250,251,246,1) 100%);
}

.read-more__content.is-expanded::before { display: none; }

.read-more__content.is-expanded { padding-bottom: 10px; }

.read-more__box { padding-bottom: 15px; }

.testimonials--homepage .more-text { -webkit-line-clamp: 9;}


@media (min-width: 768px) {
	.more-text { -webkit-line-clamp: initial !important; }

	.read-more__content::before { display: none; }

	.testimonials--homepage .more-text { -webkit-line-clamp: 7 !important; }

	.testimonials--homepage .read-more__content.is-expanded { -webkit-line-clamp: initial !important; }

	.testimonials--homepage .read-more__content::before { display: block; }

	.testimonials--homepage .expand::before { display: none; }

	.testimonials--homepage .expand {
		position: absolute;
		right: -214px;
		top: 393px;
		width: 185px;
		height: 53px;
		color: #fff;
		background: #000;
		text-align: center;
		text-transform: uppercase;
		font-size: 16px;
		letter-spacing: 0.2em;
		line-height: 3.3em;
		border-radius: 30px;
		background: linear-gradient(to right, rgba(225,39,45,1) 0%,rgba(170,39,45,1) 100%);
		z-index: 9;
	}
}

@media (min-width: 1200px) {
	.testimonials--homepage .more-text { -webkit-line-clamp: initial !important; }

	.testimonials--homepage .read-more__content::before { display: none; }
}

@media (min-width: 1200px) {
	.more-tex-tab { -webkit-line-clamp: 6; }
}
