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

@media (min-width: 1600px) {
    /*	#slideshow-container .cycloneslider-template-video .cycloneslider-slides {
	    height: 100vh !important;
	}*/
}

@media (max-width: 1399px) {
    .si-follow-us {
        padding-top: 15px;
        margin-top: 15px;
    }

    .si-contact-row {
        font-size: 0;
        padding: 5px 0;
    }
}

@media (min-width: 1200px) {
    .page-id-7993 #inner-page-wrapper .container {
        width: 1380px;
    }
}

@media print {
    .aios-mobile-header-wrapper,
    div#navigation-wrapper,
    .footer-navigation .menu-new-menu-use-this-container,
    #header-wrapper,
    .col-md-3.f-right {
        display: none !important;
    }

    #inner-page-wrapper {
        padding-top: 0;
    }


}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */

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


    .slide-in-contact-box {
        right: -40%;
        width: 40%;
    }
    .si-follow-us {
        padding-top: 5px;
        margin-top: 5px;
    }
    .si-contact-row {
        padding: 2.5px 0;
    }
    .si-follow-us .social-media {
        margin-top: 5px;
    }
    .si-contact-row .contact-name,
    .si-contact-row .contact-num {
        font-size: 11px;
    }
    .slide-in-contact-box {
        /*padding: 70px 20px 0;*/
    }
    .si-contact-logo {
        padding: 15px 0;
    }

    #navi > li a {
        padding: 0 18px 20px;
    }

    .ip-container #navi > li a {
        padding: 0 14px 20px;
    }

    /*#slideshow-container {
	    display: none;
	}

	#mobile-slideshow-container {
		position: relative;
	    display: block;
	    width: 100%;
	}*/
    #slideshow-container .cycloneslider-template-video .cycloneslider-caption,
    #mobile-slideshow-container .cycloneslider-template-video .cycloneslider-caption {
        max-width: 970px;
    }

    .adv-search-btn a {
        font-size: 11px;
    }

    .agent-testimonials {
        padding: 77px 35px;
    }

    .community-info {
        padding: 0 3%;
    }

    .fp-center-item {
        font-size: 13px;
    }

    .open-house-label {
        font-size: 15px;
    }

    .agent-video {
        margin-top: 7%;
    }

    .agent-video iframe {
        max-height: 310px;
    }

    .video-wrapper {
        /*	    padding-top: 24px;
	    margin-top: 77px;*/
    }

    .video-wrapper iframe {
        /*	    max-height: 310px;*/
    }

    .blog-image {
        min-height: 480px;
    }

    .blog-info {
        width: 80%;
    }

    .blog-content {
        padding-left: 40px;
    }

    .footer-logo span {
        font-size: 25px;
    }

    .social-media a {
        margin: 0 1px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    /* Agents Roster */
    .agents-roster .agents-roster-filter {
        text-align: center;
    }

    .agents-roster .agents-roster-filter:first-child,
    .agents-roster .agents-roster-filter:last-child,
    .agents-roster .agents-roster-filter {
        width: 30%;
        margin-left: 1%;
        margin-right: 1%;
    }

    .agents-roster .agents-roster-agent,
    .agents-roster .agents-roster-agent:first-child,
    .agents-roster .agents-roster-agent:nth-child(10n),
    .agents-roster .agents-roster-agent:nth-child(9n) {
        width: 30%;
        margin-left: 1%;
        margin-right: 1%;
    }

    .agents-roster .agents-roster-table {
        text-align: center;
    }

    .digital-details-wrapper {
        margin-left: 15px;
    }

    .fc-ribbon {
        margin: 0 auto;
        height: 155px;
    }

    .market-report-right li {
        font-size: 14px;
    }

    .footernav li a {
        padding: 0 8px;
    }

    #content .market-report-right ul.marketlist .marketlist-col > li.toggle-town.active ul {
        display: block;
        margin: 0 0 0 -100px;
    }

    .adv-search-btn1 a {
        font-size: 12px;
    }

    .ip-container #navi > li ul li a {
        padding: 12px 14px 16px 14px;
    }
}

@media only screen and (max-width: 1026px) {
	
	#sidebar-insta #sb_instagram .sbi_header_text{
	    float: none;
		text-align: center;
	}
	#sidebar-insta #sb_instagram .sbi_header_text h3{
		float: none;
		margin: 0 !important;
	}
	#sidebar-insta #sb_instagram .sbi_header_text p{
		float: none;
		margin: 0 !important;
	}
	#sidebar-insta #sb_instagram .sbi_header_img{
		float: none;
		margin: 0 !important;
			width: 100%;
		text-align: center;
	}

	#sidebar-insta #sb_instagram .sbi_header_img img{
		float: none;
		margin: 10px auto !important;
	}
	#sidebar-insta #sb_instagram .sb_instagram_header{
		text-align: center;
	}
	#sidebar-insta #sb_instagram .sb_instagram_header a{
		float: none;
    display: inline-block;
	}
    .agent-video iframe {
        margin: 40px auto 0;
    }
    .section-navigation {
        position: fixed;
        font-size: 18px;
        z-index: 10;
        right: 25px;
        top: 35%;
        margin-top: -40px;
        transition: 0.2s all;
        -webkit-transition: 0.2s all;
    }
    /*#slideshow-container{
		display: none;
	}*/
    #slideshow-wrapper {
        height: auto;
    }

    #mobile-slideshow-container {
        display: none;
    }
    #content .sort_agent_wrapper > div {
        width: 50%;
        max-width: 500px;
        display: inline-block;
        margin: 0 0 10px;
        padding: 3px 5px;
        min-width: 25%;
    }
    #content .sort_agent_wrapper > div:first-child {
        margin: 0 0 10px;
    }
    #content .sort_agent_wrapper > div input,
    #content .sort_agent_wrapper > div select {
        width: 100% !important;
    }
    #content #search-by-name {
        width: 25% !important;
    }
    #content #search-by-team {
        width: 23% !important;
    }
    #content .sort_agent:nth-child(4) {
        width: 20% !important;
    }
    #content .sort_agent:nth-child(3) {
        width: 20% !important;
    }
    #content .sort_agent_wrapper {
        margin: 0 71px 25px 0px;
    }
}

@media only screen and (max-width:1024px) {
	.social-media a {		
		width: 26px;
		height: 26px;
		line-height: 26px;
	}
}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */

@media only screen and (max-width: 991px) {
#quick-search-tabs {
    display: none;
}
    .fc-ribbon {
        position: relative;
    }
	
	.amh-header-buttons a:hover, .amh-header-buttons a:focus{
		color:#000;
	}
	
	.fb_iframe_widget iframe{
		position:relative !important;
		margin:20px auto;
	}

    .slide-in-contact-box {
        max-height: 600px;
    }

    .ip-container .slide-in-contact-box {
        position: absolute;
    }

    .section-navigation {
        position: fixed;
        font-size: 18px;
        z-index: 10;
        right: 70px;
        top: 50%;
        margin-top: -40px;
        transition: 0.2s all;
        -webkit-transition: 0.2s all;
    }

    #quick-search-tabs,
    #tab-content-wrapper {
        /*display: none;*/
    }

    .featured-communities {
        text-align: center;
    }

    .amh-header-buttons.amh-1a .amh-center {
        background: url(images/site-icon.png) center no-repeat;
        background-size: auto 34px;
    }

    #content-sidebar,
    #content-full,
    #content-sidebar #content,
    #content-full #content {
        padding: 0px;
    }

    .single-aios_agent article#content {
        padding: 0 1% !important;
    }

    .single-aios_agent .agent-profile-contacts {
        width: 63% !important;
    }
    .page-id-15020 .popup-form-main #wpcf7-f15861-p15020-o1 form .cagent span.wpcf7-list-item {
        width: 41%;
        display: inline-block;
        font-size: 12px;
    }
    .page-id-15020 .popup-form-main #wpcf7-f15861-p15020-o1 form .cagent span.wpcf7-list-item:nth-child(57) {
        width: 46%;
    }
    .market-report-left .market-desc {
        line-height: 25px !important;
    }
    .home .featured-communities .featured-communities-cell {
        width: 85%;
    }
    .ip-container .featured-communities {
        text-align: center;
    }
    .ip-container .featured-communities .featured-communities-cell {
        /*width: 290px;*/
        width: 85%
    }


    .header-right .social-media {
        text-align: center;
    }
    .ip-resources-btn {
        display: inline-block;
        float: none;
        margin: 0 0 0 15px;
    }

    .moving-buy,
    .moving-sell {
        display: none !important;
    }

    .page-id-7187 .moving-buy {
        display: inline-block !important;
    }

    .page-id-7242 .moving-buy {
        display: inline-block !important;
    }

    .slide-in-contact-box {
        right: -50%;
        width: 50%;
    }
    .si-contact-row {
        padding: 5px 0;
    }
    .si-follow-us {
        padding-top: 15px;
        margin-top: 15px;
    }
    .slide-in-contact-box {
        bottom: 0;
    }

    /* The following are used on inner pages. Please edit carefully. */
    .float-text {
        position: relative;
        top: inherit;
        right: inherit !important;
        transform: inherit;
    }

    #quick-search-tabs ul li {
        margin-right: 1px;
        max-width: 158px;
        overflow: hidden;
        white-space: nowrap;
    }

    .aios-mobile-header-wrapper {
        z-index: 1031;
    }

    #content .sort_agent_wrapper > div {
        width: 50%;
        max-width: 500px;
        display: inline-block;
        margin: 0 0 10px;
        padding: 3px 5px;
        min-width: 250px;
    }

    #content .sort_agent_wrapper > div:first-child {
        margin: 0 0 10px;
    }

    #content .sort_agent select,
    #content .sort_agent input {
        width: 100% !important;
        max-width: 400px;
    }

    #buyerspage ul li {
        width: 100%;
    }

    #buyerspage ul li .buyerscontimg {
        text-align: center;
    }

    #buyerspage .buyerspageleft {
        padding: 0;
        width: 100%;
    }

    #market_updates .market-chooses ul li {
        width: 50%;
        margin: 0 0 0 0;
        border-bottom: solid 1px #c2c2c2;
    }

    #inner-page-wrapper {
        padding-top: 0;
    }

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

    #header-wrapper {
        position: relative;
        background-color: #000;
        margin-top: 52px;
        padding: 17px 0 30px;
    }

    .ip-container #header-wrapper {
        background: #000;
    }

    .header-logo {
        text-align: center;
    }

    .header-logo > div {
        display: block;
    }

    .header-logo .partner-logo {
        display: none;
    }

    .header-right {
        text-align: center;
        padding-top: 7px;
    }

    .header-right .social-media {
        display: none;
    }

    .header-right .call-us-btn {
        background: #979797;
    }

    #navigation-wrapper {
        display: none;
    }

    .section-navigation {
        right: 5%;
        top: 35%;
    }

    #slideshow-wrapper,
    #slideshow-container {
        height: auto;
    }

    #slideshow-container .cycloneslider-template-video .cycloneslider-caption,
    #mobile-slideshow-container .cycloneslider-template-video .cycloneslider-caption {
        max-width: 750px;
    }

    #slideshow-container .cycloneslider-template-video .cycloneslider-caption:after,
    #mobile-slideshow-container .cycloneslider-template-video .cycloneslider-caption:after {
        left: -200px;
        top: -65px;
        background-size: 100% 100%;
    }

    #quick-search-tabs {
        position: relative;
        margin-top: -41px;
    }

    #tab-content-wrapper {
        background-color: rgba(0, 0, 0, .8);
    }

    .quick-search-wrapper > div {
        display: block;
    }

    .qs-title {
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }

    .qs-inputs {
        width: 100%;
    }

    .qs-inputs > div {
        margin-bottom: 3px;
    }

    .qs-inputs .qs-city {
        width: 100%;
        display: block;
    }

    .select-field {
        width: 50%;
    }

    .qs-submit-btn {
        width: 100%;
    }

    .qs-submit-btn > div {
        display: block;
        padding: 0 2px; 
        margin-left: 0;
        margin-bottom: 6px;
    }

    .search-btn {
        width: 100%;
        padding-left: 0;
        margin-top: 4px;
    }

    .adv-search-btn {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .adv-search-btn a {
        font-size: 12px;
    }

    .adv-search-btn1 {
        width: 100%;
        text-align: center;
    }

    .adv-search-btn1 a {
        font-size: 12px;
        margin-top: 7px;
    }

    .adv-search-btn1:before {
        display: none;
    }

    #market-reports-wrapper {
        margin-top: 0;
        text-align: center;
    }

    .market-links {
        padding-left: 0px;
    }

    .market-links a {
        margin: 0 auto;
        text-align: left;
    }

    #market-reports,
    #market-videos {
        padding-top: 20px;
        text-align: center;
    }

    .reports-info p {
        padding: 0;
    }

    .video-holder .vid-placeholder {
        right: 0;
        height: 100%;
    }

    #agent-wrapper {
        padding: 50px 0;
        height: auto;
    }

    .agent-video {
        text-align: center;
        margin-top: 0px;
        max-height: 370px;
    }

    .agent-testimonials {
        padding: 30px 0 0;
    }

    .agent-testimonials p {
        text-align: justify;
    }

    .agent-video iframe {
        max-width: 558px;
        right: 0;
    }

    .video-wrapper {
        /*				padding-bottom: 42.25%;
				margin-top: 0px;*/
        height: 470px;
    }

    .video-wrapper iframe {
        /*			    max-width: 555px;
			    margin: auto;
			    right: 0;*/
    }

    #featured-properties-container,
    #featured-properties-mobile-container {
        padding-bottom: 44px;
    }

    .featprop-col {
        width: 100%;
    }

    .fp-item-wrap {
        max-width: 524px;
        margin: 0 auto;
    }

    .blog-image {
        width: 100%;
        display: block;
        background-position: top center;
    }

    .blog-content {
        width: 100%;
        padding: 60px;
    }

    .blog-info {
        margin: 0 auto;
        width: 100%;
    }

    .community-address > div {
        width: 25%;
    }

    .comm-address {
        padding: 0;
    }

    .translate-btn {
        margin: 30px auto;
    }

    #footer-wrapper {
        text-align: center;
    }

    .copyright {
        display: block;
        margin-right: 0;
    }

    .footer-links {
        display: block;
    }

    .footer-logo {
        padding-top: 10px;
    }

    .single-aios_agent .agent-holder .attachment-agent-image,
    .single-aios_agent .agent-holder .agent-contacts {
        float: none;
        width: 100%;
        margin: 0 auto;
        max-width: 300px;
    }

    .f-right {
        text-align: center;
    }

    .christies-ip-banner {
        min-height: 400px;
    }

    .christies-banner-tag {
        padding-top: 160px;
    }

    .christies-banner-tag span {
        font-size: 40px;
    }

    .christies-01 {
        padding-top: 0;
    }

    .christies-01-content p:nth-child(2) {
        padding-left: 0;
        padding-right: 0;
    }

    .page-id-78 #content-full,
    .page-id-78 #content-full #content {
        padding: 0;
    }

    .map-contents {
        padding-top: 0;
        padding-bottom: 50px;
    }

    .digital-ip-banner {
        min-height: 400px;
    }

    .digital-banner-tag {
        padding-top: 170px;
    }

    .digital-banner-tag span {
        font-size: 40px;
    }

    .digital-top {
        padding: 55px 0 45px;
    }

    .digital-details-wrapper {
        margin-left: 30px;
    }

    .digital-video-box {
        margin-bottom: 30px;
    }

    .digital-video-box iframe {
        width: 100%;
        height: 358px;
    }

    .digital-subscribe span.wpcf7-form-control.wpcf7-checkbox.wpcf7-validates-as-required .wpcf7-list-item {
        display: block;
    }

    .lev-ip-banner {
        min-height: 400px;
    }

    .lev-banner-tag {
        padding-top: 160px;
    }

    .lev-banner-tag span {
        font-size: 40px;
    }

    .lev-01 {
        padding-top: 0;
    }

    .lev-01-content p:nth-child(2) {
        padding-left: 0;
        padding-right: 0;
    }

    .page-id-15013 #content-full,
    .page-id-15013 #content-full #content {
        padding: 0;
    }

    .market-report-left,
    .market-report-right {
        float: none;
        width: 100%;
    }

    #featured-properties-wrapper {
        display: none;
    }

    #featured-properties-mobile-wrapper {
        display: block;
    }

    #featured-properties-mobile-wrapper .fp-item-wrap {
        min-height: 340px;
    }

    #quick-search-tabs ul li {
        max-width: 100%;
    }

    #quick-search-tabs ul li a {
        padding: 10px 7px;
        font-size: 12px;
    }

    #content .entry-title.ip-resources-title {
        display: block;
    }
    .ip-resources-btn {
        /* max-width: 290px; */
        min-width: auto;
        margin: auto;
    }

    .market-report-wrapper {
        max-width: 100%;
    }

    .town-profiles-tag span {
        display: none;
    }

    .page-id-15020 #inner-page-wrapper {
        padding-top: 0;
    }

    .market-desc br {
        display: none;
    }

    .market-report-right li:last-child {
        border-bottom: solid 1px #676767;
    }

    #content .market-report-right ul.marketlist .marketlist-col > li.toggle-town.active ul {
        margin: 0;
        text-align: center;
    }

    /*** video wall
    .video-wall-item,
    .video-wall-item_width2,
    .video-wall-item_width3,
    .video-wall-item_width4,
    .video-wall-item_width5,
    .video-wall-item_width6,
    .video-wall-item_width7,
    .video-wall-item_width8,
    .video-wall-item_width9 {
        width: 100%;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    .video-wall-player {
        width: 100%;
        position: relative;
        float: left;
        top: 0 !important;
    }

    .video-wall-item.video-wall-player {
        height: 0;
    }

    .video-wall-item.video-player-visible {
        height: auto;
        position: relative !important;
        margin: 0 auto 30px;
        float: none;
        transform: translate3d(0, 0, 0) !important;
        padding: 0 7px;
        background: transparent;
        width: 100%;
    } 

    .video-wall-item.video-player-visible .video-wall-player-inner {
        margin: 0;
    }

    .video-wall-item a:hover .video-wall-desc-watch {
        max-height: 0;
    }***/
    .video-wall-title {
        font-size: 10px;
    }

    .ai-default-cf7wrap input[type="text"],
    .ai-default-cf7wrap input[type="email"],
    .ai-default-cf7wrap input[type="tel"],
    .ai-default-cf7wrap select,
    .ai-default-cf7wrap textarea {
        width: 100% !important;
        max-width: none !important;
    }
    
    .post-5074 .agents-roster {
        text-align: center;
    }
    
    .post-5074 .agent-holder-all {
        float: none;
        display: inline-block;
    }
    
    #content .sort_agent_wrapper {
        text-align: left;
    }
    
    .fb_iframe_widget {
        display: block !important;
        width: 100%;
        max-width: 500px !important;
        margin: 0 auto;
        overflow-y: scroll;
		text-align:center;
		height:auto;
    }
    
    #sidebar-twitter {
        display: block;
        margin: 0 auto;
        /*width: 550px;*/
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    #sidebar-twitter iframe {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .fb_iframe_widget_fluid span {
        width: 100% !important;
    }

    #sellers-page ul li, #sellers-page .sellerspageleft {
        width: 100%;
    }

    .partner-logos {
        padding-top: 0;
    }
}

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


    .agent-profile-contact-sm {
        width: 65%;
    }

    .custom-3-column,
    .custom-3-column .agent-photo,
    .custom-3-column .contact-info {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .custom-3-column img.fairfield-county-bank {
        float: inherit !important;
    }

    .custom-3-column .prime-lending {
        float: inherit !important;
    }

    .custom-3-column .row {
        border-bottom: 1px solid #d8d8d8;
    }

    .custom-3-column .logo {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .agent-video {
        max-height: 404px;
    }
}

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) | Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */

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

    .safari #mobile-slideshow-container {
        display: block;
    }
    .safari #slideshow-container {
        display: none;
    }

    .single-aios_agent .agent-profile-contacts {
        width: 100% !important;
    }

    .slide-in-contact-box {
        right: -100%;
        width: 100%;
    }

    .agent-video iframe {
        height: 300px;
    }

    .video-holder > div {
        height: 100% !important;
    }

    .video-wrapper iframe {
        min-height: 385px;
    }

    .video-holder iframe {
        width: 100%;
        height: 200px;
    }

    /*** video wall ***/
    .video-wall-item,
    .video-wall-item_width2,
    .video-wall-item_width3,
    .video-wall-item_width4,
    .video-wall-item_width5,
    .video-wall-item_width6,
    .video-wall-item_width7,
    .video-wall-item_width8,
    .video-wall-item_width9 {
        width: 100%;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    .video-wall-player {
        width: 100%;
        position: relative;
        float: left;
        top: 0 !important;
    }

    .video-wall-item.video-wall-player {
        height: 0;
    }

    .video-wall-item.video-player-visible {
        height: auto;
        position: relative !important;
        margin: 0 auto 30px;
        float: none;
        transform: translate3d(0, 0, 0) !important;
        padding: 0 7px;
        background: transparent;
        width: 100%;
    } 

    .video-wall-item.video-player-visible .video-wall-player-inner {
        margin: 0;
    }

    .video-wall-item a:hover .video-wall-desc-watch {
        max-height: 0;
    }


    .blog-image {
        min-height: 350px;
    }

    .community-address {
        text-align: center;
    }

    .community-address > div {
        width: 100%;
    }

    .comm-address {
        width: 100%;
    }

    /* Agents Roster */
    .agents-roster .agents-roster-filter {
        text-align: center;
    }

    .agents-roster .agents-roster-filter:first-child,
    .agents-roster .agents-roster-filter:last-child,
    .agents-roster .agents-roster-filter {
        width: 96%;
        margin-left: 1%;
        margin-right: 1%;
    }

    .agents-roster .agents-roster-agent,
    .agents-roster .agents-roster-agent:first-child,
    .agents-roster .agents-roster-agent:nth-child(10n),
    .agents-roster .agents-roster-agent:nth-child(9n) {
        display: block;
        width: 100%;
        max-width: 200px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .agents-roster .agents-roster-table {
        text-align: center;
    }

    .agent-video iframe {
        max-height: 308px;
    }

    .christies-ip-banner {
        min-height: 250px;
    }

    .christies-banner-tag {
        padding-top: 100px;
    }

    .christies-banner-tag span {
        font-size: 30px;
    }

    .christies-04,
    .christies-05,
    .christies-06 {
        padding-top: 50px;
    }

    .christies-04-content p,
    .christies-05-content p,
    .christies-06-content p {
        padding-top: 15px;
    }

    .digital-ip-banner {
        min-height: 250px;
    }

    .digital-banner-tag {
        padding-top: 100px;
    }

    .digital-banner-tag span {
        font-size: 30px;
    }

    .ihf-market-report .ihf-market-report-header-toggle .btn-group.text-right {
        float: right;
    }
}

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



    .single-aios_agent .agent-profile-contacts {
        width: 100% !important;
    }
    #content .the-office .the-place {
        width: 50%;
        margin: 0 0 20px;
    }
    #buyerspage ul li > div,
    #buyerspage ul li .buyerscontimg,
    #buyerspage ul li .buyerscont, 
    #sellers-page ul li > div,
    #sellers-page ul li .sellerscontimg,
    #sellers-page ul li .sellerscont {
        width: 100%;
    }

    #buyerspage ul li .buyerscontimg img, #sellers-page ul li .sellerscontimg img {
        max-width: 350px;

    }
    .video-wall-title {
        font-size: 8px;
        padding: 10px 5px;
    }
}

@media only screen and (max-width: 690px) {
    #quick-search-tabs ul li {
        max-width: 100%;
    }

    .qs-tabs li:last-child {
        /*position: absolute;
        top: -45px;
        left: 13px;*/
    }



}


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

    #quick-search-tabs ul li a {
        padding: 10px 4px;
        font-size: 11px;
    }

    .featured-communities {
        text-align: center;
        margin: 0 auto;
    }

    /*.featured-communities .community {
		width: 50%;
	}*/
    .section-navigation {
        top: 50%;
    }



}

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



    .single-aios_agent .agent-profile-contacts {
        width: 100% !important;
    }

    .featured-communities .community {
        display: block;
        width: 100%;
    }

    #content .the-office .the-place {
        width: 100%;
        margin: 0 0 20px;
    }

    #content .the-office .the-place .the-image {
        width: 100%;
        text-align: center;
    }

    #content .the-office .the-place .the-image img {
        float: none;
        width: 100%;
        max-width: 300px;
        display: inline-block;
    }

    #content .the-office .the-title {
        text-align: center;
    }

    #content .the-office .the-place .the-info {
        width: 100%;
        padding: 0 10px;
        text-align: center;
    }

    #market_updates .market-chooses ul li.choose-border,
    #market_updates .market-chooses ul li {
        border-bottom: solid 0px #c2c2c2;
    }

    #market_updates .market-chooses ul li {
        width: 100%;
        margin: 0 0 0 0;
    }

    .digital-img {
        width: 100%;
        display: block;
        padding-bottom: 15px;
    }

    .digital-details-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .marketlist-col {
        width: 100% !important;
        padding: 0 !important;
    }

    .market-report-wrapper {
        text-align: center;
    }

    .popup-label {
        font-size: 17px;
    }

     #content .town-layout .tcf-left, #content .town-layout .tcf-middle, #content .town-layout .tcf-right {
        width: 100%;
        text-align: center;
        display: block;
        margin: 10px 0;
    }

    .digital-entry-wrapper {
        text-align: center;
    }

    .digital-entry-wrapper .digital-more {
        margin: 0 auto;
    }


}

@media only screen and (max-width: 560px) {
    .section-navigation ul li a {
        width: 9px;
        height: 9px;
        margin: 6px 0;
    }
    .section-navigation ul li a:after {
        width: 14px;
        height: 14px;
    }

    .single-aios_agent .agent-profile-contacts {
        width: 100% !important;
    }
    .christies-video-wrapper iframe {
        height: 280px;
    }

    .digital-video-box iframe {
        height: 280px;
    }

    .leverage-iframe iframe {
        min-height: 400px;
    }

    .slide-in-contact-box {
        min-height: 550px;
        bottom: inherit;
        top: 0;
        padding: 20px 20px 0;
    }

}


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



    .single-aios_agent .agent-profile-contacts {
        width: 100% !important;
    }

    #slideshow-container .cycloneslider-template-video .cycloneslider-caption-title,
    #mobile-slideshow-container .cycloneslider-template-video .cycloneslider-caption-title {
        font: 18px/20px "Playfair Display";
    }

    .market-links a:after {
        display: none;
    }

    .agent-video iframe {
        height: 210px;
        margin-top: 0;
    }

    /* Custom 3 column */
    #quick-search-tabs ul li a {
        /* padding: 10px 8px;
	    font-size: 12px; */
        padding: 10px 2px;
        font-size: 5px;
    }

    /*.qs-tabs li:last-child {
		    top: -37px;
		    left: -2px;
		}*/
    .quick-search-wrapper > div.tab-4-fields > input {
        width: 100%;
        margin: 0 0 3px;
    }

    #tab-content-wrapper,
    #quick-search-tabs .nav {
        position: relative;
        top: 4px;
    }

    .custom-3-column .home-finance-section {
        text-align: center !important;
    }
    #content .post .custom-3-column img {
        display: inline-block;
        margin: 0 auto !important;
        float: none !important;
    }
    .custom-3-column .finance-right {
        width: 100% !important;
        text-align: justify !important;
    }

    .agent-video {
        max-height: 310px;
    }

    .video-wall-items {
        margin: 0 -1.5px;
    }

    .video-wall-item a {
        margin: 0 3px;
    }

    .video-wall-title {
        font-size: 5px;
    }

}

@media only screen and (max-width: 400px) {
    .christies-banner-tag {
        padding-top: 60px;
    }

    .christies-01-title span,
    .christies-03-title span,
    .christies-04-title span,
    .christies-05-title span,
    .christies-06-title span {
        font-size: 24px;
    }

    .christies-04,
    .christies-05,
    .christies-06 {
        padding-top: 30px;
    }

    .digital-img {
        text-align: center;
    }



}

@media only screen and (max-width: 360px) {
    .agent-video iframe {
        max-height: 194px;
    }

    .agent-video {
        max-height: 196px;
    }

    .video-wrapper iframe {
        /*	    max-width: 293px;*/
    }

    .digital-video-box iframe {
        height: 167px;
    }
    .leverage-iframe iframe {
        min-height: 270px;
    }
}

@media only screen and (max-width: 320px) {
    .agent-video iframe {
        max-height: 171px;
    }

    .video-wrapper iframe {
        /* max-width: 268px;*/
    }

    .christies-video-wrapper iframe {
        height: 164px;
    }

    .digital-video-box iframe {
        height: 164px;
    }
}

/* IE10+ CSS styles go here */

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    .market-links .select-town::after {
        right: 39px;
    }

    .select-town > ul > li.market-rep,
    .select-town > ul > li.market-vid {
        text-indent: 37px;
    }

    .select-town ul.towns li {
        text-indent: 0px;
    }

    #navi > li a {
        padding: 0 30px 20px;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
    .slide-in-contact-box {
        height: 100%;
    }

    .ip-container .si-contact-row {
        padding: 5px 0;
    }
}
