/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/

@media only screen and (max-width: 1200px) {
	#nav li a {
	    padding: 0 10px;
	    font-size: 13px;
	}
	#nav .sub-menu a{
		font-size: 11px;
	}
	#menu-item-13267 .sub-menu .sub-menu{
		margin-left: -100%;
	}
	.gw-b {
		margin: 0 7px;
	}
	.home_widget6 {
		background: #f5efe3;
	}
	.company img {
		width: auto;
		height: 40px;
	}
	.home_widget5 .cmid{
		max-height: 346px;
	}
	.sidebar #wpcf7-f668-o1 input, .sidebar #wpcf7-f668-o1 textarea, .sidebar #wpcf7-f668-o2 input, .sidebar #wpcf7-f668-o2 textarea {
		width: 100%;
	}

	#TB_window {
		top: 40% !important;
	}
	#TB_iframeContent {
		-webkit-overflow-scrolling: touch;
		overflow-y: scroll;
	}
	.page-id-6 #content .entry {
		width: 100%;
		max-width: 100%;
	}
	.gw-a > div h3, .gw-b > div h3, .gw-c > div h3 {
		font-size: 18px;
		top: 50%;
		transform: translate(0,-50%);
	}
	.page-id-1380 .entry img {
		width: 100%;
	}
}

@media only screen and (max-width: 1199px) {
	.sidebar ul.sb-info li a {
		font-size: 16px;
	}

	.sb-smi a {
		margin: 6px 3px;
	}


	.When-Selling-home{
		right: 0;
	}

	#nav li:before{
		width: 57px;
		height: 57px;
		top: 0;
	}
	

}


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


a.When-Buying-home, .When-Selling-home{
	position: inherit;
}
a.When-Buying-home{
	left: 0;
}
.When-Selling-home{
	right: 0;
}

a.When-Buying-home img, .When-Selling-home img {

    max-width: 192px;
    display: block;
    margin: 0px auto;
}

	.inner {
	    width: 100%;
	}
	#content-sidebar, #content-full {
	    width: 100%;
	}	
	.outer{
		width: 100%;
		min-width: 100%;
	}
	#content-sidebar #content{
		width: 100%;
	}

	#header, .stat-h {
		position: relative !important;
		height: auto !important;
		padding-top: 50px;
		z-index: 1;
	}
		.h-top {
			width: 100%;
			height: auto;
			padding: 20px 0 0;
		}
			.title {
				width: 100%;
			    text-align: center;
			    padding: 0 10px;
			    float: none;
			    margin: 0 auto;
			}
				.title img {
					width: 100%;
					max-width: 202px;
					margin: 0 auto;
				}
	.h-bottom, .header-info {
		display: none;
	}

	.slide {
		position: relative;
	}
	.home_widget1 h2, .home_widget2 h2, .home_widget3 h1, .home_widget3 h1 span {
		font-size: 25px;
	}
	.gw-a, .gw-b, .gw-c {
		width: 100% !important;
		max-width: 360px !important;
		margin: 10px auto !important;
		float: none !important;
		overflow: hidden !important;
	}
	.fc-box {
		height: auto;
	}
	.fc-photo {
		position: relative;
		top: inherit;
		right: inherit;
		width: 100%;
		max-width: 100%;
		float: left;
		padding: 20px;
	}
		.fc-photo:before {
			display: none;
		}
	.company {
		text-align: center;
	}
	.team-content {
		position: relative;
		top: inherit;
	}
	.cmid {
		padding-left: 0;
		max-height: 260px;
	}
	.company span {
		float: none;
	}
	.gw-c1 h3 {
		font-size: 17px;
	}
	.fc-box h3 {
		text-align: left;
	}
	.sidebar div#wpcf7-f668-o1, .sidebar div#wpcf7-f668-o1 p{
		text-align: center !important;
	}
	.sidebar #wpcf7-f668-o1 input, .sidebar #wpcf7-f668-o1 textarea{
		width: auto;
	}
	#inner-page-wrapper {
	    padding-top: 0;
	}
	.home_widget5 .cmid {
	    max-height: 261px;
	}
	/*.aios-listings-page .ip-bg {
		height: auto;
	}*/
	.ip-title-wrap{
		top: 50%;
    	transform: translateY(-50%);
	}
	.ip-bg{
		height: 350px;
	}
	#content-sidebar aside, #content-full aside{
		float: left;
	}

	.archive .default_image {
		display: none;
	}
	.fc-photo img {
		position: relative;
	}
	.gw-a > div h3, .gw-b > div h3, .gw-c > div h3 {
		font-size: 16px;
	}
	.bf-box a.rmore {
		bottom: -58px;
	}
	
}
@media only screen and (max-width: 767px){
	
	.gal-frame iframe {
    width: 100%;
    height: 552px;
    overflow: hidden;
}
	.page-id-10169 #content .entry  {
		margin: 0 !important;
		list-style: none;
	}
	.page-id-10169 #content .entry img {
		display: block;
		float: none;
		margin: 0 auto;
	}
	.page-id-10169 #content .entry table {
		width: 100% !important;
	}
}
@media only screen and (max-width: 680px){
	.content .entry-title{
		font-size: 30px;
	}
}
@media only screen and (max-width: 650px) { 
	.bf-box {
		margin: 10px auto;
	}
	.cta-wrap{
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
	}
	.home_widget5{
		text-align: center;
	}
	.cbox {
		margin: 20px auto;
		float: none;
		display: inline-block;
	}
	.gw-a > div h3, .gw-b > div h3, .gw-c > div h3 {
		font-size: 12px;
	}
	.bf-box a.rmore {
		position: relative;
		left: inherit;
		bottom: inherit;
		float: left;
	}
	.ip-container .entry ul {
		margin-left: 0 !important;
		padding-left: 24px;
	}

	.ip-container .entry img {
		display: block;
	    width: 100% !important;
	    max-width: 360px !important;
	    margin: 10px auto !important;
	    float: none !important;
	    padding: 0 !important;
	    height: auto !important;
	}
	#content .alignleft, #content .alignright {
	    float: none;
	    margin: 15px auto 15px;
	    width: 100% !important;
	}
	.page-div-left, .page-div-right {
		width: 100% !important;
		padding-left: 0 !important;
	}
	.page-div-left ul, .page-div-right ul {
		width: 100% !important;
	}
	/*.ip-bg {
		height: auto;
	}*/

	#TB_window{
	
		margin-top: 0 !important;
		/*top: 500px !important;*/
		width: 	100vw !important;
		overflow:auto; 
		-webkit-overflow-scrolling:touch
		overflow-y: scroll;
		position: fixed !important;	
		width: 	385px !important;
	}
	#TB_window #TB_iframeContent{
		height: 90vh !important;
		width: 	100vw !important;
		-webkit-overflow-scrolling:touch
		
		overflow-y: scroll;
		margin-left: 10px;
	}
}

@media only screen and (max-width: 568px){
	.content .entry-title{
		font-size: 25px;
	}
}
@media only screen and (max-width: 460px){
	.content .entry-title{
		font-size: 19px !important;
	}

	#fancybox-overlay{
		/* width: 	175% !important; */
	}


	.arrow-down {
		top: 65% !important;
	}
}

@media (min-device-width:320px) and (max-device-width:768px) {
	
		table.calculator_body.calc_body input.normaltext {
			padding: 7px;
			border-radius: 0px;
			-webkit-border-radius:0; 
		}
		
		input {
			-webkit-appearance: none;
		}
	
}