/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

strong {
    font-weight: bold;
}

/* styles */

html, body {
    height: 100%; 
}

#container {
    min-height: 100%;
}

body { 
    font-family: gudea, tahoma, sans-serif;
    font-size: 1em;
    line-height: 1.44;
    background: white;
    color: #333;
    background-attachment: fixed;
    background-size: cover;
}



.bgmobile {
    background: url('../gfx/sidebar-background.jpg') top left no-repeat;
    background-size: cover;
    height: 100vh;
    width: .5em;
    position: fixed;
    top: 0;}

#main figure {
    margin: .25em .5em 1.25em 0;
    background: #ddd;
    float: left;
    width: 100%;
}

#main figure img {
    width: 100%;
}

#main figure .caption {
    padding: .5em .5em .25em .5em;
}

#main figure .caption .copyright {
    font-style: italic;
}

img { max-width: 100%; }

figure img { 
    display: block;
}

p { margin: 0 0 1em 0; }

a { 
    color: #043f97;
}

a.headerlink {
    display: inline-block;
    font-size: .8em;
    color: #666;
}

a.headerlink:visited {
    color: #666;
}

a.headerlink::before {
    content: " – ";
}

a:visited { color: #001f4f; }
/* a:hover { color: #2874e6; } */
/* a:active { color: #6fa9ff; } */

td { padding: .5em .25em .75em .25em; }

footer { clear: both; } /* todo: sticky */

footer {
    clear: both; 
    position: relative;
    z-index: 10;
    background: black;
    color: #eee;
    padding: 3%;
}

footer form#newsLetterManagementForm {
    display: inline-block;
    /* border-right: 1px solid #666; */
    margin-right: 1.5%;
    padding-right: 1.5%;
    margin-left: 2.5%;
    min-height: 13em;
    
}

div.newsletterInput {
    margin-top: .5em;
}

div#container_newsletter_id {
    margin-top: .25em;
}

.subscribe h2 {
    margin-bottom: .5em;
}

footer input {
    width: 80%;
    padding: .25em;
    font-size: .9em;
    margin: 0.5em 0 1em 0;
}

footer h2 {
    font-family:  "trebuchet ms", gudea, sans-serif; /* "futura-pt",*/
    font-size: 1.4em;
}

footer a {
    color: white;
}


footer a:visited {
    color: #eee;
}

footer a.twitter, footer a.facebook {
    background: transparent url('../gfx/twitter-header.svg') top left no-repeat;
    background-size: auto 100%;
    text-indent: 1.5em;
    float: none;
    width: auto;
    color: white;
    font-size: 1em;
}

footer a.facebook {
    background: transparent url('../gfx/facebook-header.svg') top left no-repeat;
    background-size: auto 100%;
}

footer .region {
    margin-left: .5em;
    /* margin-left: 1.5%; */
    display: inline-block;
    vertical-align: top;
    min-height: 13em;
}

footer .region.small {
    width: 29%;
    border-right: none;
}

footer nav li a, footer nav li a:visited {
    border-bottom: 1px solid #666;
    padding: .25em 0;
    color: #eee;
    text-decoration: none;
    display: block;
}

label.checkbox {
    display: inline-block;
    width: 45%;
}

div.allcontent {
    display: -webkit-flex;
    display: flex;
    flex-direction: column-reverse;
}

#container { 
    position: relative;
    z-index: 10;
    margin-left: .5em;
    padding-left: 10px;
    padding-top: 4em;
    background: white;
    padding-right: .5em;
    max-width: 65em;
    padding-bottom: 2em;
}

nav#menu { 
    position: absolute;
    top: 3.5em;
    width: 98%;
    background: rgba(220,220,220,0.8);
    margin: 0;
    padding: 0 1%;
    font-size: .95em;
    z-index: 110;
}

nav#menu li ol {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    font-size: 1.2em;
}

nav#menu li ol {
    display: none;    
    width: 100%;
    text-align: center;
}

nav#menu li ol li {
    width: 100%;
}

.no-touch nav#menu li:hover ol {
    display: block;
}

nav#menu .head {
    transition: .3s all;
}

.home nav#menu, 
.actueel nav#menu, 
.actueel nav#menu ol ol,
.actueel a.toggle { background-color: #dd5b49; }

.home #main a,
.actueel #main a { color: #8d2800; }

.home #main a:visited,
.actueel #main a:visited { color: #712406; }
.actueel #main a:hover, 
.actueel a:hover,
.actueel .articles .article:hover a { color: #cf5220; }

.sterrenhemel nav#menu, 
.sterrenhemel nav#menu ol ol,
.sterrenhemel a.toggle { background-color: #4b767a; }

.sterrenhemel #main a { color: #11575d; }
.sterrenhemel #main a:visited { color: #093e43; }
.sterrenhemel #main a:hover, .sterrenhemel a:hover,
.sterrenhemel .articles .article:hover a { color: #1e858d; }

.govert-schilling nav#menu, 
.govert-schilling nav#menu ol ol,
.govert-schilling a.toggle { background-color: #e8aa4d; }

.govert-schilling #main a { color: #b26b00; }
.govert-schilling #main a:visited { color: #9f6000; }
.govert-schilling #main a:hover, 
.govert-schilling a:hover,
.govert-schilling .articles .article:hover a { color: #ffbe5d; }

.sterrenkunde nav#menu, 
.sterrenkunde nav#menu ol ol,
.sterrenkunde a.toggle { background-color: #66a388; }

.sterrenkunde #main a { color: #468866;  }
.sterrenkunde #main a:visited { color: #2d6e4c;  }
.sterrenkunde #main a:hover, .sterrenkunde a:hover,
.sterrenkunde .articles .article:hover a { color: #4bb780;  }

nav#menu ol {
    text-align: center;
}

nav#menu li { 
    display: inline-block; 
    text-align: center; 
    margin: 0;
}

nav#menu .head li {
/*     width: 49%; */
}

nav#menu .head.hide li {
    width: auto;
    display: none;
}

nav#menu li a {
    padding: .5em 1.5em;
    display: block;
    color: white;
    text-decoration: none;
    transition: all .4s;
}

nav#menu li.back a {
    padding: .55em 1.5em;
}

nav#menu {
    position: fixed;
    top: 0;
    font-size: .7em;
    border-top: 3em solid white;
}

nav#menu li {
    width: 24%;
}

nav#menu li a {
    padding: 1em .5em;
}

h1#logo, { 
    width: 80%; 
    height: auto; 
    display: block;
    position: absolute;
    top: -3em;    
}

h1 a, h2 a { 
    color: black;
    text-decoration: none;
}

h1 a:hover, h2 a:hover {
    text-decoration: underline;
}

label {
    display: block;
}

input, textarea { 
    width: 80%;
    padding: .5em;
    font-size: 1em;
}

input[type=checkbox], input[type=radio] {
    width: auto;
}

input[type=submit] {
    width: auto;
}

textarea {
    height: 12em;
    border: 1px solid #ccc;
}


body.actueel nav#menu li.actueel a,
body.sterrenhemel nav#menu li.sterrenhemel a,
body.govert-schilling nav#menu li.govert-schilling a,
body.sterrenkunde nav#menu li.sterrenkunde a,
body.actueel nav#menu li.actueel:hover ol li a:hover,
body.sterrenhemel nav#menu li.sterrenhemel:hover ol li a:hover,
body.govert-schilling nav#menu li.govert-schilling:hover ol li a:hover,
body.sterrenkunde nav#menu li.sterrenkunde:hover ol li a:hover {
    background: rgba(0,0,0,0.5);
}

body.actueel nav#menu li.actueel ol a,
body.sterrenhemel nav#menu li.sterrenhemel ol a,
body.govert-schilling nav#menu li.govert-schilling ol a,
body.sterrenkunde nav#menu li.sterrenkunde ol a {
    background: transparent;
    font-weight: normal;
    text-decoration: none;
}


nav#menu li a:hover {
    background: rgba(0,0,0,0.5);
    color: white;
    transition: all .25s;
}

nav#menu header {
    position: absolute;
    width: 98%; /* 67.5% in a 81% */
    margin-top: -2.8em;
    max-width: 60em;
    padding-right: 1%;
    min-height: 2.8em;
}

#logo {
    position: absolute;
/*     margin-top: -2.5em; */
    width: 60%;
    min-height: 2.5em;
}

#logo a { 
    position: relative;
    display: block;
    z-index: 100;
    text-indent: -9999px;
    min-height: 2.5em;
    background: transparent url('../gfx/logo-small.svg') top left no-repeat;
    background-size: 100% auto;
    background-position: center center;
    width: 100%;
}

#search {
    position: absolute;
    top: -.25em;
    right: .25em;
    z-index: 100;  
    padding: .5em .25em;
    font-size: 1.0125em;
    margin-top: 0;
    width: 10em;
    height: 2em;
}
#search input { 
    font-size: 1em;
    padding: .25em .5em;
    display: block;
    border: 1px solid #bbb;
}

#search input[type=submit] {
    background: transparent url('../gfx/search.svg') center right no-repeat;
    background-size: auto 100%;
    width: 2.5em;
    position: absolute;
    right: .25em;
    height: 1.25em;
    top: .9em;
    border: none;
}

#search input[type=submit]:hover {
    transform: scale(1.1);   
}

#search input[type=submit]:active {
    background-position-y: 2px;
}

#search input[type=search] {
    padding: .25em;
    transition: width .3s;
    -webkit-appearance: textfield;
    width: 7em;
    vertical-align: top;
    position: absolute;
}

#search.expanded {
    width: 99%;
}

#search.expanded input[type=search] {
     width: 85%;
}
/*

#search input[type=search]:focus {
    width: 99%;
    transition: all .1s;
}
*/

section { 
    max-width: 52em;
}

section#main {
    margin-bottom: .5em;
}

h1.month { text-transform: capitalize; }

.articles .article a.lightbox {
    margin: 0;
}

#main article h1 {
    font-size: 1.8em;
    /* font-weight: bold; */
    margin-top: .5em;
    font-family:  "trebuchet ms", gudea, sans-serif;  /* "futura-pt" */
    font-weight: 500;
    line-height: 1.125;
}

#main article h1.noshare {
    padding-bottom: 18px;
}

#main article time, #main article .source {
    font-size: .8em;
/*     text-align: right; */
    display: inline-block;
    margin-bottom: .5em;
    margin-right: 1em;
}

.twitter, .facebook {
    display: inline-block;
    margin-left: .5em;
	width: 18px;
	height: 18px;
	font-size: .8em;
	float: right;
	margin-top: .25em;
	text-indent: -9999px;
}

.facebook {
	background: transparent url('../gfx/fb.png') left center no-repeat;
}

.twitter {
	background: transparent url('../gfx/twitter.png') left center no-repeat;
}
#main article figure.pull { 
    margin-left: -35px;
}

#main article strong { 
    font-weight: bold;
}

#main article em {
    font-style: italic;
}

#main article ul, #main article ol {
    margin-left: .75em;
}

#main article ul {
    list-style: disc;
}

#main article ol {
    list-style-type: decimal;
}

#main article ol.searchresults { 
    margin-left: 0;
}

article td.image {
    padding-top: .75em;
}

ol.searchresults {
    margin-top: 1em;
}

ol.searchresults li {
    list-style: none;
    padding: .25em 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: .5em;
}

.searchresults a {
    display: block;
    text-decoration: none;
}

.searchresults a:hover {
    text-decoration: underline;
}

.searchresults time {
    margin-bottom: 0;
}

.searchresults p.sources {
    font-size: .8em;
}

.#search inputresults a {
    display: block;
}

.actueel #main .searchresults a.tag,
.sterrenhemel #main .searchresults a.tag,
.govert-schilling #main .searchresults a.tag,
.sterrenkunde #main .searchresults a.tag { 
    display: inline-block;
    margin: 0 .25em;
    font-size: .8em;
    color: #666;
    text-decoration: underline;
}


.actueel #main .searchresults a.tag:hover,
.sterrenhemel #main .searchresults a.tag:hover,
.govert-schilling #main .searchresults a.tag:hover,
.sterrenkunde #main .searchresults a.tag:hover {
    color: #999;
}

section.articles h1 {
    font-size: 1.35em;
    margin: 0 0 .5em 0;
    padding-top: 0.4em;
    clear: both;
}

.actueel section.articles h1 {
    padding-top: 1.55em;
}

section.articles div.article:hover a {
    text-decoration: underline;
}
/*

section.articles {
    height: 95vh;
}
*/

section.articles div h2 {
    margin-left: 5.9em; /* 4.7em for futura */
    font-family:  "trebuchet ms", gudea, sans-serif; /* "futura-pt" */
    font-size: 1em; /* 1.25 for futura */
    line-height: 1;
    padding-top: .75em;
}

section.articles div.article {
    clear: both;
    min-height: 6em;
    background: white;
    padding: 0 1% 0.5em 0;
    margin: 0 0 0 0; /*    margin: 0 0 .5em -35px; */
    transition: all .2s;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.articles .excerpt {
    display: none;
}

section.articles.swipeable {
    overflow: hidden;
    height: 8em;
    height: 8em;
    border: 1px solid #eee;
    transition: .3s height;
    position: relative;
}

.articles.swipeable hgroup {
    min-height: 6em;
}

section.articles.swipeable div p.excerpt {
    display: block;
    margin-left: .5em;
}


.articles.swipeable ul.pages {
    position: absolute;
    bottom: .5em;
    text-align: center;
    width: 90%;
}

.articles.swipeable ul.pages li {
    display: inline-block;
    background: black;
    font-size: .5em;
    width: 1em;
    height: 1em;
    border-radius: .75em;
    border: 1px solid black;
    margin: 0 .2em;
}

.articles.swipeable ul.pages li.active {
    background: grey;
    -webkit-box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.5);
}

section.articles.swipeable div.article {
    position: absolute;
    width: 75vw;
    border-bottom: none;
    background: transparent;
}

section.articles.swipeable div.article:hover {
    background: transparent;
}

section.articles div.article.today {
    padding: .5em .5em .5em 0;
    background: #ddd;
}

section.articles div.article:hover {
/*     background: rgba(220,220,220,.8); */
    transition: all .3s;
}

section.articles div.article.compact {
    min-height: inherit;
    padding-bottom: .25em;
    border-bottom: 1px solid #999;
}

section.articles div.article.compact:hover {
    background: transparent;
}

section.articles div.article h2 a {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: manual;
}

section.articles div.article.compact h2 {
    margin-left: 0;
    margin-bottom: .25em;
    line-height: 1.2;
}

section.articles div p, 
section.articles div a {
    margin-left: 5.9em;
}

section.articles div.bol_pml_element a,
#bol_script1527325251037_outer a {
    margin-left: 0;
}

section.articles div .sources {
    margin-left: 7.375em;
    font-size: .8em;
    line-height: 1.1;
    margin-top: .25em;
}

section.articles div time {
    font-size: .8em;
    margin-left: 7.375em;
}

div.article p {
    margin-bottom: 0;
}

section.articles h2 a,
section.articles div figure a {
    margin-left: 0;
}


section.articles div figure {
    width: 5em;
    height: 5em;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: absolute;
    margin-top: 0;
    top: .75em;
}

section.articles div figure img {
    height: 100%;
    max-width: inherit;
}

.actueel section.articles div figure img {
    margin-left: -66%;
}

section.articles ol {
    clear: both;
}

section.articles ol li {
    margin: .5em 0;
}

section.articles ol li a {
    display: block;
}

section.articles ol time {
    color: #666;
}

.ads {
    display: none;
}

.progressbar {
    background: #ddd;
    height: 3px;
    width: 100%;
    z-index: 100;
    position: absolute;
    top: 0;
}
.progressbar .inner {
    background: green;
    height: 3px;
    width: 35%;
}

.waiting {
    height: 50px;
    background-color: rgba(200, 200, 200, 0.8);
    width: 100%;
    position: fixed;
    top: 4.5em;
    margin: 0px auto;
    z-index: 100;
    text-align: center;
    line-height: 50px;
    display: none;
}

.waiting p {
    text-indent: 32px;
    background: transparent url('../gfx/stopwatch.svg') center left no-repeat;
    display: inline-block;
}

aside.sidebar {
    width: 80%;
    margin: 0 auto 0 auto;
    display: none;
    height: auto;
}

aside.sidebar.hidden {
    display: none;
}

.sidebar h1, .sidebar h2 {
    font-weight: bold;
    font-family: "trebuchet ms", trebuchet, sans-serif;
    font-size: 1.2em;
    color: #333;
    text-align: center;
}

.articles .featured, .actueel .archive .featured {
    display: none;
}

.actueel .featured {
    display: block;
}

.featured {
    position: relative;
}

.featured h2 {
    position: absolute;
    width: 100%;
    bottom: .4em;
    padding: .25em 0;
    background: rgba(0,0,0,0.5);
    font-size: .9em;
    text-align: center;
}

.featured h2 a {
    font-weight: bold;
    font-family: "trebuchet ms", trebuchet, sans-serif;
    color: white;
    text-align: center;
}

.featured img {
    min-width: 100%;
}

/* monthpicker */

a.toggle {
    display: block; 
    width: 80%;
    font-size: 1em;
    margin: 0 auto 1em auto; 
    text-align: center; 
    padding: .5em; 
    color: white; 
    background:  #dd5b49 url('../gfx/calendar.svg') 95% 35% no-repeat;
}

a.toggle#bigtoggle {
    display: none;
}

a.toggle.hidden, a.toggle#bigtoggle.hidden {
    display: none;
}

a.toggle:hover {
    text-decoration: underline;
    color: white;
}

a.toggle:visited {
    color: white;
}

.monthpicker {
    text-align: center;
    padding: .5em .5em;
    color: #555;
    opacity: 1;
}

.monthpicker ul.years {
    list-style: none;
    margin: 0 0 .5em 0;
    padding: 0;
    font-size: 1.2em;
}

.monthpicker ul.years li {
    display: inline-block;
    min-height: 1px;
}

.monthpicker ul.years li.previous, .monthpicker .years li.next {
    width: 26%;
}

.monthpicker .years .previous {
    float: left;
}

.monthpicker .years .next {
    float: right;
}

.monthpicker .years strong {
    font-weight: bold;
}

.monthpicker .months {
    margin: 0;
    padding: 0;
}            
.monthpicker .months li {
    display: inline-block;
    width: 24%;
    margin: 0;
    padding: 0;
    line-height: 2em;
}

.monthpicker a {
    text-decoration: none;
    color: #555;
}

.monthpicker a:hover {
    color: #333;
    text-decoration: underline;
}

 section.articles div .monthpicker a {
     margin-left: 0;
 }


@media screen and (min-width:500px) {
    h1#logo {
        width: 50%;
    }
    
    #main article time {
        text-align:  left;
    }
    
    nav#menu ol {
        text-align: left;
    }
    
    nav#menu li, nav#menu .head li, nav#menu.sticky li {
        width: auto;
    }
    
    nav#menu li a, nav#menu.sticky li a {
        padding: .5em 1em;
    }
       
    ol.head {
        padding-left: 2.5%;
        margin-left: .75em;
    }
    
    a.toggle {
        position: fixed;
        z-index: 1000;
        float: left;
        padding-right: 40px;
        width: 5.25em;
        font-size: .7em;
        margin-top: 3em;
        background-size: auto 80%;
    }
    
    
    a.toggle#bigtoggle {
        display: block;
    }
    
    
    a.toggle#smalltoggle {
        display: none;
    }
    
    
    .showsidebar aside.sidebar {
        display: block;
        height: auto;
    }


}

@media screen and (min-width: 700px) {
    body {
/*         padding-left: 10%; */
        background-image: url('../gfx/home_bg1.jpg');
        background-size: cover;
/*         background-size: 8% auto; */
    }
    
    .waiting {
        top: 6em;
    }
    
    .bgmobile { 
        display: none;
        background: none;
    }
    
    #container { 
        margin-left: 10%;
        padding-left: 1%;
        position: relative;
        max-width: 65em;
        padding-top: 7em;
        transition: transform .1s;
    }
    
    footer {
        padding-left: 10%;
    }
    
    div.allcontent {
        display: block;
    }

    
    aside.sidebar {
        left: 10%;
        transition: left .1s;
        margin: 0;
        top: 6.5em;
        padding: 2em 0;
        width: 24%;
        display: block;
        position: fixed;
        background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 15%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0) 100%);
    }    
    
    
    .sidebar h1, .sidebar h2 {
        color: #eee;   
    }
    
    #apodContent {
        margin: .5em;    
    }
    
    .monthpicker {
        color: white;
    }
        
    .monthpicker a {
        color: #ddd;
    }
    
    .monthpicker li.disabled {
    	color: rgba(155, 155, 155, 0.4);
    }
    
    .monthpicker a:hover {
        color: #eee;
    }
    
    .monthpicker a.selected {
        font-weight: bold;
    }
    
    .showsidebar aside.sidebar {
        left: 0;
        transition: left .2s;
    } 
    
    .showsidebar #container {
        transform: translateX(15%);
        transition: transform .2s;
    }
        
    nav#menu {
        text-align: left;
        padding-left: 10%;
        width: 89%;
        margin-top: 0;
    }
    
    nav#menu li a, nav#menu.sticky li a {
        padding: .5em 1.2em;
    }    
    
    
    nav#menu li ol {
        width: auto;
        font-size: 1em;
        left: auto;
    }
    
    nav#menu li ol li {
        display: block;
        width: auto;
        text-align: left;
    }

    
    h1#logo { 
        width: 33%;
        max-width: 25em;
    }
    
    #main article figure.pull,
    section.articles div.pull
     {
        margin-left: -8%;
    }
    
    #main article figure {
        width: 100%;
    }
    
/*
    #container.news section.articles div {
        width: 49%;
        float: left;
        clear: none;
    }
    #container.news section.articles div:nth-of-type(2n+2) {
        // margin-left: 2%;
        clear: right;
    }
*/

    #search, #search.expanded {
        right: 1em;
        padding: .5em .25em;
        width: 26%;
        display: block;
    }
    
    
    #search input[type=search], #search.expanded input[type=search] {
         width: 100%;
    }
        
    nav#menu .head.hide li {
        display: inline-block;
    }
    
    .twitter, .facebook {   
        text-indent: 0;
    }
    
    footer form#newsLetterManagementForm {
        width: 30%;
        max-width: 15em;        
    }
    
    footer .region {
        width: 60%;
        max-width: 40em;
        border-left: 1px solid #666;
        padding-left: 3%;
    }
    
    footer .half {
        width: 48%; 
        float: left;
    }
}

@media screen and (min-width: 900px) {

    #logo {
        margin-bottom: 5em;    
    }
    
    nav#menu header {
        width: 82%; /* 67.5% in a 81% */
    }
    
    nav#menu, nav#menu.sticky {
        font-size: 1.1em;
    }
    
    ol.head {
        width: 70%;
        float: left;
    }
    
    a.toggle {
        font-size: 1em;
        margin-top: 3.5em;
    }
    
    #search {
        right: 1em;
    }
    
/*
    
    #search.expanded {
        width: 50%;
    }
*//*

    
    #search.expanded input[type=search] {
         width: 15em;
    }
*/

/*
    #search {
        float: right;
        width: 28%;
        position: relative;
        top: 0;
        padding: .25em;
        margin-top: 0;
    }
*/
/*
    
    #search input[type=search] {
        width: 70%;
        float: left;
    }
    
    #search input[type=submit] {
        width: 28%;
        float: right;
    }
*/
     
    #main article h1 {
        font-size: 2.5em;
    }    
    section#main, section.articles {
        float: left;
        width: 67.5%;
        margin-left: 2.5%;
    }
    
    #container.list section.articles {
        max-width: 17em;
        float: right;
        right: 2em;
        width: 26%;        
        padding-left: 2%;
        border-left: 1px solid #ccc;
        margin-right: 1%;
        margin-top: 1.55em;
        margin-left: 0;
    }
    
    .monthpicker {
        opacity : 1; /* TODO: Change this, mobile display of monthpicker needs to be added */
    }
    
}

@media screen and (min-width: 1200px) {
    body {
        font-size: 1.1em;
    }
    
    .largehide { display: none; }
    
    #container {
        margin-left: 18%;
    }
    
    
    footer {
        padding-left: 19%;
    }
    
    nav#menu {
        width: 81%;
        padding-left: 18%;
    }
        
    #main article { 
        position: relative;
        margin-right: 1em;
    }

    aside.sidebar {
        width: 18%;
        left: 0;
    }
    
    a.toggle {
        display: none;
    }
    
    a.toggle#bigtoggle {
        display: none;
    }

/*
    
    #main article h1 {
        margin-bottom: .5em;
    }
*/
    
/*
    #main article time {
        position: absolute;
        left: -16.5em;
        width: 15em;
        text-align: right;
        color: white;
        top: .5em;    
    }
*/

    #main article figure.pull,
    #container.news section.articles.pull div
     {
        margin-left: -12%;
    }
    
    #container.news section.articles div {
        width: 32%;
/*         margin-left: 1%; */
        float: left;
        clear: none;
        font-size: .9em;
    }
    
    #container.news section.articles.pull div:nth-of-type(2n+2) {
/*         margin-left: 1%;  */
    }

    #container.news section.articles.pull div:nth-of-type(3n+1) {
/*         margin-left: -8%; */
        clear: left;
    }
}

@media screen and (min-width: 1430px) {
    .ads {
        display: block;
        position: absolute;
        top: 18em;
        margin-top: 2em;
        right: 1em;
    }
}

@media screen and (max-width: 499px) {    
    nav#menu .smallhide,
     nav#menu .head.hide li .smallhide  {
        display: none;
    }
}

@media print {
	body { background-color: white; background-image: none; margin: 0; padding: 0; }
	.twitter, .facebook { display: none; }
	nav#menu { display: none;}
	#container { margin-top: 0; padding-top: 0; margin-right: 4em; max-width: 100%; top: 0; }
	h1#logo {
		margin-bottom: .5em;
		margin-top: 0;
		padding: 0;
		-webkit-print-color-adjust: exact;
		width: 50%;
	}	
	
	section { max-width: 100%; }
	
	#container section.articles {
		display: none;
	}
	
	a:link:after, a:visited:after { content:" [" attr(href) "] "; }
	a.source:link:after, a.source:visited:after,
	a.tag:link:after, a.tag:visited:after,
	a.twitter:link:after, a.twitter:visited:after,
	a.facebook:link:after, a.facebook:visited:after,
	a.lightbox:link:after, a.lightbox:visited:after {
    	content: "";
	}
	
	
}


/* lightbox (magnific popup) */
/*  Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
  filter: alpha(opacity=80); }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045; }

.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto; }

.mfp-ajax-cur {
  cursor: progress; }

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in; }

.mfp-auto-cursor .mfp-content {
  cursor: auto; }

.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important; }

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .mfp-preloader a {
    color: #CCC; }
    .mfp-preloader a:hover {
      color: #FFF; }

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }

button.mfp-close, button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  -webkit-box-shadow: none;
  box-shadow: none; }
button::-moz-focus-inner {
  padding: 0;
  border: 0; }

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  filter: alpha(opacity=65);
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace; }
  .mfp-close:hover, .mfp-close:focus {
    opacity: 1;
    filter: alpha(opacity=100); }
  .mfp-close:active {
    top: 1px; }

.mfp-close-btn-in .mfp-close {
  color: #333; }

.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
  color: #FFF;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%; }

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap; }

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  filter: alpha(opacity=65);
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
  .mfp-arrow:active {
    margin-top: -54px; }
  .mfp-arrow:hover, .mfp-arrow:focus {
    opacity: 1;
    filter: alpha(opacity=100); }
  .mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent; }
  .mfp-arrow:after, .mfp-arrow .mfp-a {
    border-top-width: 13px;
    border-bottom-width: 13px;
    top: 8px; }
  .mfp-arrow:before, .mfp-arrow .mfp-b {
    border-top-width: 21px;
    border-bottom-width: 21px;
    opacity: 0.7; }

.mfp-arrow-left {
  left: 0; }
  .mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
    border-right: 17px solid #FFF;
    margin-left: 31px; }
  .mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
    margin-left: 25px;
    border-right: 27px solid #3F3F3F; }

.mfp-arrow-right {
  right: 0; }
  .mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
    border-left: 17px solid #FFF;
    margin-left: 39px; }
  .mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
    border-left: 27px solid #3F3F3F; }

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto; }

/* The shadow behind the image */
.mfp-figure {
  line-height: 0; }
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #444; }
  .mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px; }
  .mfp-figure figure {
    margin: 0; }

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto; }

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #F3F3F3;
  word-wrap: break-word;
  padding-right: 36px; }

.mfp-image-holder .mfp-content {
  max-width: 100%; }

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0; }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px; }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }
    .mfp-img-mobile .mfp-bottom-bar:empty {
      padding: 0; }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px; }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0; }
 }

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75); }

  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0; }

  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%; }

  .mfp-container {
    padding-left: 6px;
    padding-right: 6px; }
 }

.mfp-ie7 .mfp-img {
  padding: 0; }
.mfp-ie7 .mfp-bottom-bar {
  width: 600px;
  left: 50%;
  margin-left: -300px;
  margin-top: 5px;
  padding-bottom: 5px; }
.mfp-ie7 .mfp-container {
  padding: 0; }
.mfp-ie7 .mfp-content {
  padding-top: 44px; }
.mfp-ie7 .mfp-close {
  top: 0;
  right: 0;
  padding-top: 0; }
/* padding-bottom and top for image */
.mfp-no-margins img.mfp-img {
	padding: 0;
}
/* position of shadow behind the image */
.mfp-no-margins .mfp-figure:after {
	top: 0;
	bottom: 0;
}
/* padding for main container */
.mfp-no-margins .mfp-container {
	padding: 0;
}


/* 

for zoom animation 
uncomment this part if you haven't added this code anywhere else

*/

.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-webkit-transition: all 0.3s ease-out; 
	-moz-transition: all 0.3s ease-out; 
	-o-transition: all 0.3s ease-out; 
	transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
		opacity: 1;
}
.mfp-with-zoom.mfp-ready.mfp-bg {
		opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container, 
.mfp-with-zoom.mfp-removing.mfp-bg {
	opacity: 0;
}
