/*******************************************************
 *
 * Agents
 *
 *******************************************************/

/* Page Globals */
.page-template-agents #content-full {
	margin-top: 0;
}

/* Image Wrapper */
.imgWrap {
	position: relative;
}
.imgWrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}
.imgWrap canvas {
	display: block;
	width: 100%;
}

/* Custom Title */
.customTtl {
	color: var(--primary-color);
	font-size: 5vw !important;
	font-weight: 400 !important;
	font-family: var(--PlayfairDisplay);
	text-transform: uppercase;
	text-align: center;
	line-height: .75;
	margin: 0 0 70px!important;
}
.customTtl small {
	display: block;
	color: var(--secondary-color);
	font-size: 1.875vw !important;
	font-family: var(--Lato);
	letter-spacing: .1em;
	line-height: 1;
	margin: 0 0 6px;
}
.customTtl span {
	display: flex;
	align-items: center;
	justify-content: center;
}
.customTtl span:after, .customTtl .customTtl__line  {
	content: '';
	width: 23.50%;
	height: 1px;
}
.customTtl span:after {
	margin: 0 0 0 2.5%;
}
.customTtl .customTtl__line {
	background: #e0e0e0;
	margin: 0 2.5% 0 0;
	position: relative;
}
.customTtl .customTtl__line:after {
	position: absolute;
	content: '';
	width: 28.16%;
	height: 3px;
	background: #e0e0e0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}


/* Pager */
.customPager {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	margin: 90px 0 0;
}
.customPager .page-number {
	font-size: 14px;
	padding: 0 5px 5px;
	margin: 0 10px;
	position: relative;
}
.customPager .page-number:after {
	position: absolute;
	content: '';
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--primary-color);
	opacity: 0;
}
.customPager .prev, .customPager .next {
	cursor: pointer;
	width: 90px;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: .075em;
	position: relative;
	transition: all .25s ease-in-out;
	-moz-transition: all .25s ease-in-out;
	-webkit-transition: all .25s ease-in-out;
}
.customPager .prev:before, .customPager .next:before {
	position: absolute;
	content: '';
	left: 0;
	bottom: 0;
	width: 100%;
	height: 32px;
	border-bottom: 2px solid var(--primary-color);
}
.customPager .prev:after, .customPager .next:after {
	position: absolute;
	content: '';
	width: 0;
	height: 0;
	left: 0;
	bottom: 0;
	z-index: -1;
	background: var(--primary-color);
	transition: all .25s ease-in-out;
	-moz-transition: all .25s ease-in-out;
	-webkit-transition: all .25s ease-in-out;
}
.customPager .prev {
	margin: -10px 30px 0 0;
	padding: 17px 0 17px 20px;
}
.customPager .prev:before {
	border-left: 2px solid var(--primary-color);
}
.customPager .next {
	text-align: right;
	margin: -10px 0 0 30px;
	padding: 17px 20px 17px 0;
}
.customPager .next:before {
	left: unset;
	right: 0;
	border-right: 2px solid var(--primary-color);
}
.customPager .prev.disabled, .customPager .next.disabled {
	color: #bfbfbf;
	pointer-events: none;
}
.customPager .prev.disabled:before, .customPager .next.disabled:before {
	border-color: #bfbfbf;
}
.customPager .page-number.current {
	color: #bfbfbf;
}
.customPager .page-number.current:after {
	opacity: 1;
}
.customPager .prev:hover, .customPager .next:hover {
	color: #fff;
}
.customPager .prev:hover:after, .customPager .next:hover:after {
	width: 100%;
	height: 100%;
}


/* Page CSS */
.customWrap {
	padding: 0 2.81%;
}

.agents__sec01 {
	padding: 70px 0 60px;
}
.agents__filter {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto 70px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}
.agents__filter p {
	color: var(--secondary-color);
	font-size: 30px;
	text-transform: uppercase;
	line-height: 1 !important;
	letter-spacing: .1em;
	margin: 0 30px 0 0 !important;
}
.agents__filter .sort {
	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin: 0 !important;
}
.agents__filter .sort__field input, .agents__filter .sort__field select {
	width: 100%;
	height: 30px;
	color: var(--primary-color);
	font-size: 14px;
	line-height: 1;
	letter-spacing: .075em;
	text-transform: uppercase;
	border: none;
	outline: none;
	background: transparent;
	border-bottom: 1px solid #666666;
	-webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;
}
.agents__filter .sort__field select {
	background: url('../../images/agents/arrow@2x.png')no-repeat 100% center/ 6px 6px;
}
.agents__filter .sort__field:first-child {
	width: 26.69%;
}
.agents__filter .sort__field:nth-child(2) {
	width: 20.42%;
}
.agents__filter .sort__field:nth-child(3) {
	width: 17.73%;
}
.agents__filter .sort__field:nth-child(4) {
	width: 21.76%;
}

.qs-sub.mtt-reset-btn{
	background: var(--primary-color) !important;
    color: #fff !important;
}

.team {
	display: flex;
	flex-wrap: wrap;
	margin: -15px -10px !important;
	list-style-type: none !important;
}
.team__item {
	width: 12.5%;
	padding: 15px 10px;
}
.team__link {
	display: block;
	text-align: center;
}
.team__photo img {
	filter: grayscale(1);
	transition: all .25s ease-in-out;
	-moz-transition: all .25s ease-in-out;
	-webkit-transition: all .25s ease-in-out;
}
.team__name {
	font-size: 16px !important;
	line-height: 1 !important;
	letter-spacing: .075em;
	text-transform: uppercase;
}
.team__name span {
	display: block;
}

/* Page CSS Hovers */
.team__link:hover .team__photo img {
	filter: grayscale(0);
}
.team__link:hover  .team__name {
	color: var( --primary-color);
}

.page-numbers {
    font-size: 14px;
    padding: 0 5px 5px;
    margin: 0 10px;
    position: relative;
}

.page-numbers.current:after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #000;
    opacity: 1;
}


/* Media Queries */
@media only screen and (min-width: 1601px) {
	.customTtl {
		font-size: 80px !important;
	}
	.customTtl small {
		font-size: 30px !important;
	}
}
@media only screen and (max-width: 1280px) {

	.team__name {
	    font-size: 14px !important;
	}

}
@media only screen and (max-width: 991px) {

	.customWrap {
		padding: 0 15px;
	}

	.customTtl {
		font-size: 50px !important;
		padding: 0 0 30px;
		position: relative;
	}
	.customTtl small {
		font-size: 20px !important;
	}
	.customTtl span:after {
		display: none;
	}
	.customTtl__line {
	    position: absolute !important;
	    width: 300px !important;
	    bottom: 0;
	    left: 50%;
	    top: unset;
	    transform: translate(-50%, 0);
	}
	.customTtl .customTtl__line:after {
		width: 100px;
		right: 50%;
		transform: translate(50%,-50%);
	}

	.agents__filter {
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		max-width: 500px;
		margin: 0 auto 50px;
	}
	.agents__filter p {
		width: 100%;
		text-align: center;
		margin: 0;
	}
	.agents__filter .sort {
		flex-wrap: wrap;
		margin: 50px 0 0;
	}
	.agents__filter .sort__field {
	    width: 100% !important;
	    margin: 10px 0 0;
	}

	.team__item {
	    width: 25%;
	}
}

@media only screen and (max-width: 576px) {

	.team__item {
	    width: 50%;
	}

	.customPager  {
		flex-wrap: wrap;
		margin: 90px auto 0;
   		max-width: 300px;
	}
	.customPager .page-number {
		order: 1;
	}
	.customPager .prev, .customPager .next {
		order: 2;
	}
	.customPager .prev {
	    margin: 20px 30px 0 0;
	}
	.customPager .next {
	    margin: 20px 0 0 30px ;
	}
}



