body {
	color:hsl(227,0%,12%);
	font-size:16px;
	line-height:1.5;
	background:hsl(227,4%,98%);
	text-align:center;
	font-family:'Lato',serif;
	font-weight:300;
	margin:0;
	padding:0;
	letter-spacing:.045em;
}

iframe {
	border:none;
	outline:none;
}

#container {
	position:relative;
	top:0;
	left:0;
	width:100%;
	padding:3.125em 0 0;
	margin:0;
	text-align: left;
	transition: left .5s;
}

header {
	width:100%;
	position:fixed;
	top:0;
	left:0;
	font-size:1em;
	height:3.125em;
	display:block;
	text-align:center;
	margin:0;
	padding:0;
	background:hsl(206, 27%, 57%);
	z-index:990;
}

header.fixie {
	position:fixed;
	z-index:990;
}

header .inner {
	position:absolute;
	top: 0;
	left: 15vw;
	margin:0;
	padding:0;
	width:70vw;
}

header h1 {
	display:none;
}

#site_logo {
	position:relative;
	display:block;
	width:15vw;
	height:3.125em;
	background: transparent;
	background-size:contain;
}

header.fixie #site_logo {
	height:2em;
}

#site_logo span {
	display:block;
	font-size: 2em;
	color: hsl(227,4%,98%);
	letter-spacing: .066em;
}

nav {
	position:absolute;
	top:.25em;
	left:0;
	font-size:1em;
	display:block;
	width:100%;
	margin:0;
	padding:0;
	background:transparent;
	height:2.75em;
	text-align:left;
}

nav ol {
	position:relative;
	top:0;
	left:0;
	width:100%;
	margin:0 auto;
	text-transform:lowercase;
	height:2.75em;
}

nav ol li {
	position:relative;
	text-align:center;
	list-style:none;
	display:inline-block;
	margin:0 1em 0 0;
	height:2.75em;
}

nav ol li a {
	display:block;
	color:hsl(113, 0%, 98%);
	font-size:1.25em;
	line-height:2;
	height:2.15em;
	font-weight:300;
	padding:0 1em;
	border-bottom: transparent solid .125em;
}

nav > ol > li.lit > a,nav ol li a:hover {
	border-bottom: hsl(113, 0%, 98%) solid .125em;
}

header nav ol li ol {
	display: none;
}

div#social_nav {
	position:absolute;
	top:.66em;
	right:2.25em;
}

div#social_nav a {
	font-size:1.25em;
	margin:0 0 0 .5em;
	display:inline-block;
	color:hsl(227,4%,98%);
}

#darkmodetoggle {
	position:absolute;
	font-size: .88em;
	top:1.125em;
	right:0;
	display:inline-block;
	width:auto;
	height:1em;
	width: 1em;
	padding:.33em;
	margin: 0;
	border-radius:50%;
	background:hsl(227,4%,98%);
	color:hsl(206, 27%, 46%);
	z-index:900;
	line-height:1;
	cursor:pointer;
	text-align:center;
}

#darkmodetoggle span {
	display:none;
	font-size:1em;
}

#darkmodetoggle span.lit,#darkmodetoggle span.dmfeedback {
	display:block;
}

#darkmodetoggle:hover,a#darkmodetoggle:hover span {
	background:hsl(227,0%,80%);
	color:hsl(227,10%,30%);
}

nav#subnav,nav#subsubnav {
	position:relative;
	top:0;
	left:0;
	width:100vw;
	height:3em;
	background:hsl(291, 3%, 57%);
}

nav#subsubnav {
	background:hsl(194, 0%, 52%);
}

nav#subnav ol,nav#subsubnav ol {
	position: absolute;
	top: .25em;
	left: 15vw;
	width:70vw;
	height:3.125em;
	text-align:left;
}

nav#subnav ol li,nav#subsubnav ol li {
	float:left;
	display:inline-block;
	font-size:1em;
	line-height:2;
	height:2.15em;
	font-weight:300;
	padding:0;
	margin:0 .75em 0 0;
	border-bottom: transparent solid .25em;
}

nav#subnav ol li a:hover,nav#subnav ol li.lit a,nav#subsubnav ol li a:hover,nav#subsubnav ol li.lit a {
	border-bottom: hsl(227,4%,98%) solid .125em;
}

nav#productsubnav {
	top:0;
	left:0;
	height:auto;
	background:hsl(291, 3%, 57%);
}

nav#productsubnav ol {
	text-align:left;
}

nav#productsubnav ol li {
	margin:0 1.66em 0 0;
	height:2.5em;
}

#main nav#productsubnav ol li a {
	font-weight:300;
	color: hsl(113, 0%, 98%);
	cursor: pointer;
	display:block;
	font-size:1.25em;
	line-height:2;
	height:2.15em;
	font-weight:300;
	padding:0 1em;
	border-bottom: transparent solid .125em;
}

#main nav#productsubnav ol li.lit a,#main nav#productsubnav ol li a:hover {
	border-bottom: .125em solid hsl(113, 0%, 98%);
}

.hero {
	position: relative;
	top: 0;
	left: 0;
	width:100vw;
	height:0;
	padding-top:56.25%;
	display:block;
	background:url(layout/Lessig-banner.jpg) center 20% no-repeat hsl(227,30%,50%);
	background-size:cover;
}

.hero h1 {
	position: absolute;
	bottom: .25em;
	left: 0;
	width: 100%;
	color: hsla(212,0%,100%,.75);
	font-size: 5vw;
	text-align: center;
	font-weight: 300;
}

.background-video {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:0;
	overflow:hidden;
	background:transparent;
	background-size:cover;
}

.background-video .mask {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:1;
	background:hsla(333,0%,0%,.01);
}

#bgvideo {
	position:absolute;
	top:50%;
	left:50%;
	min-width:100%;
	min-height:100%;
	transform:translate(-50%,-50%);
}

#main {
	position:relative;
	top:0;
	left: 15vw;
	width:70vw;
	min-height:calc(100vh - 5.125em);
	display:block;
	height:auto;
	background:transparent;
	margin:0;
	padding:2em 1em;
	text-align:left;
}

#main p {
	font-size:1em;
	line-height:1.5;
	margin-bottom:.5em;
}

#mainbox .storyp {
	margin:0 0 3em;
}

#searchbox {
	display:none;
}

#mainbox ul {
	font-size:1em;
	margin:0;
	padding:0;
}

#mainbox ol {
	font-size: 1em;
	margin: 0 0 0 1em;
	padding: 0;
}

.homepage_page #menubox .twframe {
	min-height:calc(100vh - 14em);
	max-height:calc(100vh - 14em);
	overflow-y:auto;
	outline: thin hsl(206, 27%, 57%) solid;
}

#main h1,#main h2,#main h3,#main h4 {
	font-size:2.66em;
	line-height:1.33;
	font-weight:300;
	color:hsl(206, 27%, 46%);
	margin:0 0 .25em;
}

#main h1.family,#doc-title {
	text-transform: capitalize;
}

#main h2.category,#main h2.family {
	font-size:1em;
	font-weight:300;
	text-transform:uppercase;
}

#main h3 {
	font-size:1.25em;
	font-weight:300;
	line-height:1.5;
	margin:.5em 0;
}

#main h4 {
	font-size:1.25em;
	font-weight:300;
	line-height:1.5;
	margin:.5em 0 .25em;
}

#main a {
	color:hsl(206, 27%, 57%);
	font-weight:700;
	text-decoration:none;
	overflow-wrap:break-word;
	word-wrap:break-word;
	-ms-word-break:break-all;
	word-break:break-all;
	word-break:break-word;
}

#main a:hover {
	color:hsl(291, 3%, 57%);
	font-weight:700;
	text-decoration:none;
}

#menubox h4 {
	font-size:1.125em;
	float:none;
	clear:both;
	width:100%;
	margin:1em 0 .5em;
	font-weight:300;
	display:none;
}

#menubox h4 a,#menubox h4 a:hover {
	font-weight:300;
}

#menubox h4.lit,#menubox h4 a.lit {
	color:hsl(227,10%,10%);
	font-weight:300;
}

#menubox ol {
	list-style:none;
}

#menubox ol li a,#menubox ol li a:hover {
	font-weight:300;
}

.product_intro,.gallery_page #main.intro {
	padding:2em 0;
}

.product_page .body1,.product_page .body3,.product_page .body4 {
	display:none;
}

.blog_intro_box {
	max-width: 62em;
	border: thin hsl(194, 0%, 52%) solid;
	padding: 1em;
	margin: 0 auto 1em auto;
}

#main .blog_intro_box h4 a {
	font-size: 1.5em;
	font-weight: 300;
	color: hsl(206, 27%, 57%);
}

a.thumbbox,a.gallerythumb {
	font-size:1em;
}

a.thumbbox span,a.gallerythumb span {
	position:absolute;
	top:50%;
	left: 0;
	bottom:auto;
	background:hsla(212,0%,0%,.85);
	font-size:.88em;
	line-height:1.3;
	height:auto;
	display:none;
	width:100%;
	color:white;
	padding:0;
	margin-bottom:3em!important;
	overflow:hidden;
	opacity:1;
	text-shadow:none;
	text-transform:uppercase;
	font-weight:300!important;
	transform: translate(0%, -50%);
}

a.thumbbox:hover span.title,a.gallerythumb:hover span {
	display: block;
}

a.thumbbox span.title1 {
	display: none;
}

.gallerygrid a .title {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 2rem);
	height: calc(100% - 2rem);
	padding: 1rem;
	background: hsla(293, 0%, 100%, .9);
	color: black;
	text-align: left;
	font-size: 1rem;
	font-weight: normal;
	display: none;
	opacity: 0;
	overflow: hidden;
}

.gallerygrid a:hover .title {
	display: block;
	opacity: 1;
	transition: opacity .5s;
}

#main .gallerygrid.lazyloading {
	visibility: hidden;
}



.gigs_page #main {
	left: 0;
	width: calc(100% - 2em);
	margin: 0 auto;
}

table.gigsgrid {
	display: table;
	margin: 0;
	padding: .25em;
	border-collapse: separate;
	border-spacing: 0;
}

table.gigsgrid tr {
	display: table-row;
}
table.gigsgrid tr:nth-child(2n){
	background: #efefef;
}
table.gigsgrid tr:nth-child(2n+1){
	background: #fefefe;
}

body.darkmode table.gigsgrid tr:nth-child(2n){
	background: #333;
}
body.darkmode table.gigsgrid tr:nth-child(2n+1){
	background: #222;
}

td.gigsgrid,th.gigsgrid {
	display: table-cell;
	padding: .33em;
	margin: 0;
	border-bottom: none;
	text-align: top;
}

th.gigsgrid {
	background: hsl(206, 27%, 57%);
	color: white;
	cursor:pointer;
}

body.darkmode th.gigsgrid {
	background: hsl(206, 27%, 27%);
	color: white;
	cursor:pointer;
}

th.gigsgrid span {
	width: 1em;
	height: auto;
	text-align: center;
	margin-left: 1em;
}

th.gigsgrid span i.fa {
	display: none;
}

th.gigsgrid.selected.asc i.fa.fa-angle-up {
	display: inline-block;
}

th.gigsgrid.selected.desc i.fa.fa-angle-down {
	display: inline-block;
}

td.gigsgrid.event {
	width: 25%;
}

td.gigsgrid.when {
	width: 10%;
}

td.gigsgrid.where {
	width: 10%;
}

td.gigsgrid.country {
	width: 10%;
}

td.gigsgrid.type {
	width: 10%;
}

td.gigsgrid.venue {
	width: 10%;
}

td.gigsgrid.topic {
	width: 25%;
}

@media(max-width:72em){
	table.gigsgrid {
		width: auto;
		overflow: auto;
	}
	
	table.gigsgrid, table.gigsgrid thead, table.gigsgrid tbody, table.gigsgrid th, table.gigsgrid td, table.gigsgrid tr { 
		display: block; 
	}
	
	table.gigsgrid th.gigsgrid { 
		position: absolute;
		top: -9999em;
		left: -9999em;
	}
		
	table.gigsgrid td.gigsgrid { 
		border: none;
		position: relative;
		padding-left: 50%; 
		min-height: 1.5em;
		width: 50%;
	}
	
	table.gigsgrid td:before { 
		position: absolute;
		top: .5em;
		left: .5em;
		width: calc(50% - .66em); 
		padding-right: 10px; 
		white-space: nowrap;
	}
	table.gigsgrid td.gigsgrid.event:before { content: "EVENT"; }
	table.gigsgrid td.gigsgrid.topic:before { content: "TOPIC"; }
	table.gigsgrid td.gigsgrid.when:before { content: "WHEN"; }
	table.gigsgrid td.gigsgrid.where:before { content: "WHERE"; }
	table.gigsgrid td.gigsgrid.country:before { content: "COUNTRY"; }
	table.gigsgrid td.gigsgrid.venue:before { content: "VENUE"; }
	table.gigsgrid td.gigsgrid.type:before { content: "EVENT TYPE"; }
}
	
}

body.darkmode a.thumbbox span,body.darkmode a.gallerythumb span {
	color:hsl(206, 27%, 57%);
}

#main.intro a span,#main.intro .introentry a {
	font-weight:300;
}

#main #mainbox ul {
	margin:1em 0 1em 1em;
	padding:0;
	list-style:circle;
}

#mainbox ul li {
	list-style:circle;
	margin:0 0 .25em .5em;
	padding:0 0 0 .25em;
}

#mainbox ol.multilinks {
	display:block;
	list-style:none;
	background:transparent;
	text-align:center;
	font-size:1.25em;
}

.links_page #mainbox ol.multilinks {
	font-size: 1em;
}

#mainbox ol.multilinks li {
	display:block;
	padding:0;
	margin:0 0 .125em 0;
	background:url(#) transparent;
}

#main #mainbox ol.multilinks li a {
	display:block;
	width:calc(100% - 1em);
	min-height:1em;
	line-height:1;
	font-weight:300;
	background:hsl(206, 27%, 57%);
	color:hsl(113, 0%, 98%);
	margin:0;
	padding:.5em;
}

#main #mainbox ol.multilinks li a:hover {
	background:hsl(291, 3%, 57%);
}

.links_page #main #mainbox ol.multilinks li a {
	color: hsl(206, 27%, 57%);
	background: transparent;
	text-align: left;
	padding: 0;
	line-height: 1.5;
	font-weight: 600;
	width: 100%;
	display: inline-block;
	
}

.links_page #main #mainbox ol.multilinks li a:hover {
	color: #444;
}

blockquote {
	font-size:1em;
	font-style:normal;
	width:calc(100% - 2.75em);
	padding:1em;
	mmargin:0;
	border-left:.75em solid hsl(194, 0%, 52%);
}

.image_stage .prevnext {
	position:fixed;
	top:calc(50vh - .75em);
	left:.5em;
	width:calc(100vw - 1em);
	height:2em;
	display:block;
	margin-left:0;
	font-size:1.5em;
}

hr {
	border:none;
	border-bottom:1px hsl(227,0%,97%);
	padding:0;
	margin:1em 0;
	background-color:transparent;
}

.hidden {
	position: absolute;
	left: -100vw;
	top: auto;
}

.lists {
	display: block;
	position: relative;
	padding:  0 0 .5em 0;
	width: 100%;
	height: auto;
	line-height: 1.25;
	margin: .5em auto;
	float: none;
	clear: both;
	border-bottom: thin #cacaca solid;
}

.lists .countup {
	float: left;
	clear: left;
	width: 2.5em;
	text-align: right;
	
}

.lists .contentitem {
	float: right;
	clear: right;
	width: calc(100% - 3em);
	
}

.lists .w12-6.nopadd {
	padding-bottom: 0;
	margin-bottom: 0;
}

#filter {
	max-width: 20em;
}

a.video {
	background-image: url(layout/lectures.jpg);
}

a.broadcast {
	background-image: url(layout/broadcastbox.jpg);
}

a.audio {
	background-image: url(layout/audio.jpg);
}

a.flickr {
	background-image: url(layout/flickr.jpg);
}

a.instagram {
	background-image: url(layout/instagram.jpg);
}

a.gallery {
	background-image: url(layout/photos.jpg);
}

.darkmask {
	background:rgba(0,0,0,.92);
}

#main .gallerygrid_container .inner h3.title.gallerygridtitle {
	font-size: 1.125em;
	font-weight: normal;
	margin-top: 0;
	margin-bottom: 1em;
}

#main .gallerygrid_container .inner h3.title.gallerygridtitle a {
	color: #444;
	font-weight: normal;
}

#popover {
	position:fixed;
	top:5vh;
	left:50vw;
	width:90vw;
	max-width: 120vh;
	height:auto;
	z-index:1001;
	color: white;
	transform: translate(-50%, 0);
	margin: 0;
}

#popover #popover_content {
	max-height: 90vh;
	overflow-y: auto;
}

#popover a {
	color: #7495af;
}

#popover h1,#popover h2,#popover h3,#popover h4,#popover .storyp,#popover .linkout {
	margin: .5em auto 0 auto;
	color: white;
	width: calc(100% - 2em);
	
}

#popover a.closer {
	cursor:pointer;
	z-index:1002;
	font-size:1.66em;
	position:absolute;
	top:-1em;
	right:-1em;
	color:white;
}

.gallerygridsubtitle {
	color: white;
	font-size: 1.125em;
}

footer {
	font-size:1em;
	width:calc(100% - 2.66em);
	min-height:1em;
	padding:2em 1.33em;
	margin:0 auto;
	clear:both;
	float:none;
	color:hsl(242, 2%, 37%);
	background:transparent;
	text-align:center;
	background:hsl(194, 0%, 52%);
}

footer #footer_main {
	width:100%;
	max-width:72em;
	display:block;
	margin:0 auto;
	text-align:right;
}

footer span#copyright {
	width: calc(50% - 1em);
	float: left;
	text-align: left;
	clear: none;
}

footer a#loginbutton {
	width: calc(50% - 1em);
	float: right;
	clear: none;
	font-size: .75em;
	opacity: .5;
}
a#poweredbyslab {
	position: abslute; 
	bottom: 0;
	right: 0;
}

footer a {
	color:hsl(113, 0%, 98%);
	font-weight: 700;
}

/* darkmode settings */

body.darkmode {
	color:hsl(227,0%,96%);
	background-color:hsl(200, 0%, 6%);
}

body.darkmode header {
	background:hsl(206, 27%, 27%);
}

body.darkmode header.fixie {
	background:hsl(206, 27%, 27%);
}

body.darkmode nav#subnav {
	position:relative;
	top:0;
	left:0;
	width:100vw;
	height:3.125em;
	background:hsl(291, 3%, 27%);
}

body.darkmode div#social_nav a {
	color:hsl(227,10%,80%);
}

body.darkmode a#darkmodetoggle {
	color:hsl(227,10%,30%);
	background:hsl(227,10%,80%);
}

body.darkmode a#darkmodetoggle:hover,body.darkmode a#darkmodetoggle:hover span {
	color:hsl(227,10%,80%);
	background:hsl(227,10%,30%);
}

body.darkmode .hero {
	background-color:hsl(227,30%,50%);
}

body.darkmode #main h1,body.darkmode #main h2,body.darkmode #main h3,body.darkmode #main h4 {
	color:hsl(200, 50%, 66%);
}

body.darkmode #main a {
	color:hsl(200, 72%, 66%);
}

body.darkmode #main a:hover {
	color:hsl(227,30%,96%);
}

body.darkmode #menubox h4.lit,body.darkmode #menubox h4 a.lit {
	color:hsl(206, 27%, 57%);
}

body.darkmode footer {
	color:hsl(227,0%,96%);
	background-color:hsl(227,0%,15%);
}

body.darkmode footer a {
	color:hsl(200, 72%, 66%);
}

@media( min-width: 51em) and (max-width: 80em){
	header .inner,#main,nav ol,nav#subnav ol,nav#subsubnav ol { 
		width: calc(85vw - 2em); 
	}
	
	nav ol li, nav#subnav ol li, nav#subsubnav ol li

	nav ol li, nav#subnav ol li, nav#subsubnav ol li {
		margin: 0;
	}
	
	nav ol li a, nav#subnav ol li a, nav#subsubnav ol li a {
		padding: 0 .66em;
	}
}

@media(min-width:51em) and (max-width:58.5em){
	nav ol li a, nav#subnav ol li a {
		padding: 0 .66em;
	}
}

@media( max-width: 51em) {
	
	#container.slid {
		left: -66vw;
	}
	
	a#hamburger {
		top: .06em;
		display: block;
	}
	
	a#hamburger .hlines {
		background:hsl(227,10%,100%)!important;
	}
	
	body.darkmode a#hamburger .hlines {
		background:hsl(200, 72%, 100%)!important;
	}
	
	header nav.mobi {
		background: hsl(206, 27%, 27%);
		overflow: auto;
	}
	
	header nav.mobi ol {
		top: 2em;
	}
	
	header nav.mobi ol li#homepage_nav {
		display:block;
	}
	
	header nav.mobi ol li {
		font-size: 1.25em;
		margin-bottom: .33em;
		height: auto;
		min-height: 0;
	}
	
	header .inner {
		width: calc(83.33vw - 4em);
	}
	
	header nav.mobi ol li ol {
		display: block;
		font-size: .75em;
		height: auto;
		min-height: 0;
		top: 0;
		left: 1em;
		width: calc(100% - 2em);
		margin: .5em 0 1em 0;
	}
	
	#site_logo {
	    width: calc(33vw - 1em);
	    height: 3.125em;
	    margin: .25em 0 0 1em;
		font-size: .88em;
	    text-align: left;
	}

	div#social_nav {
		top: .66em;
		right: 2.25em;
	    width: calc(50vw - 2.25em);
	    text-align: right;
	}
	
	a#darkmodetoggle {
		top: 1.125em;
		font-size: .88em;
	}
	
	nav#productsubnav ol {
		height: auto;
	}
	
	nav#productsubnav ol li {
	    margin: 0 0 .2 0;
	    height: 2.5em;
	}
	
	nav#subnav {
		display: none;
	}
	
	.hero {
		padding-top: 100%;
	}
	
	#bgvideo {
		display: none;
	}
	
	#main {
	    position: relative;
	    top: 0;
	    left: 0;
	    width:calc(100vw - 2em);
	    margin: 0 auto;
	    padding: 2em 0;
	    text-align: left;
	}
	
	#main h1,#main h2,#popover h1,#popover h2 {
		font-size:1.5em;
	}
	
	#main h3,#popover h3 {
		font-size:1.25em;
	}
	
	#main h4,#popover h4 {
		font-size:1.125em;
	}
	
	#popover {
		width:100vw;
	}
	
	#popover a.closer {
		top:-1.25em;
		right:.5em;
		color:white;
	}
	
	a.tagbox {
		font-size: .88em;
	}
}