
/* Media Queries */ 
@media only screen and (max-width: 1060px) {
	nav ul {
		margin:0;
	}

}


/* Smaller than standard 1150*/
@media only screen and (max-width: 1150px) {
	.blog-header-image { }
	#container {width: 860px;}
	.container .one-third.column { width: 100%; border-top: dotted 1px #7d8a8a; padding: 20px 0 0 57px;}
	.single .two-thirds.column, .blog .two-thirds.column, .single .container .fourteen.columns {border-right: none;}
	.single .container .fourteen.columns {width: none;}
}
@media only screen and (min-width: 1150px) {
	.single .container .fourteen.columns {width: 724px;}
}


/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {

	#main {
		top: 67px; /* header height */
	}
	.modern-mobile #main {
		margin-top: 67px;
	}
	nav ul {
		height: 40px;
		margin-top: 20px;
		margin-left:3em;
	}
	nav li a,
	nav li a:visited,
	nav li a:focus {
		display: inline-block;
		width: auto;
		/*padding: 23px 15px 0 15px;		*/
	}
	nav li a span {
		display: none;
	}
	header h1,
	header h1 a,
	header h1.logo a img {
	    max-height: 60px;
	    max-width: 150px;
	    position: absolute;
	    left: 100px;
	    top: 0;
	}
	header h1.logo {
		margin-top: -5px;
	}

}


/* Tablet Portrait size to standard 960 (devices and browsers) 
@media only screen and (min-width: 861px) and (max-width: 959px) {

	header h1,
	header h1 a,
	header h1.logo a img {
	    max-height: 60px;
	    max-width: 150px;
	    position: absolute;
	    left: 100px;
	    top: 5px;
		background-color: red;
	}

}

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

	nav ul {
		margin:0;
	}
	
	header h1,
	header h1 a,
	header h1.logo a img {
	    max-height: 60px;
	    max-width: 140px;
	    position: absolute;
	    right: 2px;
	    top: 5px;
	}
	
	nav a, nav a:visited, nav a:focus {
		margin-left:10px;
		margin-right:10px;
	}
	
	nav { font-size: 10pt }

}
*/


/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {

	
	/* Fix for skeleton when a column have both alpha and omega classes */
	.column.alpha.omega,
	.columns.alpha.omega {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	/* Helper classes */
	.hide-for-tables, /* misspelled, kept for compatibility */
	.hide-for-tablets,
	.hide-for-mobile { /* since added ".hide-for-mobileS" (which doesn't hide for tablets), keeping this version for compatibility */
		display: none;
	}
	.tablets-only {
		display: block;
	}

}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {

	header h1,
	header h1 a,
	header h1.logo a img {
	    max-height: 60px;
	    max-width: 120px;
	    position: absolute;
	    left: 80px;
	    top: -3px;
	}
	
	nav li a,
	nav li a:visited,
	nav li a:focus {
		padding-top: 54px;
	}
	nav ul {
		margin-top: 4px;
		margin-left:0;
	}


	.container .column.box,
	.container .columns.box,
	.container .box .column,
	.container .box .columns {
		width: 280px;
	}
	.box.featured {
		margin-top: 10px;
		margin-bottom: 10px;
	}
	.container .row.box {
		padding: 10px;
	}
	
	header h1.logo {
		margin-top: 5px; /* Header's height is 60px in tablet mode and logo (mobile version) is expected to be 50px so we center it vertically. */
	}

	label,
	legend {
		text-align: left;
		padding: 0 0 10px 5px;
	}
	label span,
	legend span { 
		display: inline;
		margin-left: 10px;
	}

	/* Helper classes */
	.hide-for-mobiles {
		display: none;
	}
	.mobiles-only {
		display: block;
	}

	.single .two-thirds.column, .blog .two-thirds.column {width: 100%;}
}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
	
	.container .one.column,
	.container .two.columns,
	.container .three.columns,
	.container .four.columns,
	.container .five.columns,
	.container .six.columns,
	.container .seven.columns,
	.container .eight.columns,
	.container .nine.columns,
	.container .ten.columns,
	.container .eleven.columns,
	.container .twelve.columns,
	.container .thirteen.columns,
	.container .fourteen.columns,
	.container .fifteen.columns,
	.container .sixteen.columns,
	.container .one-third.column,
	.container .two-thirds.column { width: 600px; }
	
	.container { width: 600px; }

	.container .column.box,
	.container .columns.box,
	.container .box .column,
	.container .box .columns {
		width: 600px;
	}
}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 599px) {

/*
	nav li a,
	nav li a:visited,
	nav li a:focus {
		padding: 23px 10px 0 10px;		
	}
*/
	.container .column.box,
	.container .columns.box,
	.container .box .column,
	.container .box .columns {
		width: 400px;
	}
	
	nav { font-size: 10pt; }
	
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {

	#main {
		top: 57px;  header height (including top border) 
	}
	.modern-mobile #main {
		margin-top: 57px;
	}
	
	nav li a,
	nav li a:visited,
	nav li a:focus {
		padding: 17px 2px 0 2px;		
	}
	nav ul.nav {
		height: 30px;
		margin: 0;
	}

	nav {font-size: 9pt; margin-top: 36px;}

	header h1.logo {
		margin-top: 0; /* Remove previously added margin as now the header is 50px */
	}

}

