/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
@media only screen and (max-width: 1366px) {
	#site-header .container {
		max-width: 94.5vw;
	}
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1199px) {
	#site-header .container {
		max-width: 100%;
	}
	#send-message .container {
		width: 100%;
	}
	#nav li a {
		font-size: max(0.875vw, 11px);
	}

	.footernav li {
	    padding: 0 5px;
	}
	.footernav li a {
	    font-size: 12px;
	}
}

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

	.mobile-screen {
		display: block;
	}

	.desktop-screen {
		display: none;
	}

	#site-header {
		/*display: none !important;*/
		border: none;
        top: auto;
        z-index: 3;
        position: relative;
        margin-top: 52px;
        padding: 20px 0;
        background-color: var(--secondary-background-color);
	}
	#site-header .container {
		justify-content: center;
	}
	.site-header-logo {
		margin-right: 0;
	}
	.site-header-logo img {
		max-width: 100%;
		height: auto;
	}
	.site-header-nav {
		display: none;
	}

	.amh-header-buttons.amh-2a .amh-navigation-trigger span,
	.amh-header-buttons.amh-2a .amh-header-right-btn {
		font-family: var(--font-family-default);
		font-size: 16px !important;
	}

	.amh-header-buttons.amh-2a .amh-header-right-btn {
		padding-top: 20px;
	}

	.qsearch-submit {
		margin-top: 20px;
	}

	.qsearch-close {
		display: none;
	}

	#aios-testimonials .aios-testimonials {
		margin: 0 !important;
	}

	#send-message .container {
		max-width: 750px !important;
		width: 100% !important;
	}

	#send-message .container .row {
		flex-direction: column;
	}

	.send-message-title,
	.send-message-form {
		width: 100% !important;
	}

	.send-message-title .section-title {
		margin-bottom: 40px;
	}

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

	.footer-site-logo {
		margin-right: 0;
		margin-bottom: 30px;
	}

	/* 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%;
	}

	#content .aios-communities-metropolitan .aios-communities-metropolitan-item-title .section-title {
		font-size: 26px;
	}

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

    .post-page-communities #content .aios-communities-metropolitan .aios-communities-metropolitan-item-title {
    	padding: 0 15px;
    }
    .post-page-communities #content .aios-communities-metropolitan .aios-communities-metropolitan-item-button {
    	padding-left: 15px;
    }

    #content .archive-subtitle {
    	margin-top: 20px;
    }

}

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

	.ip-banner .container {
		width: 100%;
	}

	.footernav li {
		padding: 7px;
	}
	.post-page-communities #content .aios-communities-metropolitan .aios-communities-metropolitan-item {
		width: 100%;
	}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */
@media only screen and (max-width: 480px) {
	.site-header-logo > div {
		flex-flow: column;
	}
	.site-header-logo .header-broker span {
		margin: 10px 0 0;
	}
	.post-page-communities #content .aios-communities-metropolitan .aios-communities-metropolitan-item-title .section-title {
		font-size: 30px !important;
	}
}