/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/

@media only screen and (min-width: 1600px) {
	.map-right {
		transform: scale(1) !important;
	}
}

@media only screen and (min-width: 992px) and (max-width: 1600px) {
	body .slideshow-tagline span {
		font-size: 4vw;		
	}
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1199px) {
	.contact-bg .contact-bg-main canvas {
    	background-attachment: scroll;
	}
} 

/* iPad(portrait) | Galaxy Tab 4(portrait)  */ 
@media only screen and (max-width: 991px) {
	body .listings-img-gallery .g-item img {
		height: 100%;
		position: relative;
		display: block;
		width: 100%;
		object-fit: cover;
		min-height: 293px;
	}
	
	body .site-img img {
		height: auto;
		position: relative;
	}
	.bio-img.site-img canvas {
		display: block !important;
	}
	.bio-img.site-img img {
	  height: auto;
	}
	body .hdr-logo .site-img img {
		object-fit: contain;
		position: relative;
	}
	.site-img img {		
		object-fit: contain;		
	}
	.site-img canvas {		
		display: none !important;
	}
	.interactive-map .interactive-map-wrap .interactive-map-sorter .interactive-map-dropdown .interactive-map-dropdown-content ul {	
		padding: 19px 10px 19px !important;	
	}

	.interactive-map .interactive-map-wrap .interactive-map-top > div > div {
		display: flex;
		justify-content: space-evenly;
	}
	.interactive-map .interactive-map-wrap .interactive-map-top .interactive-map-pin-guide ul li {
		padding: 0 5px;
	}

	.interactive-map .interactive-map-wrap .interactive-map-sorter .interactive-map-dropdown {
		width: 150px;
	}
	body #testimonials .section-title h2:before {
		position: absolute;
		content: '';
		left: calc(-100vw - -75px);
		right: 0;
		bottom: 20px;
		height: max(0.014em, 4px);
		background-image: -moz-linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		background-image: -webkit-linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		background-image: -ms-linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		background-image: linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		width: 100vw;
	}
	
	body .testimonials-title h2::before {
		margin-left: 0;
		left: calc(-100vw + 160px);
	}
	section#social {
		display: none;
	}
	body section#work-with-us .section-title h2::before {		
		bottom: 30px;
	}
	body section#properties .section-title.center h2 {
		text-align: center;		
	}
	body .slideshow-tagline span {
		font-size: 60px;
		line-height: 45px !important;
	}
	body .slideshow-tagline h2 {
		font-size: 40px;
		line-height: 0.7em;
		margin-top: 10px;
		font-family: "Source Sans Pro", sans-serif;
		text-transform: uppercase;
	}
	body .section-title h2:before {
		position: absolute;
		content: '';
		left: calc(-100vw - 10px);
		right: 0;
		bottom: 22px;
		height: max(0.014em, 4px);
		background-image: -moz-linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		background-image: -webkit-linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		background-image: -ms-linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		background-image: linear-gradient( 90deg, rgb(215,215,215), rgb(215,215,215));
		width: 100vw;
	}
	body section#team .section-title h2 strong {
		margin-left: 0;
	}
	body section#properties .section-title h2::before {
		left: calc(-100vw + 15px);
	}
	body .section-title h2 strong {
		margin-bottom: 0;
		line-height: 1.125;
	}
	:root {
		--fs-16: max(min(calc((16/991)*100vw), 16px), calc(16px*0.8));
	}
	#pojo-a11y-toolbar {
		display:none;
	}

	.section-title h2 {
		line-height: 1;
		padding-bottom: 0;
		text-align: center;
	}
	.section-title h2::before,
	.section-title h2::after {
		content: unset;
	}
	.section-title h2 strong {
		margin-bottom: 0.25em;
		line-height: 1.125;
	}
	.section-arrow .site-arrow.prev-arrow {
		margin-right: 1em;
	}
	.section-arrow .site-arrow.next-arrow {
		margin-left: 1em;
	}

	header, header.active {
		position: relative;
		margin-top: 52px;
		padding: 25px 0;
		background: var(--cs-black);
		z-index: 1;
	}
	header .nav, header.active .nav {
		display: none;
	}
	header .hdr-nav, header.active .hdr-nav {
		padding: 0;
		display: none;
	}
	header .hdr-logo, header.active .hdr-logo {
		width: 100%;
		max-width: 280px;
		margin: 0 auto;
	}

	.hp-fixed-smi {
		display: none;
	}

	.about-content {
		padding: max(10vw, 50px) 0 0;
		flex-direction: column;
	}
	.about-col-left {
		width: 100%;
		margin-left: 0;
		max-width: 600px;
		text-align: center;
		margin: 0 auto;
	}
	.about-col-right {
		width: 100%;
		margin: max(8vw, 40px) auto 0;
		max-width: 490px;
	}


	section.listings {
		margin: max(9vw, 45px) 0 max(10vw, 50px);
	}
	.listings-bg::after,
	.listings-bg .listings-bg-right {
		bottom: calc((120/1333)*100%);
	}
	.listings-header {
    text-align: center;
		position: initial;
    max-width: 500px;
    margin: 0 auto;
		padding: max(5vw, 25px) max(3vw, 15px);
	}
	.listings-item {
		width: 100% !important;
	}
	.listings-item:nth-child(-n+2) {
		margin-bottom: 0;
	}
	.listings-item:first-child .listings-img canvas {
		height: 100%;
	}
	.listings-item:first-child:hover .listings-info, 
	.listings-item:first-child:focus-within .listings-info {
		margin-bottom: calc((169/623)*100%);
	}
	

	section.team {
		padding: max(10vw, 50px) 0;
	}


	.map-bg {
		display: none;
	}
	.map-content {
		margin: max(10vw, 50px);
	}
	.map-left {
		position: relative;
		width: 100%;
		max-width: 606px;
		margin: 0 auto;
	}
	.map-list {
		padding: max(7vw, 35px) 0 0 0;
		width: 100%;
		margin: 0 auto;
		max-width: 300px;
	}
	.map-right {
		display: none;
	}
	.sub-areas {
		max-height: 100%;
		padding-top: 1.25em;
	}
	.more-areas .ai-font-arrow-g-d {
		display: none;
	}


	section.properties {
		padding: max(5vw, 25px) 0 0;
	}
	.properties-header {
		flex-direction: column;
		align-items: center;
		margin-bottom: max(5vw, 25px);
	}
	.properties-title {
		padding-bottom: max(5vw, 25px);
	}


	section.work-with-us {
		padding: max(10vw, 50px) 0;
	}
	.wwu-bg {
		display: none;
	}
	.wwu-content {
		padding: max(10vw, 50px) 0 max(15vw, 75px);
		width: 100%;
	}
	.wwu-content-bg {
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
	}
	.wwu-stats {
		flex-direction: column;
		align-items: center;
	}
	.wwu-info:first-child, .wwu-info:nth-child(2), .wwu-info:nth-child(3) {
			margin-right: 0;
			margin-bottom: max(3.5vw, 25px);
	}


	section.social {
		padding: max(10vw, 50px) 0;
	}
	.social-bg {
		display: none;
	}
	.social-content {
		flex-direction: column;
		margin-top: max(5vw, 25px);
	}
	.social-left, .social-right {
		width: 100%;
	}
	.social-right {
		margin: max(5vw, 25px) 0;
	}
	.social-btn {
		justify-content: center;
		padding-right: 0;
	}


	.testimonials-title {
		width: 100%;
		text-align: center;
	}
	.review {
		text-align: center;
		padding: max(6vw, 30px) max(5vw, 25px) 0;
	}
	.review::before {
		right: 0;
		margin: 0 auto;
	}


	section.contact {
		padding: max(10vw, 50px) 16px;
		margin-top: 0;
	}
	.contact-bg .contact-bg-left, .contact-bg .contact-bg-right {
		display: none;
	}
	.contact-bg::before, .contact-bg::after {
		content: unset;
	}
	.contact-form {
		min-width: 280px;
		margin: max(5vw, 25px) auto 0;
	}
	.cf-field, .cf-field.col-md-6 {
		width: 100%;
	}
	.cf-field textarea {
		min-height: 125px;
	}


	.footer-content {
		width: 100%;
		max-width: 800px;
		padding: max(9vw, 45px) 32px max(8vw, 40px);
		font-size: max(13px, var(--fs-16));
	}
	.ftr-info {
		align-items: center;
		flex-direction: column;
		padding: 0;
	}
	.ftr-logo {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
	.ftr-contact-info {
		width: 100%;
		padding: max(4vw, 30px) 0;
	}
	.ftr-contact-info p {
		text-align: center;
		justify-content: center;
	}
	.ftr-contact-info p:nth-child(3) {
		display: none;
	}
	.ftr-contact-info p span {
		align-self: flex-start;
	}
	.ftr-contact-info p a {
		max-width: 9.375em;
	}
	.ftr-nav, .ftr-nav ul {
		flex-direction: column;
	}
	.ftr-nav ul li {
		border: none;
		margin-bottom: 25px;
	}
	.ftr-copyright {
		line-height: 2.3;
	}

	.back-to-top {
		display: none;
	}
	/* The following are used on inner pages. Please edit carefully. */
	.inner {
	  width: 100%;
	}
	#content-sidebar, #content-full {
	  width: 100%;
	}	
	.outer{
		width: 100%;
		min-width: 100%;
	}
	#content-sidebar #content{
		width: 100%;
	}

	.listing-module-page .listings-header,
	.parent-pageid-23 .listings-header {
		margin-left: auto !important;
	}
	#ai-modern-contact .ai-modern-contact-main {
		padding: 35px 0 0 !important;
	}
	
	.home .listings-item:first-child .site-img img {
		position: absolute;
		object-fit: cover;
	}
} 

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {
	.slideshow-tagline {
		padding-bottom: max(5vw, 25px);
		width: 80%;
	}
	.slideshow-tagline span {
		line-height: 1.5;
	}

	.about-bg {
		display: none;
	}


	.listings-bg {
		display: none;
	}
	.listings-content {
		width: 100%;
	}


	.team-list {
		width: 100%;
		max-width: 400px;
	}
	.team-slider {
		margin: max(5vw, 25px) 0;
	}

	

	.properties-map {
		padding-bottom: 0;
	}
	.properties-map iframe {
		position: relative;
		height: revert-layer;
		max-height: 500px;
	}


	.areas-list {
		flex-direction: column;
		margin-top: max(5vw, 25px);
	}
	.areas-item {
		width: 100%;
		max-width: 500px;
	}

	.testimonials-bg {
		display: none;
	}
	.testimonials-list {
		padding: max(9vw, 45px) 0;
		margin: max(5vw, 25px) 0;
		width: 100%;
	}

	.ip-banner .container{
		width: 100%;
	}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {
	.interactive-map .interactive-map-wrap .interactive-map-sorter .interactive-map-dropdown {
		height: 34px;
	}
	.interactive-map .interactive-map-wrap .interactive-map-top .interactive-map-pin-guide ul li {		
		font-size: 2.5vw;
	}
	.interactive-map .interactive-map-wrap .interactive-map-sorter .interactive-map-dropdown > span {		
		font-size: 2.5vw;		
	}
	.about-title h2 {
		font-size: 4em;
	}

	.listings-item:hover .listings-status, 
	.listings-item:focus-within .listings-status {
		margin-top: calc((-50/507)*100%);
		margin-right: calc((-150.38/507)*100%);
	}
	.listings-item:first-child:hover .listings-info, .listings-item:first-child:focus-within .listings-info {
		margin-bottom: calc((142/623)*100%);
	}
	.listings-info {
		width: 100%;
	}


	.properties-title h2 {
		font-size: 4em;
	}


	.social-left {
		flex-direction: column;
	}
	.in-post {
		width: 100%;
		max-width: 300px;
		margin-bottom: 25px;
	}
	.social-right {
		flex-direction: column;
		margin: max(5vw, 25px) 0;
	}
	.fb-post {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
	.fb-post:nth-child(-n+4) {
		margin-bottom: 20px;
	}
	.fb-post i {
		font-size: 2em;
	}

	.ftr-contact-info p {
		flex-flow: row wrap;
		line-height: 1.5;
	}

	#content .entry-title,
	#content .archive-title {
			font-size: max(min(calc((16/991)*100vw), 16px), calc(16px*0.62));
	}
	#content .entry-title strong, #content .archive-title strong {
		font-size: 3.8em;
	}
}
 
