/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
@media only screen and (min-width: 992px) {
	.emailus-button{
		width: 280px;
	}
}
@media only screen and (min-width: 1601px) {
	.custom_site_title h2, .cta_title span {
		font-size: 60px;
	}
	.custom_site_title span, .cta_title {
		font-size: 30px;
	}
	.main_nav li {
		padding: 0 22px;
	}
	.cta_description, .about_text {
		font-size: 20px !important;
	}
	.footer_form_info_wrap .custom_site_title span {
		font-size: 36px;
	}
	.footer_disclaimer p {
		font-size: 14px;
	}
}

@media only screen and (max-width: 1440px) {
	.footer_floating_logo {
		width: 9.25%;
	}
}

@media only screen and (max-width: 1366px) {
	.single-aios-agents.postid-25497 .agentInfo__right .customTtl span {
	    max-width: 600px;
	}

	.main_nav_left {
	    padding-right: 10px;
	}

	.main_nav_right {
	    padding-left: 10px;
	}

	.main_nav li a {
	    font-size: 14px;
	}
}

@media only screen and (max-width: 1280px) {
	/*.header_logo {
		width: 35%;
	}*/
	.header_email {
		margin: 0;
	}
	.main_nav.main_nav_left > li:first-child > .sub-menu {
		left: 0;
		right: auto;
	}
	.main_nav.main_nav_right > li:last-child > .sub-menu {
		left: auto;
		right: 0;
	}
	.cta_description {
		font-size: 12px;
	}
	.foot_smi_title {
		font-size: 12px;
	}
	.footer_floating_logo {
		bottom: 0;
	}
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1199px) {
	body, .parallax_bg canvas {
        background-attachment: scroll;
    }
    
	.main_nav li a {
		font-size: 12px;
	}

	.header_logo {
	    /*width: 24%;*/
	    padding: 0 10px;
	}

	.main_nav_left.main_nav > li {
	    padding: 0 5px !important;
	}

.main_nav_left {
    /* margin-right: 0; */
    /* margin-left: auto; */
}

.main_nav_right {
    /* margin-right: auto; */
    /* margin-left: 0; */
}

	#fixed_header > .container-fluid {
		padding-left: 15px;
		padding-right: 15px;
	}

	#hp_floating_smi {
		right: 5px;
	}

	.cta_description {
		margin: 15px 0;
		line-height: 1.5;
	}

	/*.hp_about_bg::after {
		right: 4.25%;
	}*/
	.hp_about {
		padding-right: 6.5625%;
	}
	.about_text_wrap {
		padding-right: 20px;
	}
	.about_buttons .custom_site_button {
		max-width: 47%;
	}
	.about_buttons .custom_site_button:first-child {
		margin-right: 20px;
	}

	.hp_featlist {
		padding-left: 20px;
		padding-right: 20px;
	}
	.fl_title_wrap {
		padding-right: 20px;
	}
	.featlist_button a {
		font-size: 13px;
	}

	.footer_content > .container-fluid {
	    padding-left: 15px;
	    padding-right: 15px;
	}
	.footer_contact_form {
		width: 37.14%;
	}
	.single-aios-agents.postid-25497 .agentInfo__right .customTtl span {
	    max-width: 515px;
	}
	.post-page-stamford-darien-regional-office #content .custom_site_button a {
		font-size: 11px;
		padding: 0;
	}
	.about_names a {
		font-size: 11px;
	}
	.about_names a span,
	.post-page-our-story #content .about_names a span {
		font-size: 14px;
	}
} 

/* iPad(portrait) | Galaxy Tab 4(portrait)  */
@media only screen and (max-width: 991px) {

	.header-transalate-mobile {
		display: block;
	}

	.header-transalate-mobile .header_translate {
		display: block;
		text-align: center;
		margin: 13px auto 0;
	}

	.bp-wrap .left2{
		justify-content: center;
	}

	.margin-left{
		margin-left: 0 !important;
	}

	.buyers-pro-img2{
		text-align: center;
	}

	.bp-wrap{
		display: block;
		text-align: center;
	}
	#content .buyers-pro-text p,
	#content .buyers-pro-text ul {
		text-align: left;
	}
	.buyers-pro-img img, .buyers-pro-img2 img {
		padding: 0 5px;
	}

	.custom_site_title h2, .cta_title span,
	#content .entry-title, #content .archive-title {
		font-size: 45px;
	}
	.custom_site_title span, .cta_title {
		font-size: 25px;
	}
	.footer_form_info_wrap .custom_site_title span {
		font-size: 30px;
	}

	body.show_menu {
	    overflow: unset;
	}
	/*.amh-header-buttons.amh-3a .amh-center {
	    background: url(images/site-icon.png) center no-repeat;
	    background-size: auto 34px;
	}
	.amh-header-buttons.amh-3a .amh-center .amh-phone,
	.amh-header-buttons.amh-3a .amh-center a.amh-phone {
		display: none !important;
	}*/

	#header_wrap {
		position: relative;
		z-index: 10;
		margin-top: 52px;
		padding: 25px 0;
	}

	.head_contact_box_content.show_dropdown {
    top: 52px;
}
		#default_header .header_inner {
			padding: 0;
		}
		.header_logo {
			width: 100%;
			max-width: 360px;
			margin: 0 auto;
		}
		.header_contact_info_wrap {
			position: absolute;
		    top: -50px;
		    right: auto;
		    text-align: center;
		    margin-top: 15px;
		}
		.header_contact_info {
		    color: #ffffff;
		}
		.header_phone:after, .phone_close_btn::after {
			border-color: #ffffff transparent transparent transparent;
		}
		.header_contact_info > div {
			justify-content: center;
		}
		.header_email, .header_translate {
			display: none;
		}
		.header_phone, .phone_close_btn {
			background-color: var(--secondary-color);
		}
		.head_contact_box_content {
		    left: -150%;
		    right: -150%;
		    margin: 0 auto;
		    position: fixed;
		    min-width: 0;
		    max-width: 270px;
		}
		.main_nav {
			display: none !important;
		}
		.header_phone, .phone_close_btn {
			opacity: 0 !important;
		}
		.aios-mobile-header-wrapper .amh-header-buttons.amh-3a .amh-center a.amh-phone span.ai-font-phone {
			padding-right: 25px;
		}
		.aios-mobile-header-wrapper .amh-header-buttons.amh-3a .amh-center a.amh-phone span.ai-font-phone:after {
            position: absolute;
            content: '';
            top: calc(50% - 3px);
            right: 0;
            width: 0;
            height: 0;
            border: 6px solid transparent;
            border-color: #000000 transparent transparent transparent;
        }

	#hp_qs_wrap {
		top: 49%;
	}
		.hp-quick-search .bootstrap-select.btn-group .dropdown-toggle .filter-option {
			font-size: 10px;
		}

	#hp_cta_wrap {
		padding: 60px 0;
		text-align: center;
	}
		.hp_cta {
			padding: 0 15px;
		}
		.cta_content {
			flex-flow: column !important;
		}
		.cta_list {
			width: 100%;
			margin: 0 auto !important;
		}
		.cta_text_wrap {
			width: 100%;
			max-width: 360px;
			margin-bottom: 30px;
			text-align: center;
		}
		.cta_photo {
			width: 100%;
			max-width: 290px;
		}
		.cta_photo a canvas {
			height: 250px;
		}
	#hp_about_wrap {
		padding: 50px 0;
		text-align: center;
	}
		.hp_about_bg::before, .hp_about_bg::after {
			display: none;
		}
		.hp_about {
			padding: 0 15px;
		}
		.hp_about > div {
			flex-flow: column-reverse;
		}
		.about_left_wrap {
			width: 100%;
		}
		.about_names {
			padding-left: 0;
			padding-right: 0;
		}
		.about_names a {
			font-size: 11px;
		}
		.about_names a span {
			font-size: 16px;
		}
		.about_text_wrap {
			width: 100%;
			background-color: #ffffff;
			margin-bottom: 30px;
    		padding: 30px 20px;
		}
		.about_left_wrap, .about_photo {
			width: 100%;
			max-width: 598px;
			margin: 0 auto;
		}
		.about_buttons .custom_site_button {
			margin: 10px !important;
		}
	#hp_featlist_wrap {
		padding: 60px 0;
		text-align: center;
	}
		.fl_title_wrap {
			width: 100%;
			float: none;
			padding: 0;
			margin-bottom: 30px;
			text-align: center;
		}
		.featlist_title {
			width: 100%;
		}
		.fl_item {
			width: 100% !important;
			max-width: 450px;
			margin: 0 auto !important;
			display: block;
		}
		.fl_text_wrap {
			bottom: 0;
			text-align: center;
		}
		.fl_other_info {
			opacity: 1;
		}
	#hp_partners_wrap {
		padding-bottom: 40px;
	}
		.partner_logo {
			display: block;
			margin: 30px auto;
		}
	.footer_form_info_wrap {
		flex-flow: column;
		text-align: center;
	}
		.footer_contact_form {
			width: 100%;
		    max-width: 450px;
		    margin: 0 auto;
		}
		.footer_smi_wrap {
			flex-flow: column;
		}
		.foot_smi_title {
			font-size: 14px;
			margin-bottom: 15px;
		}
		.footer_contact_info {
			width: 100%;
			margin-top: 40px;
		}
		.foot_contact_content {
			margin-top: 0;
		}
		.foot_contact_row {
			width: 100% !important;
			max-width: 360px;
			margin: 20px auto 0;
			display: flex;
		    justify-content: center;
		    align-items: center;
		    justify-content: space-between;
		}
		.foot_contact_name {
			font-size: 16px;
			margin: 0 20px 0 0;
			text-align: left;
		}
		.foot_contact_number {
			font-size: 14px;
		}
		.footer_floating_logo {
			width: 100%;
			max-width: 100px;
			bottom: auto;
	        left: auto;
	        right: auto;
	        margin: 20px auto 0;
	        position: relative;
		}
	/* 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%;
	}

	#pojo-a11y-toolbar {
        display:none;
    }

    /* BLOG */
    #content .archive-list > article {
        width: 100%;
    }

    #content .archive-list .article-long .archive-has-thumbnail .archive-subtitle {
        margin: 0.75em 0;
        font-size: 24px
    }

    #content .archive-list .article-long p {
        font-size: 17px;
    }

    #content .archive-list .article-long .archive-thumbnail,
    #content .archive-list .article-long .archive-has-thumbnail {
        width: 100%;
        margin-left: 0;
    }

    .ip-ww-head {
    	flex-flow: column;
    }
    .ip-ww-img {
    	margin-top: 20px;
    }
    .ip-ww-numbers {
    	flex-flow: column;
    	align-items: center;
    }
    .ip-ww-numbers .ip-ww-col {
    	padding: 10px 0;
    }
    .ip-ww-button .custom_site_button {
    	display: block;
    	margin: 0 0 15px;
    }

    #content .entry-title::before,
	#content .archive-title::before,
	#content .entry-title::after,
	#content .archive-title::after,
	.ip-bannerInner h2 span::before,
	.ip-bannerInner h2 span::after {
		max-width: 100%;
		top: 120%;
		left: 0;
		right: 0;
		margin: 0 auto;
	}

	.afford-contact-info {
	    flex-flow: column;
	    min-height: auto;
	}
	.afford-contact-info .col-md-5 {
		margin: 15px 0;
	}

	.market-report-wrapper {
		margin: 0 auto;
		padding-top: 20px;
	}

	.post-page-our-story .img-responsive {
		margin: 0 auto;
	}
	.single-aios-agents .aiosp-wrap .aiosp-container .aios-popup-body {
		padding: 4% 7%;
	}
	.post-page-contact .aios-contact-form {
		padding: 39px 20px 25px !important;
	}

	.footer_prop_links {
		text-align: center;
	}
	.foot_prop_links ul, .ip_prop_links ul {
		column-count: 2;
	}

	.ip-afford-logo {
	    min-height: auto;
	}

	.ip-container #content h2,
	.ip-container #content h3,
	.ip-container .ip-banner h2 {
		font-size: 35px !important;
	}
	.ip-container #content h2 small,
	.ip-container #content h3 small,
	.ip-container .ip-banner h2 small {
		font-size: 20px !important;
	}

	.market-report-right li:last-child {
		border-bottom: solid 1px #676767;
	}
	.post-page-in-the-media .fv__item iframe {
		max-height: 350px;
	}
	.post-page-in-the-media .fvThumb__item,
	.post-page-in-the-media .vision__item, 
	.post-page-in-the-media .tours__item, 
	.post-page-in-the-media .print__item {
		padding-left: 30px;
		padding-right: 30px;
	}

	.post-page-stamford-darien-regional-office #content .custom_site_button {
		width: 100%;
		text-align: center;
	}
	.post-page-stamford-darien-regional-office #content .col-md-3 {
		margin-bottom: 30px;
		text-align: center;
	}

	.ip-banner canvas {
		min-height: 125px !important;
	}
	.post-page-buyers-process .buyers-pro-img2 {
		margin-left: -5px;
		margin-right: -5px;
	}
	.post-page-buyers-process .buyers-pro-img2 .col-xs-3 {
		padding-left: 5px;
		padding-right: 5px;
	}
	.post-page-buyers-process .buyers-pro-img2 img {
	    padding: 0;
	}

	#content .archive-content.archive-has-thumbnail {
		height: auto;
	}

	.page-template-communities .ip-banner #breadcrumbs,
	.page-template-agents .ip-banner #breadcrumbs,
	.single-aios-agents .ip-banner #breadcrumbs,
	.page-template-agents .ip-banner #breadcrumbs {
	    padding-left: 15px;
	    padding-right: 15px;
	}

	#content .entry {
		text-align: center;
	}

	.single-post #content .entry,
	.page-id-28245 #content .entry {
		text-align: center;
	}

	body.page-id-26741 .afford-contact-info .col-md-3 {
	    margin-bottom: 20px;
	}

	body .listings-hero {
	    margin-top: 0!important;
	}



} 

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {
	.hp_qs h2 {
		font-size: 40px;
	}
	.hp_qs .qs_field select {
		letter-spacing: 0.025em;
	}
    .ip-banner .container{
        width: 100%;
    }
    .marketlist-col {
    	width: 100%;
    	padding: 0 !important;
    }
    
    .post-page-market-reports .popup-form-main .cagent span.wpcf7-list-item {
    	width: 100%;
    }
    .brochures .buyers-pro-img img {
    	width: 100%;
	    max-width: 430px;
	}

	#site_contact_popup .pop__ttl {
		font-size: 35px !important;
	}
	#site_contact_popup .pop__ttl small {
		font-size: 16px !important;
	}
	#site_contact_popup .pop .cf__field--short {
		width: 100% !important;
	}
	#site_contact_popup .pop--contact .cf__field {
		margin: 18px 0 0 !important;
	}
	.buyers-pro-img img,
	.buyers-pro-img2 img{
		width: 100%;
		max-width: 400px;
	}

	.about_names a {
		letter-spacing: 0;
	}
	.about_names a span {
		max-width: 85px;
		margin-left: auto;
		margin-right: auto;
	}
}


@media only screen and (max-width: 567px) {
#hp_qs_wrap .ihf-col-md-3 {
    flex: 0 0 75% !important;
    max-width: 75% !important;
}

#hp_qs_wrap .ihf-col-md-1 {
    width: 25%;
}

#hp_qs_wrap ihf-select.ihf-form-control.ihf-select-multiple {
    padding: 0 10px;
}

#hp_qs_wrap .ihf-col-md-1 button {
    font-size: 12px;
    letter-spacing: normal;
    padding: 0 5px;
}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {
	.custom_site_button a,
	#content .custom_site_button a {
		padding-left: 10px;
		padding-right: 10px;
		text-align: center;
	}
	#content .entry-title, #content .archive-title {
		font-size: 40px;
	}
	.custom_site_title h2 {
		font-size: 35px;
	}
	
	.hp_qs h2 {
		font-size: 25px;
		margin-bottom: 15px;
	}
	.hp_qs .qs_field select {
		font-size: 11px;
	}
	.hp-quick-search .bootstrap-select.btn-group .dropdown-toggle .filter-option {
		letter-spacing: 0;
	}

	.cta_title span {
		font-size: 40px;
	}

	.about_buttons .custom_site_button {
		max-width: 100%;
	}

	.form_field_wrap {
		margin-top: 0;
	}
	.form_field_short {
		width: 100%;
		margin: 15px 0 0;
	}
	.contact_form div.wpcf7-response-output,
	.contact_form .wpcf7 form .wpcf7-response-output {
		font-size: 10px;
	}

	.foot_contact_name {
		font-size: 12px;
		letter-spacing: 0;
	}
	.grecaptcha-badge{
		bottom: 74px !important;
		z-index: 109 !important;
	}
	.emailus-content {
	    padding: 23px 15px 35px;
	}
	.emailus-wrap {
	    right: 10px;
	    bottom: 10px;
	    z-index: 110;
	}

	/* GLOBAL PAGE */
	.global_logo {
	    margin: 0 20px 20px;
	}

	.post-page-digital-print-media .custom_site_button a {
		font-size: 11px;
		letter-spacing: 0;
		padding: 0 10px;
	}
	.single-aios-agents .aiosp-wrap .aiosp-container .aios-popup-body {
		padding: 4% 10%;
	}

	.foot_prop_links ul, .ip_prop_links ul {
		column-count: 1;
	}

	.post-page-in-the-media .fv__item iframe {
		height: auto;
		max-height: 230px;
		min-height: 230px;
	}

	.customTtl--lined span {
		font-size: 35px !important;
	}

	.commInfo01__info{
		padding: 0 10px !important;
	}
	
}
 
