/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
@media only screen and (max-width: 1440px){
	.main-navigation .sub-menu .sub-menu{
		left: initial;
		right: 50%;
	}

	.fixed-nav .sub-menu .sub-menu {
	    left: initial;
	    right: 50%;
	}

	.main-navigation .sub-menu li a{
	 	padding:9px 0;
	  	font-size:14px;
	}

	.fixed-nav .sub-menu li a{
		padding:9px 0;
	 	font-size:14px;	
	}


}

 
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1199px) {
	.header-container .main-navigation:nth-of-type(1) > li {
	    padding: 0 12px;
	}

	.header-container .main-navigation:nth-of-type(2) > li {
	    padding: 0 10px;
	}

	.header-container .main-navigation:nth-of-type(1) {
	    width: 380px;
	}


	.fixed-navigation .fixed-nav:nth-of-type(1) > li {
	    padding: 0 15px;
	}

	.fixed-navigation .fixed-nav:nth-of-type(2) > li {
	    padding: 0 15px;
	}

	.slide-tagline-container{
		top: 44%;
	}

	.welc-title-wrap h1.welc-title {
	    font-size: 48px;
	}

	.welc-content{
		font-size: 14px;
	}

	.welc-phone {
	    margin-right: 25px;
	}

	.welc-phone span, .welc-email-loc span{
		font-size: 16px;
	}

	.welc-email-loc span {
	    line-height: 28px;
	}

	.fc-list-left ul li a, .fc-list-right ul li a{
		font-size: 17px;
	}

	.footer-nav ul:nth-child(1) {
	    margin-right: 20px;
	}

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


	.logo{
		max-width: 200px;
	}
	

	.logo:before{
		top: -46px;
	}

} 	

@media only screen and (max-height: 600px){
	.popup-form-wrapper{
		display: block;
	}
}


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

	#fixed-header{
		display: none;
	}

	.header-wrapper{
		position: relative;
		z-index: 1;
		margin-top: 52px;
		display: block;
	}

	.header-bg-wrap {
	    margin: 0;
	    height: 100%;
	    display: block;
	    padding: 15px 0;
	}

	.header-container .aios-split-nav{
		display: none!important;
	}

	.logo{
		max-height: 100%;
		display: block;
		margin: 0 auto;
		padding: 0;
	}

	.logo:before{
		display: none;
	}

	.cta-container{
		position: relative;
		bottom: 0;
	}

	.slide-tagline-container {
	    top: 13%;
	}

	.slide-tag span{
		font-size: 47.79px;
	}

	.cta-item {
		pointer-events: none;
	    width: 100%;
	    max-width: 328px;
	    margin: 0 auto;
	    overflow: hidden;
	}

	.cta-item a{
		pointer-events: all;
		border-radius: 50%;
	}

	.cta-wrapper{
		padding: 50px 0 15px;
	}

	.cta-item a:hover .cta-border-outer{
		transform: none;
	}

	.cta-hover{
		opacity: 1;
	}

	.cta-border-inner{
		opacity: 0;
	}

	.cta-border-outer{
		background: transparent;
	}

	.cta-item a{
		margin-bottom: 30px;
	}

	.cta-item a:before{
		display: none;
	}

	.welc-wrapper{
		padding-top: 0;
		display: block;
	}

	.welc-agent-photo{
		text-align: center;
	}

	.welc-title-wrap h1.welc-title{
		text-align: center;
	}

	.welc-left-wrapper{
		width: 100%;
	}

	.welc-right-wrapper{
		width: 100%;
		padding: 0;
	}

	.testi-content{
		padding: 60px 20px;
		display: block;
		min-height: 100%;
	}

	.testi-item{
		padding-top: 60px;
	}

	.testi-item p{
		font-size: 16px;
		padding: 0 30px;
		margin-bottom: 15px;
	}

	.testi-content:before{
		top: 7%;
	}

	.testi-btn {
	    margin-top: 25px;
	}


	.testi-wrapper button.slick-prev.slick-arrow{
		left: 0;
	}

	.testi-wrapper button.slick-next.slick-arrow{
		right: 0;
	}

	.footer-cta-wrapper{
		margin-top: 0;
		padding-bottom: 40px;
		padding-top: 40px;
	}

	.footer-cta-item a:hover .footer-cta-border-outer{
		transform: none;
	}

	.footer-cta-hover{
		opacity: 1;
	}

	.footer-cta-border-inner{
		opacity: 0;
	}

	.footer-cta-border-outer{
		background: transparent;
	}

	.footer-cta-item {
		pointer-events: none;
	    width: 100%;
	    max-width: 328px;
	    margin: 0 auto;
	    overflow: hidden;
	}

	.footer-cta-item a{
		pointer-events: all;
		border-radius: 50%;
	}


	.footer-cta-item a{
		margin-bottom: 30px;
	}

	.footer-cta-item a:before{
		display: none;
	}

	.testi-wrapper{
		display: block;
		min-height: 100%;
		padding: 30px 0;
	}

	.fc-wrapper{
		padding: 60px 0;
	}

	.fc-list-left ul li:last-child:before{
		display: block;
	}

	.fc-content-wrap{
		display: block;
	}

	.fc-img {
	    width: 100%;
	}

	.fc-list-left {
	    width: 50%;
	}

	.fc-list-right {
	    width: 50%;
	}

	.fc-list-wrap{
		width: 100%;
	}

	.fc-list-left ul li{
		max-width: 210px;
	}

	.footer-top-wrapper{
		padding: 30px 0;
		text-align: center;
		display: block;
		min-height: auto;
	}

	.footer-contacts-wrap{
		display: block;
		margin-left: 0;
		margin-bottom: 40px;
	}

	.footer-main-wrap{
		display: block;

	}

	.footer-logo {
	    margin-bottom: 40px;
	}

	.footer-logo img{
		margin: 0 auto;
	}

	.footer-contacts span.f-loc{
		padding-left: 0;
		margin-bottom: 0;
	}

	.footer-contacts em.ai-font-location-c {
	    position: relative;
	    top: 0;
	    left: 0;
	}

	.testi-wrapper{
	    background-attachment: scroll;
	}

	.footer-bg-main canvas{
	    background-attachment: scroll;
	}
	
	/* 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-template-template-about-us .about-main-wrap{
		display: block;
		text-align: center;
		margin: 0 auto;
	}

	.page-template-template-about-us .about-photo,
	.page-template-template-about-us .about-content-main{
		width: 100%;
	}

	.page-template-template-about-us h2.about-title {
	    line-height: 1!important;
	    text-align: center;
	}
	
	
	.page-id-59 img,
	.page-id-41 img,
	.page-id-40 img {
	    margin: 0 auto;
	}

	.fc-img {
	    max-width: 478px;
	    margin: 0 auto 30px;
	}

	.fc-img canvas{
		height: auto;
	}

	.page-template-template-about-us .about-cimg-top{
		text-align: center;
	}

	.ip-banner canvas{
		min-height: 250px;
		background-size: cover;
	}


} 


@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
	
	html.safari-true .footer-bg-main canvas,
	html.safari-true .testi-wrapper{
		background-attachment: scroll;
	}
}


@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape) {
	
	html.safari-true .footer-bg-main canvas,
	html.safari-true .testi-wrapper{
		background-attachment: scroll;
	}

}


/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {
    .ip-banner .container{
        width: 100%;
    }

    .slide-tagline-container {
        top: 10%;
    }

    .slide-tag span {
        font-size: 30.79px;
        line-height: 1;
    }

    .slide-tag span i {
        font-size: 40.75px;
        font-style: normal;
    }

    .cycloneslider canvas {
        height: 400px;
    }

    .welc-contacts-wrap{
    	display: block;
    	text-align: center;
    	padding-bottom: 40px;
    }

    .welc-phone{
    	margin-right: 0;
    	margin-bottom: 15px;
    }

    .welc-email-loc span.w-loc{
    	padding-left: 0;
    }

    .welc-email-loc em.ai-font-location-c{
    	position: relative;
    	left: 0;
    }

    .fc-list-left, .fc-list-right {
        width: 100%;
    }

    .fc-list-left ul li {
        max-width: 100%;
    }

    .fc-list-wrap{
    	display: block;
    	max-width: 270px;
    	margin: 0 auto;
    }

    #ihf-market-report-header .ihf-market-report-header-toggle .dropdown-menu {
        right: auto !important;
        left: 0 !important;
    }


}


@media only screen and (max-width: 567px){
	.page-id-342 #content .alignright,
	.page-id-348 #content .alignright {
	    float: none;
	    margin: 15px auto !important;
	    display: block;
	}

	.page-id-216 .ipinspector a {
	    font-size: 14px;
	}

	.page-id-352 .entry.entry-content img,
	.page-id-356 .entry.entry-content img,
	.page-id-366 .entry.entry-content img,
	.page-id-360 .entry.entry-content div#attachment_361 {
		float: none !important;
		display: block;
		margin: 0 auto !important;
	}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {
	#content .entry-title, #content .archive-title{
		font-size: 35px;
	}

	.cycloneslider canvas {
	    height: 300px;
	}

	.slide-tagline-container {
	    top: 8%;
	}

	.testi-item p{
		padding: 0;
	}

	.testi-wrapper button.slick-prev.slick-arrow,
	.testi-wrapper button.slick-next.slick-arrow{
		display: none!important;
	}

	.page-template-template-about-us #content ul{
		margin-left: 15px!important;
	}

	#ihf-refine-search-button #ihf-refine-search-button > button,
	#ihf-main-container .pull-right:not(.ihf-social-share) .btn-group,
	#ihf-main-container .pull-right:not(.ihf-social-share) .btn-group > button {
	    text-align: right !important;
	    width: 100%;
	}

	#ihf-main-container .col-xs-6:not([class*="col-xs-offset"]),
	#ihf-main-container > div.ihf-listing-search-results > div:nth-child(5) .col-xs-6 {
	    width: 100% !important;
	}
	
	.ihf-refine-search-container form#ihf-mini-search-form div.col-xs-6 {
	    width: 50% !important;
	}

	#ihf-refine-search #ihf-refine-search-button,
	#ihf-refine-search + .btn-group button {
	    float: right !important;
	    width: auto !important;
	}

	#ihf-main-container .row > .row {
	    margin: 0!important;
	}

	#ihf-main-container label.field-label.ihf-area-inclusion-label {
	    display: block!important;
	}

	#ihf-main-container .btn{
	    white-space: normal;
	}

	#ihf-market-report-header .ihf-market-report-header-toggle .dropdown-menu {
	    right: auto !important;
	    left: 0 !important;
	}
}
 
@media print {
	body {
		-webkit-print-color-adjust: exact;
	}
	a[href]:after {
		display: none;
		visibility: hidden;
	}
	.header-bg-wrap {
		height: 130px;
		background-color: #5c571d !important;
		-webkit-print-color-adjust: exact;
		margin: 0;
		padding: 10px;

	}
	.fixed-header-bg-wrap,
	.aios-split-nav.main-navigation,
	.navigation .main-navigation:nth-of-type(2),
	.ip-banner,
	.footer  {
		display: none;
	}
	.logo {
		max-height: initial;
	}
	a.ctabtn span {
		line-height: initial;
	}
	.header-wrapper,
	.aios-mobile-header-wrapper,
	.textwidget,
	.yoast-breadcrumbs,
	p#breadcrumbs,
	.footer-form-wrapper,
	.footer-wrapper,
	aside.sidebar,
	.ip-banner,
	.ihf-contiguous-links,
	.entry-title,
	.ihf-open-home .panel.panel-default,
	.entry-content > a:first-child
	{
		display: none !important;
	}
	#content{
		width: 100% !important;

	}
	.inner-page-wrapper{
		padding-top: 0px;
	}
}