/* ----------------------  Media queries ----------------- */
@media screen and (max-width: 1040px) {
	#container, #containerSingle {
	width: 94%;
	margin: 0 3%;
	}
	#inHeader, #inAccess, #above-footer-wrapper, #in-footer {
		width: 95%;
		padding: 0;
	}
	#content-wrapper-home-right {
		float: right;
		min-height: 400px;
	}
	#sidebar {
		margin: 75px 0;
		padding: 0;
		width: 30%;
	}
	.in-above-footer {
		width: 20%;
	}
	#content {
		margin: 40px 15px;
		padding: 0;
		width: 63%;
	}
	#content-single {
	width: 60%;
	}
	#inSecondContentLeft, #inSecondContentRight, #inSecondContentMiddle {
		width: 30%;
	}
	#access a {
	font-size: 12px;
	letter-spacing: 1.0px;
	}
	.firstContentCrop {
	height: 130px;
	}
}
@media screen and (max-width: 767px) {
	.mobile-login {
		display: block;
	}
	#searchform, #inHeader {
		display: none;
	}
	#content-box-single {
		background: #FFFFFF;
	}
	#sidebar, #content, .in-above-footer {
		clear: both;
		float: none;
		margin: 40px 16px;
		width: 90%;
	}
	#content-single {
		clear: both;
		float: none;
		width: 90%;
	}
	#sidebar {
	background: #333333;
	width: 96%;
	margin: 10px 0 0 0;
	padding: 25px 2% 76px 2%;
	float: none;
	}
	#sidebar .widget h3 {
	padding: 0 0 0 17px;
	margin: 15px 0 10px 0;
	}
	#menuwrappermobile {
    	display: block;
	}
	#inHeader img {
		display: none;
	    width: 370px;
	}
    .inSecondContent, .inThirdContent  {
        clear: both;
        float: none;
        margin: 0 auto;
        min-height: auto;
        padding: 10px 0;
        width: 95%;
    }
    .inSecondContent p {
	min-height: inherit;
	}
	.firstContentLeft {
	    width: 100%;
	}
	#firstContent .slideElemText {
		width: 100%;
	}
	.firstContentRight {
	width: 100%;
	height: auto;
	padding: 19px 0;
	}
	#inFourthContentRight, #inFourthContentLeft {
		width: 100%;
		float: none;
	}
	#inAccess {
		display: none;
	}
	#socal2000 {
		display: none;
	}
	.firstContentCrop {
	height: 200px;
	}
}
@media screen and (max-width: 480px) {
	#firstContent #slideshow {
	    height: 250px;
	}
	#firstContent .slideElemImage {
	    height: 255px;
	}
	#firstContent .slideElemText {
	    top: 183px;
	}
	#inHeader img {
	    width: 300px;
	}
	#mobileMenu {
		display:block;
	}
    #tabcontent {
        float: none;
        margin: 16px auto;
        width: 86%;
    }
	.entry img {
		height: auto;
		width: 100%;
		float: none;
	}
	.wp-caption {
	    width: 100% !important;
	}
	.entry .slideElemImageWrapper {
	    overflow: hidden;
	    height: auto;
	}
	#moreReferences, #firstReference {
	float: none;
	width: 100%;
	}
}