/*

Kirby Starterkit

Author: Bastian Allgeier / Sascha Lack
URL:    http://getkirby.com
Email:  support@getkirby.com

*/


/* Source Sans Pro
-------------------------------------------------- */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(../fonts/sourcesanspro-300.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/sourcesanspro-600.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400-italic.woff) format('woff');
}


/* Reset
-------------------------------------------------- */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}


/* Pix
-------------------------------------------------- */
img {
  display: block;
}


/* Links
-------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}
a:hover {
  color: #808080;
  font-weight: normal;
}


/* Clearfix
-------------------------------------------------- */
.cf:after {
  content: "";
  display: table;
  clear: both;
}


/* Site
-------------------------------------------------- */
html {
  height: 101%;
font-family: 'Roboto', sans-serif;
  font-weight: normal;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body.white {
  margin: 0 auto;
  font-size: 0.80em;
  line-height: 1.5em;
  padding: 1.5em;
  padding-top: 3em;
  max-width: 75em;
  background: white;
  color: black;
}

body.black {
  margin: 0 auto;
  font-size: 0.80em;
  line-height: 1.5em;
  padding: 1.5em;
  padding-top: 3em;
  max-width: 75em;
  background-color: black;
  color: #B0B0B0;
}


/* Header
-------------------------------------------------- */
.header {
  margin-bottom: 2em;
  padding-bottom: 0.85em;
}
body.black .header {
  border-bottom: 1px solid #808080;;
}
.logo {
  width: 24em;
  margin-bottom: 2em;
}

/* Navigation
-------------------------------------------------- */
.menu a {
  display: block;
  text-transform: uppercase;
}
.menu a:hover {
  color: #808080;
  text-decoration: none;
}
.menu li {
  list-style: none;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  padding: .35em 0;
  border-top: 1px solid #ddd;
  font-weight: normal;
}

@media screen and (min-width: 40em) {
  body {
    padding: 3em;
  }
  .logo {
    float: left;
  }
  .menu {
    float: right;
    margin-right: -1em;
  }
  .menu > li {
    float: left;
  }
  .menu > li > a {
    padding: .35em 1em;
    border: 0;
  }
  .menu > li:hover .submenu {
    display: block;
  }
  
  .menu > li:nth-child(2) {
    padding: 0em 2.5em 0em 0em;
  }

  
}


/* Headings
-------------------------------------------------- */
h1 {
  font-size: 1.35em;
  line-height: 1.25em;
  font-weight: normal;
  margin-bottom: .3em;
}
h2 {
  font-size: 1.35em;
  line-height: 1.25em;
  font-weight: normal;
  margin-bottom: .3em;
}
h3 {
  font-size: 1.1em;
  line-height: 1.5em;
  font-weight: normal;
  margin-bottom: .3em;
}
h4 {
  font-size: 1.1em;
  font-weight: normal;
  line-height: 1.5em;
  margin-bottom: .3em;
  margin-top: -0.4em;
}
h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
  font-weight:normal;
}

hr {
border-bottom: 1px solid white;
margin-bottom: 3em;
}

p {
padding-bottom: 2em;
}

/* Main
-------------------------------------------------- */
.main {
  padding-bottom: 1.5em;
  margin: 0 -1.5em 0 -1.5em;
}
.main hr {
  margin: 3em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}
.main a {
  border-bottom: 2px solid #ddd;
}

.main2 {
  padding-bottom: 1.5em;
}

.main2 img {
max-width: 100%;
padding-bottom: 1.5em;
}

iframe {
  padding-bottom: 2em;
}

/* Text blocks */
.text ul,
.text ol {
  margin-left: 1em;
}

/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
}
.meta li {
  float: left;
  list-style: none;
  margin-right: 2em;
}
.meta li b {
  font-weight: normal;
  padding-right: .25em;
}


/* Project teaser
-------------------------------------------------- */
.teaser {
  list-style: none;
  color: black;
}
.teaser li {
  margin-bottom: 2.6em;
  list-style: none;
  margin-left: 1.4em;
  margin-right: 1.4em;
}
.teaser li .image-title {
	display: none;
	}
.hover img {
width: 100%;  }
@media screen and (min-width: 50em) {
  .teaser li {
    float: left;
    width: 30%;
    height: 100%;
    margin-left: 2%;
    margin-right: 1%;
    position: relative;
    overflow: hidden;
  }
  .teaser li .hover {
	width: 100%;
	position: absolute;
  }
  .hover img {
    width: 100%;
  }
  .teaser li .image-title {
  	text-align: center; 
  	width: 100%;
	height: 100%;
	text-align: center; 
	margin-top: 24%;
	margin-bottom: 24%;
	display: block;
  }
  .hide {
	visibility: hidden;
  }
}

.project .hover { 
	opacity: 1;
	transition: all 0.4s;
}
.project:hover .hover {
	opacity: 0.1;
	transition: all 0.2s;
}

/* Galleries
-------------------------------------------------- */
.gallery {
}
.gallery ul {
  width: 1000px;
}
.gallery li {
  float: left;
  list-style: none;
  width: auto;
  height: 150px;
  margin-left: 2%;
  margin-bottom: 2%;
  line-height: 0;
}
.gallery li img {
  height: 100%;
  }
.gallery li a {
  border: 0;
}


/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 1em 0;
  font-family: "Helvetica", sans-serif;
  font-weight: normal;
}
.nextprev a {
  border: 0;
}
.nextprev .prev {
  float: left;
}
.nextprev .next {
  float: right;
}


/* Footer
-------------------------------------------------- */
.footer {
  padding: 1em 0 6em;
  font-size: .8em;
}
.copyright {
  float: left;
}
.colophon {
  float: right;
}
.colophon a b {
  color: black;
  padding-left: .25em;
}
