/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
 @media only screen and (max-width: 1500px) {
	.welcome-inner {
		margin-left: -75px;
	}

	.hp-welcome::before {
		width: 511px;
	}

	.fixed-smi {
		top: 219px;
	}
} 



@media only screen and (max-width: 1366px) {
	.bm-menu {
		max-width: 1124px;
	}

	.bm-content {
		padding: 110px 30px;
	}

	.header-logo img {
		max-width: 300px;
	}

	.welcome-inner {
		margin-left: 0;
	}

	.welcome-img {
		max-width: 984px;
	}

	.hp-welcome::before {
		width: 432px;
	}

	.hp-testimonials .global-title {
		max-width: 675px;
	}
	

	.hp-testimonials::before {
		width: 653px;
	}

	.testi-box {
		padding: 80px 34px 45px 34px;
		margin: 0 0;
	}

	.footer-logo img {
		max-width: 245px;
	}

	.copyright {
		font-size: 12px;
	}
} 


@media only screen and (max-width: 1365px){
	.fixed-smi {
		top: 171px;
		right: 11px;
	}

	.sidebar .qs-form .dropdown-menu.open {
		left: initial;
		right: 0;
	}
	
	
}

 
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1199px) {
	.bm-menu {
		max-width: 890px;
	}

	ul#nav2 li a {
		font-size: 20px;
	}

	ul#nav2 li .sub-menu a {
		font-size: 13px;
	}

	#nav2 .sub-menu .sub-menu li a {
		font-size: 12px;
	}

	.qs-title::after, .qs-title::before {
		width: 346px;
	}

	.qs-form {
		margin-right: -8px;
	}
	

	.qs-xl {
		width: 19.10%;
	}

	.qs-xl input, .qs-xl select, .qs-l input, .qs-l select, .qs-sm select, .qs-sm input, .qs-md select, .qs-md input,
	.qs-form .bootstrap-select>.dropdown-toggle {
		font-size: 10px;
		padding: 0 6px;
	}

	.burger-menu {
		margin-left: 12px;
	}

	.header-logo img {
		max-width: 250px;
	}

	#nav li a {
		font-size: 11px;
	}

	#nav > li {
		margin-left: 18px;
	}

	.featured-properties {
		padding: 62px 0 0;
	}

	.global-title span, .global-title .welcome-h1 {
		font-size: 75px;
	}

	.hp-welcome::before {
		width: 396px;
	}

	.welcome-descrip {
		max-width: 554px;
	}
	
	.welcome-button {
		margin: 0 0 28px 139px;
	}

	.welcome-img {
		max-width: 798px;
	}

	.welcome-descrip p {
		font-size: 14px;
	}

	.hp-testimonials::before {
		width: 504px;
	}

	.hp-testimonials .global-title {
		max-width: 422px;
	}

	.blog-title a {
		font-size: 16px;
	}

	.footer-phone {
		padding: 0 0 0 40px;
	}

	.footer-email {
		padding-left: 68px;
	}

	.footernav li a {
		font-size: 12px;
	}
	
	.copyright {
		font-size: 10px;
	}

	.side-qs .qs-title {
		font-size: 26px;
	}

	.side-qs .qs-xl input, 
	.side-qs .qs-xl select,
	.side-qs .qs-l input,
	.side-qs .qs-l select,
	.side-qs .qs-sm select,
	.side-qs .qs-sm input,
	.side-qs .qs-md select,
	.side-qs .qs-md input,
	.qs-form .bootstrap-select.btn-group .dropdown-toggle .filter-option{
		font-size: 10px;
	}

	.page-id-8097 .webpagesModule.moduleDetail, .page-id-8095 .webpagesModule.moduleDetail, .page-id-8091 .webpagesModule.moduleDetail, .page-id-8089 .webpagesModule.moduleDetail, .page-id-8084 .webpagesModule.moduleDetail {
		max-width: 710PX;
		width: 100%;
	}

	/* LISTINGS */
	#content ul.linklist li {
		width: 45%;
	}
} 

/* iPad(portrait) | Galaxy Tab 4(portrait)  */ 
@media only screen and (max-width: 991px) {
	.agent-description img.alignright,
	.agent-description img.aligncenter {
		width: 100%;
		max-width: 100% !important;
	}

	.page-id-2131 #content .entry p a,
	.page-id-3014 #content .entry h5 a,
	.page-id-2414 #content .entry p a{
		display: block;
		margin: 0 !important;
		text-align: center;
	}

	.aios_agent-template-default .ngg-galleryoverview {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: center;
	}

	.aios_agent-template-default .ngg-gallery-thumbnail-box {
		float: none !important;
		max-width: 180px !important;
		width: calc(100% / 3) !important;
	}

	.mapp-layout {
		margin: 22px auto;
	}

	.testi-slick-holder .slick-slide:nth-child(odd) .testi-list {
		padding-right: 0;
	}

	.agent-holder .attachment-agent-image img {
		width: 100%;
		max-width: 500px !important;
		margin: 0 auto !important;
		display: block;
	}

	#content .archive-subtitle {
		margin: 0;
	}

	.slide-arrow {
		bottom: 40px;
	}
	.page-id-24 ul.md_subpages li {
		width: 100%;
	}
	header.header {
		position: relative;
		background: #252524;
	}

	.header-right {
		display: none;
	}

	.header-logo img {
		max-width: 320px;
	}

	.header-container {
		justify-content: center;
		padding-bottom: 18px;
	}

	.hp-qs {
		position: relative;
		bottom: 30px;
		background: #252524;
		padding: 15px 0;
	}

	.qs-form {
		margin-right: 0;
		letter-spacing: 0;
		max-width: 500px;
		margin: 0 auto;
	}

	.qs-title::after, .qs-title::before {
		width: 207px;
	}

	.qs-form > div {
		margin: 0 0 4px;
	}

	.qs-xl,
	.qs-l,
	.qs-search, 
	.qs-advanced {
		width: 100%;
	}

	.qs-sm,.qs-md{
		width: 50%;
	}

	.qs-sm.pad-right,
	.qs-md.pad-right {
		padding-right: 2px;
	}

	.qs-sm.pad-left,
	.qs-md.pad-left {
		padding-left: 2px;
	}

	.global-title span, .global-title .welcome-h1 {
		font-size: 60px;
	}

	.hp-welcome {
		padding: 0 15px 0;
		text-align: center;
	}

	.hp-welcome .global-title span, .hp-welcome .global-title .welcome-h1 {
		text-align: center;
	}

	.welcome-descrip {
		max-width: 100%;
	}

	.welcome-img {
		max-width: 100%;
		margin: 0 auto;
	}
	
	.welcome-img::before,
	.hp-welcome::before,
	.hp-testimonials::before,
	.testi-list::after,
	.testi-name::before {
		display: none;
	}

	.welcome-details {
		flex-direction: column;
		align-items: center;
	}

	.welcome-button {
		margin: 0 0 28px 0;
	}

	.hp-testimonials {
		padding-top: 18px;
	}

	.hp-testimonials .global-title span {
		text-align: center;
		white-space: pre-wrap;
	}

	.hp-testimonials .global-title {
		max-width: 100%;
	}

	.testi-inner {
		flex-direction: column;
		align-items: center;
	}

	.testi-list:last-child {
		padding: 42px 0 0;
	}

	.testi-box {
		text-align: center;
	}

	.testi-name {
		padding-left: 0;
	}

	.testi-descrip p, .testi-name {
		max-width: 100%;
	}

	.cta-box {
		max-width: 360px;
		margin: 0 auto 18px;
	}

	.blog-box {
		max-width: 360px;
		margin: 0 auto;
		text-align: center;
	}

	.blog-title a {
		font-size: 14px;
		padding: 13px 0;
		min-height: 100%;
	}

	.blog-descrip {
		padding: 0 0 15px;
	}

	.fp-address {
		font-size: 11px;
	}

	.git-md.pad-right,
	.git-md.pad-both,
	.git-md.pad-left{
		padding: 0;
	}

	.git-form {
		max-width: 500px;
	}

	.git-md{
		width: 100%;
	}

	.footer-top > div {
		padding: 0;
		text-align: center;
	}

	.footer-top {
		flex-direction: column;
	}

	.footer-address,
	.footer-phone {
		padding: 15px 0 !important;
	}

	.footer-bottom {
		max-width: 100%;
		flex-direction: column;
		align-items: center;
	}
	
	.footernav {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.footernav li {
		border-right: transparent;
		margin-bottom: 8px;
		padding: 0;
	}

	.footer-logo {
		padding-bottom: 12px;
	}

	.footer-logo img {
		max-width: 324px;
	}

	.copyright,
	.mls {
		text-align: center;
	}

	.testi-button {
		margin: 0 10px 0 10px;
	}
	
	/* 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%;
	}

	.page-id-7971 .agent-holder .attachment-agent-image,
	.page-id-7971 .agent-holder .agent-contacts {
		width: 100%;
		text-align: center;
	}
	.page-id-7971 .agent-description {
		text-align: center;
	}
	.page-id-7971 .agent-description a {
		margin: 10px auto 0;
	}

	/* LISTINGS */
	#content ul.linklist li{
		width: 100%;
		margin: 5px 0;
	}
	
} 

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {
	.fixed-smi {
		display: none;
	}
	.qs-title::after, .qs-title::before {
		width: 110px;
	}

	.global-title span, .global-title .welcome-h1 {
		font-size: 42px;
	}

	.fp-address {
		font-size: 12px;
	}

	.fp-list {
		max-width: 527px;
		margin: 0 auto 21px;
	}

	.hp-testimonials .global-title span {
		line-height: 48px;
	}

	.hp-welcome .global-title span, .hp-welcome .global-title .welcome-h1 {
		padding: 20px 0;
	}

    .ip-banner .container{
        width: 100%;
	}
	
	span.new-line,
	a.new-line {
		display: block;
		text-align: center;
	}
}

@media only screen and (max-width: 640px){
	/* For Gravity Forms */
	/* Contact Us targeted by id */
	.page-id-27 .gform_wrapper textarea.medium {
		width: 100%;
	}

	.webpagesModule.moduleDetail h2 {
		text-align: center;
	}

	.webpagesModule.moduleDetail p a {
		display: block;
		margin: 0;
		text-align: center;
	}
}

@media only screen and (max-width: 641px) {
	/* For Gravity Forms */
	/* Contact Us targeted by id */
	#gform_wrapper_3 div.ginput_complex.ginput_container.gf_name_has_2 span{
		display: block !important;
		width: 100%;
	}

}





/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {
	.cu-holder .wpcf7 form .wpcf7-response-output {
		bottom: -32px;
	}

	.mapp-layout {
		width: 287px !important;
	}

	.testi-arrow {
		padding: 0 0 20px;
	}

	.testi-bottom a:nth-child(2) {
		order: 3;
	}

	.agent-holder a {
		font-size: 13px;
	}

	.header-logo img {
		max-width: 250px;
	}

	.qs-title::after, .qs-title::before {
		width: 39px;
	}

	.global-title span, .global-title .welcome-h1 {
		font-size: 30px;
	}

	.hp-testimonials .global-title span {
		line-height: 30px;
	}

	.testi-bottom {
		flex-direction: column;
	}

	.testi-button {
		margin: 14px 0;
	}

	.footer-logo img {
		max-width: 274px;
	}


	#content .status-publish.hentry ul {
		margin-left: 10px;
	}

	#content .gfield_checkbox li label{
		font-size: 11px !important;
	}
}
 
