/*
 * Testimonials page
 */

.testimonial-open {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;
	/* display: flex; */
	/* align-items: center;
	justify-content: center; */
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.testimonial-open__background {
	background-image: var(--color-gradient-test-bg);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	z-index: 0;
	opacity: 0.75;

	pointer-events: all;
}

.testimonial-open__item {
	z-index: 1;
	width: 100%;
    max-width: 1060px;
    /* height: 40vh; */
    max-height: 90vh;
	background-color: white;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
	pointer-events: all;

	padding: 70px 113px;
	position: absolute;
	opacity: 0;
	visibility: hidden;
}

@media only screen and (max-width: 1920px) {
	.testimonial-open__item {
		padding: 55px 90px;
	}
}

@media only screen and (max-width: 1660px) {
	.testimonial-open__item {
		padding: 50px 82px;
	}
}

@media only screen and (max-width: 1440px) {
	.testimonial-open__item {
		padding: 45px 70px;
	}
}

@media only screen and (max-width: 1024px) {
	.testimonial-open__item {
		padding: 35px 48px;
	}
}

@media only screen and (max-width: 768px) {
	.testimonial-open__item {
		padding: 28px 26px;
	}
}

.testimonial-open__item .testimonial__single__title {
	font-size: 30px;
}

.testimonial-open__item .testimonial__single__text {
	font-size: 22px;
	overflow-y: auto;
    max-height: 300px;
}

.testimonial-open__item h5, .testimonial-open__item div, .testimonial-open__item p {
	opacity: 0;
	visibility: hidden;
}

.page-template-testimonials {
	display: block;
}

/* ::reusable */
.page__title {
	border-top: 1px solid var(--color-border);
	padding-top: 26px;
}
.page__title h4 {
	text-transform: uppercase;
	color: white;
	font-weight: var(--font-weight--medium);
	font-family: var(--font-family);
	letter-spacing: 3px;
	font-size: 21px;
	margin-bottom: 26px;
}

.page-template-testimonials .page__content {
	/* background-color: var(--color-blue); */
	padding: 160px 50px 50px; /* ::reusable */
}

.page__content .testimonials__container {
	width: 100%;
}


.page__content .testimonials__container .testimonials {
	position: relative;
	width: 100%;
	/* overflow: hidden; */
}

/* 
 * Single testimonial
 */
.testimonial__grid-sizer, .testimonial__single {
	--t-gutter: 2px;
	width: calc(20% - var(--t-gutter));
}

@media only screen and (max-width: 1920px) {
	.testimonial__grid-sizer, .testimonial__single {
		width: calc(25% - var(--t-gutter));
	}
}

@media only screen and (max-width: 1440px) {
	.testimonial__grid-sizer, .testimonial__single {
		width: calc(33.3% - var(--t-gutter));
	}
}

@media only screen and (max-width: 1280px) {
	.testimonial__grid-sizer, .testimonial__single {
		width: calc(33.3% - var(--t-gutter));
	}
}

@media only screen and (max-width: 1024px) {
	.testimonial__grid-sizer, .testimonial__single {
		width: calc(50% - var(--t-gutter));
	}
}

@media only screen and (max-width: 640px) {
	.testimonial__grid-sizer, .testimonial__single {
		width: 100%;
	}
}

.testimonials .testimonial__single, .home__testimonials .testimonial__single {
	/* --t-padding-top-bottom: 52px; */
	/* --t-padding-left-right: 48px; */
	--t-padding-top-bottom: calc(2.4vw + 9px);
    --t-padding-left-right: calc(2vw + 6px);
	float: left;
	border-radius: var(--border-radius);
	background-color: rgba(255, 255, 255, 0.95);
	padding: var(--t-padding-top-bottom) var(--t-padding-left-right);
	margin-bottom: var(--t-gutter);
	box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);

	transition: 0.3s background-color;
	opacity: 0;
	visibility: hidden;

	cursor: pointer;
	pointer-events: all;
}

@media only screen and (max-width: 1660px) {
	.testimonials .testimonial__single, .home__testimonials .testimonial__single {
		--t-padding-top-bottom: 46px;
		--t-padding-left-right: 44px;
	}
}

@media only screen and (max-width: 1440px) {
	.testimonials .testimonial__single, .home__testimonials .testimonial__single {
		--t-padding-top-bottom: 40px;
		--t-padding-left-right: 38px;
	}
}

@media only screen and (max-width: 1024px) {
	.testimonials .testimonial__single, .home__testimonials .testimonial__single {
		--t-padding-top-bottom: 36px;
		--t-padding-left-right: 32px;
	}
}

@media only screen and (max-width: 768px) {
	.testimonials .testimonial__single, .home__testimonials .testimonial__single {
		--t-padding-top-bottom: 28px;
		--t-padding-left-right: 26px;
	}
}

.testimonials .testimonial__single:hover, .home__testimonials .testimonial__single {
	background-color: rgba(255, 255, 255, 1);
}

/* Title */
.testimonial__single__title {
	font-size: 21px; /* ::reusable */
	font-weight: var(--font-weight--medium);
	font-family: var(--font-family); /* ::reusable */
	color: var(--color-text); /* ::reusable */
}

.testimonial__single__line {
	width: calc(100% + var(--t-padding-left-right));
	height: 1px;
	background-color: var(--color-gold); /* ::reusable */
	margin-bottom: 23.5px;
}

/* Text */
.testimonial__single__text {
	font-size: 16px; /* ::reusable */
	font-weight: var(--font-weight--regular);
	font-family: var(--font-family); /* ::reusable */
	color: var(--color-text); /* ::reusable */
	margin-bottom: 0;
	line-height: 1.9;
}

/* Author */
.testimonial__single__author {

}

/* Author: avatar */
.testimonial__single__author__avatar {
	margin-top: 35px;
	width: 47px;
	height: 47px;
	object-fit: cover;
	border-radius: 10px;
}

/* Author: name */
.testimonial__single__author__name {
	font-size: 16px; /* ::reusable */
	font-family: var(--font-family); /* ::reusable */
	font-weight: var(--font-weight--semibold);
	color: var(--color-text); /* ::reusable */
}