.page-template-testimonials #inner-page-wrapper {
	margin-bottom: 20px;
}
.page-template-testimonials #inner-page-wrapper > .container {
	width: 100%;
	padding: 0;
}
.page-template-testimonials #breadcrumbs {
	padding-left: 10%;
	padding-right: 10%;
}
.ip-testimonials-about-content {
	width: 100%;
	display: inline-block;
	vertical-align: top;
}
.ip-testimonials-about-content > .container-fluid {
	padding-left: 10%;
	padding-right: 10%;
}
.ip-testi-about-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 100px 0 0;
}
	.ip-testi-about-text {
		width: 66.72%;
		padding-right: 65px;
		position: relative;
	}
		.ip-testi-about-text::before {
			width: 334px;
			height: 290px;
			content: '';
			position: absolute;
			z-index: -1;
			top: -115px;
			right: 35px;
			background-image: url(../../images/testimonials/accent-logo.png);
			background-size: 100% auto;
			background-position: center center;
			background-repeat: no-repeat;
			opacity: 0.03;
		}
		.ip-testi-about-heading {
			margin-bottom: 35px;
			font-size: 33px;
			font-weight: 300;
			line-height: 1;
			letter-spacing: 0.05em;
			text-transform: lowercase;
		}
			.ip-testi-about-heading > div {
				display: block;
				margin: 0 0 10px;
				font-size: 40px;
				text-transform: uppercase;
			}
		.ip-testi-about-text p {
			font-size: 14px;
			line-height: 1.8;
			letter-spacing: 0.05em;
			margin-bottom: 25px;
		}
		.ip-testi-about-name {
			font-size: 0;
			margin-top: 45px;
			padding-right: 10px;
			text-align: right;
		}
	.ip-testi-about-photo-wrap {
		width: 33.28%;
		font-size: 0;
	}
		.ip-testi-about-photo {
			position: relative;
		}
			.ip-testi-about-photo canvas {
				width: 100%;
				height: auto;
				display: block;
			}
			.ip-testi-about-photo img {
				width: 100%;
				height: 100%;
				position: absolute;
				top: 0;
				left: 0;
				object-fit: cover;
			}

.ip-testimonials-list-wrap {
	width: 100%;
	display: inline-block;
	vertical-align: top;
	margin-top: 120px;
}
	.ip-testi-list-heading {
		text-align: center;
	}
		.ip-testi-list-heading .global-heading {
			display: inline-block;
			vertical-align: top;
			text-align: left;
			line-height: 1;
		}
	.ip-testimonials-list {
		width: 100%;
		display: inline-block;
		vertical-align: top;
		margin-top: 55px;
	}
		.ip-testi-item-wrap {
			width: 100%;
			display: inline-block;
			vertical-align: top;
			position: relative;
			padding-top: 90px;
			padding-bottom: 95px;
			color: #000000;
		}
			.ip-testi-item-wrap:nth-child(odd) {
				color: #ffffff;
				text-align: right;
			}
			.ip-testi-item-wrap  .ip-testi-item::after {
				/*max-width: 1330px;*/
				content: '';
				position: absolute;
				z-index: 0;
				top: -90px;
				bottom: -95px;
			}
				.ip-testi-item-wrap:nth-child(odd) .ip-testi-item::after {
					right: -29.3vw;
					left: -60px;
					background-color: #484747;
				}
				.ip-testi-item-wrap:nth-child(even) .ip-testi-item::after {
					left: -29.3vw;
				    right: -60px;
				    background-image: url(../../images/testimonials/bg-reviews.jpg);
				    background-size: cover;
				    background-position: center;
				    background-repeat: no-repeat;
				}
			.ip-testi-item {
				width: 100%;
				max-width: 970px;
				margin: 0 auto;
				position: relative;
				text-align: left;
			}
				.ip-testi-item-wrap:nth-child(odd) {
					padding-left: 93px;
					padding-right: 20px;
				}
				.ip-testi-item-wrap:nth-child(even) {
					padding-right: 93px;
					padding-left: 20px;
					text-align: right;
				}
				.ip-testi-item a {
					width: 100%;
					height: 100%;
					display: block;
					color: inherit;
					position: relative;
					z-index: 1;
				}
					.ip-testi-item a:hover {
						opacity: 0.8;
					}
					.ip-testi-item-title {
						margin-bottom: 20px;
						font-size: 19px;
						letter-spacing: 0.05em;
					}
					.ip-testi-item-content {
						margin-bottom: 45px;
						font-size: 14px;
						line-height: 1.5;
						letter-spacing: 0.05em;
					}
					.ip-testi-item-bottom {
						display: flex;
						align-items: center;
						justify-content: space-between;
					}
						.ip-testi-item-wrap:nth-child(even) .ip-testi-item-bottom {
							flex-flow: row-reverse;
						}
						.ip-testi-item-author {
							font-size: 16px;
						}
						.ip-testi-item-button {
							width: 186px;
						}
						.ip-testi-item-wrap:nth-child(odd) .ip-testi-item-button .global-link {
							color: #ffffff;
							border-color: #ffffff;
						}
			/* POPUP */
			.aiosp-wrap .aiosp-container .aios-popup-body {
			    max-width: 1110px !important;
			    min-height: auto;
			    padding: 180px 155px;
			    text-align: left;
			    width: 90% !important;
			}
			.aios-popup-body .aiosp-close {
			    top: 15px !important;
			    right: 15px;
			    color: #ffffff !important;
			    font-size: 50px;
			    opacity: 1;
			    font-weight: 300;
			    font-family: 'agentimage';
			}
				.aios-popup-body .aiosp-close:hover {
					opacity: 0.6;
				}
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup1 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup3 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup5 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup7 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup9 .aios-popup-body {
				background-image: url(../../images/testimonials/bg-popup-gray.jpg);
				color: #ffffff;
				background-size: cover;
			}
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup2 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup4 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup6 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup8 .aios-popup-body,
			.aiosp-wrap .aiosp-container.aiosp-ref-\#review_popup10 .aios-popup-body {
				background-image: url(../../images/testimonials/bg-popup-gold.jpg);
				background-size: cover;
			}
			.ip-testi-item-title-popup {
				font-size: 18px;
				margin-bottom: 30px;
				line-height: 1.2;
			}
			.ip-testi-item-content-popup {
				font-size: 13px;
			}
				.ip-testi-item-content-popup p {
					margin-bottom: 20px;
					line-height: 1.5;
					letter-spacing: 0.05em;
				}
			.ip-testi-item-author-popup {
				margin-top: 50px;
				font-size: 16px;
			}

			/* PAGINATION */
			.ip-testi-list-pagination {
				margin-top: 70px;
				font-size: 0;
				text-align: center;
			}
				#content .ip-testi-list-pagination ul {
					margin: 0;
					list-style-type: none;
				}
				.ip-testi-list-pagination ul li {
					display: inline-block;
					vertical-align: middle;
					font-size: 13px;
				}
					.ip-testi-list-pagination ul li.active {
						font-weight: 800;
					}
					.ip-testi-list-pagination ul li a {
						color: inherit;
						display: inline-block;
						vertical-align: middle;
						padding: 0 20px;
						position: relative;
					}
						.ip-testi-list-pagination ul li a::before {
							width: 1px;
							height: 30px;
							content: '';
							position: absolute;
							top: calc(50% - 15px);
							left: 0;
							background-color: #000000;
							opacity: 0.1;
						}
							.ip-testi-list-pagination ul li:first-child a::before,
							.ip-testi-list-pagination ul li:nth-child(2) a::before,
							.ip-testi-list-pagination ul li:nth-child(8) a::before,
							.ip-testi-list-pagination ul li:nth-child(9) a::before,
							.ip-testi-list-pagination ul li:nth-child(10) a::before {
								display: none;
							}
						.ip-testi-list-pagination ul li a:hover {
							opacity: 0.6;
						}
						.ip-testi-list-pagination .page-arrow {
							font-size: 28px;
							line-height: 30px;
						}



						#paginate-number  span,
						#paginate-number  a{
							color: inherit;
							display: inline-block;
							vertical-align: middle;
							padding: 0 20px;
							position: relative;
						}
						#paginate-number .current{
							font-weight: 800;
						}

/* MOBILE */

.ip-testi-item-popup {
    max-width: 700px;
    margin: 0 auto;
    padding: 100px 0 50px;
}
.aiosp-wrap .aiosp-container[class*="aiosp-ref-#review_popup"] .aios-popup-body {
   width: 700px;
   max-width: calc(100% - 30px);
    padding: 0 25px;
    min-height: 0;
}
@media only screen and (min-width: 1601px) { 
	.ip-testi-item-wrap::after {
		max-width: 1500px;
	}
}

@media only screen and (max-width: 1199px) {
	.page-template-testimonials #breadcrumbs,
	.ip-testimonials-about-content > .container-fluid {
		padding-left: 5%;
		padding-right: 5%;
	}
	.ip-testi-about-heading {
		font-size: 20px;
	}
	.ip-testi-about-heading > div {
		font-size: 30px;
	}
	.aiosp-wrap .aiosp-container .aios-popup-body {
		padding: 100px 50px;
	}
	.ip-testi-item-wrap .ip-testi-item::after {
	    top: -50px;
	    bottom: -50px;
	}
}

@media only screen and (max-width: 1199px) {
	.page-template-testimonials #breadcrumbs,
	.ip-testimonials-about-content > .container-fluid {
		padding-left: 15px;
		padding-right: 15px;
	}
	.ip-testi-about-container {
		flex-flow: column;
		text-align: center;
	}
	.ip-testi-about-text {
		width: 100%;
		padding-right: 0;
	}
	.ip-testi-about-text::before {
		max-width: 100%;
		top: 0;
		right: 0;
	}
	.ip-testi-about-name {
		padding-right: 0;
		text-align: center;
	}
	.ip-testi-about-photo-wrap {
		width: 100%;
		margin-top: 50px;
	}
	.ip-testi-about-photo {
		width: 100%;
		max-width: 426px;
		margin: 0 auto;
	}
	.ip-testimonials-list-wrap {
		margin-top: 70px;
		padding: 0 15px;
	}
	.ip-testi-item-wrap {
		padding: 50px 20px !important;
		text-align: center !important;
	}
	.ip-testi-item-wrap::after {
		width: 100%;
		max-width: 100%;
	}
	.ip-testi-item {
		text-align: center !important;
	}
	.ip-testi-item-bottom {
		flex-flow: column !important;
	}
	.ip-testi-item-button {
		margin-top: 20px;
	}
	.aiosp-wrap .aiosp-container .aios-popup-body {
		padding: 50px 20px;
		text-align: center;
	}
	.aios-popup-body .aiosp-close {
		/*top: 0;
		right: 0;*/
	}
}






