@media only screen and (max-width: 807px) {
	#content-wrapper.row {
		min-width: 0;
	}
}

@media only screen and (max-width: 767px) {
	#top-nav ul.projects li.toggle-projects {
		display: none;
	}

	.content-full.full-width #content,
	.content-right #content,
	.content-left #content {
		padding-left: 15px;
		padding-right: 15px;
	}
	footer p.copyright,
	footer ul.footer-site-links {
		width: 100%;
		text-align: center;
		margin: 0 0 10px 0;
	}
}

@media only screen and (max-width: 700px) {
	#top-nav ul.projects {
		display: none;
	}

	#top-nav nav ul.links li {
		font-size: 12px;
	}

	#logo-events {
		padding-top: 20px;
		padding-bottom: 10px;
	}

	#logo-events aside {
		display: inline-block;
		position: relative;
		left: 50%;
		margin-left: -200px;
		float: none;
		padding: 10px 0;
	}

	#logo-events h2.logo {
		float: none;
		margin-left: auto;
		margin-right: auto;
	}

	nav#main {
		background-color: rgba(0, 0, 0, 0.0);
		border-radius: 10px 10px 0 0;
		border-right: none;
		border-left: none;
		border-top: none;
		box-shadow: none;
		padding-top: 10px;
	}

	nav#main .searchform {
		display: block;
		float: none;
		width: 100%;
		margin: 15px auto;
		clear:both;
	}

	nav#main ul{
		width: auto !important;
		text-align: left !important;
		float: none;
		margin: 0;
		padding: 0;
	}

	nav#main ul li, nav#main ul li a {
		display: block;
		text-align: left !important;
		float: left;
		margin-right: 0;
		padding: 0 4px 4px 0;
	}


	nav#main li a:hover,
	nav#main li.current a {
		background: none;
		box-shadow: none;
		border-radius: 4px;
		border: 1px solid rgba(0,0,0,0.0);
	}

	nav#main li a {
		font-size: 14px;
	}

	footer .books li {
		clear: both;
		margin-bottom: 10px;
		float: none;
		margin-left: auto !important;
		margin-right: auto;
		text-align: center;
	}

	footer .books li span {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
}

@media only screen and (max-width: 480px) {
	#pageTitle { 
		display:none;
	}

	nav#main {
		margin-top: 15px;
		padding-top: 0;
	}

	nav#main .searchform {
		display: block;
		float: none;
		width: 100%;
		margin: 15px auto;
	}

	nav#main ul li, nav#main ul li a {
		float: none;
		padding: 6px 0 6px 8px;
	}

	.constrain,
	#container {
		padding-left: 10px;
		padding-right: 10px;
	}

	footer .footer-icon-links li a:before {
		display: none;
	}

	footer .footer-icon-links li:first-child {
		margin-left: 0;
	}

	footer .download > span {
		white-space: normal;
	}
}

@media only screen and (-webkit-device-pixel-ratio: 2){
	.jquery h2.logo a {
		background: url(../images/logo-jquery@2x.png) no-repeat;
		background-size: 243px 66px;
	}

	.jquery-ui h2.logo a {
		background: url(../images/logo-jquery-ui@2x.png) no-repeat;
		background-size: 253px 66px;
	}

	.jquery-mobile h2.logo a {
		background: url(../images/logo-jquery-mobile@2x.png) no-repeat;
		background-size: 268px 66px;
	}

	.sizzlejs h2.logo a {
		background: url(../images/logo-sizzle@2x.png) no-repeat;
		background-size: 243px 66px;
	}

	.qunitjs h2.logo a {
		background: url(../images/logo-qunit@2x.png) no-repeat;
		background-size: 243px 66px;
	}

	.jquery-foundation h2.logo a {
		background: url(../images/logo-jquery-foundation@2x.png) no-repeat;
		background-size: 243px 66px;
	}

        .jquery-events.jquery-foundation h2.logo a {
		background: url(../images/logo-jquery-events@2x.png) no-repeat;
		background-size: 243px 66px;
	}
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
	   only screen and (min-resolution: 144dpi) {

}

@media print {
	* {
		background: transparent !important;
		color: #000 !important; /* Black prints faster: h5bp.com/s */
		box-shadow:none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	/*
	 * Don't show links for images, or javascript/internal links
	 */

	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content: "";
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group; /* h5bp.com/t */
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	@page {
		margin: 0.5cm;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}

/* Mobile Grid and Overrides ---------------------- */
@media only screen and (max-width: 767px) {
	.row { width: auto; min-width: 0; margin-left: 0 !important; margin-right: 0 !important; }
	.column, .columns { width: auto !important; float: none; padding-left: 0 !important; padding-right: 0 !important;
	}
	.column:last-child, .columns:last-child { float: none; }
	[class*="column"] + [class*="column"]:last-child { float: none; }
	.column:before, .columns:before, .column:after, .columns:after { content: ""; display: table; }
	.column:after, .columns:after { clear: both; }
	.offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten { margin-left: 0 !important; }
	.push-two, .push-three, .push-four, .push-five, .push-six, .push-seven, .push-eight, .push-nine, .push-ten { left: auto; }
	.pull-two, .pull-three, .pull-four, .pull-five, .pull-six, .pull-seven, .pull-eight, .pull-nine, .pull-ten { right: auto; }
	/* Mobile 4-column Grid */
	.row .mobile-one { width: 25% !important; float: left; padding: 0 25px; }
	.row .mobile-one:last-child { float: right; }
	.row .mobile-one.end { float: left; }
	.row.collapse .mobile-one { padding: 0; }
	.row .mobile-two { width: 50% !important; float: left; padding: 0 25px; }
	.row .mobile-two:last-child { float: right; }
	.row .mobile-two.end { float: left; }
	.row.collapse .mobile-two { padding: 0; }
	.row .mobile-three { width: 75% !important; float: left; padding: 0 25px; }
	.row .mobile-three:last-child { float: right; }
	.row .mobile-three.end { float: left; }
	.row.collapse .mobile-three { padding: 0; }
	.row .mobile-four { width: 100% !important; float: left; padding: 0 25px; }
	.row .mobile-four:last-child { float: right; }
	.row .mobile-four.end { float: left; }
	.row.collapse .mobile-four { padding: 0; }
	.push-one-mobile { left: 25%; }
	.pull-one-mobile { right: 25%; }
	.push-two-mobile { left: 50%; }
	.pull-two-mobile { right: 50%; }
	.push-three-mobile { left: 75%; }
	.pull-three-mobile { right: 75%; }
}

/* Mobile Block Grids */
@media only screen and (max-width: 767px) {
	.block-grid.mobile > li { float: none !important; width: 100% !important; margin-left: 0 !important; }
	.block-grid > li { clear: none !important; }
	.block-grid.mobile-two-up > li { width: 50% !important; }
	.block-grid.mobile-two-up > li:nth-child(2n+1) { clear: both !important; }
	.block-grid.mobile-three-up > li { width: 33.33% !important; }
	.block-grid.mobile-three-up > li:nth-child(3n+1) { clear: both !important; }
	.block-grid.mobile-four-up > li { width: 25% !important; }
	.block-grid.mobile-four-up > li:nth-child(4n+1) { clear: both; }
	.block-grid.mobile-five-up > li:nth-child(5n+1) { clear: both; }
}