/*

Kirby Starterkit

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

*/



/* 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 {
	max-width: 100%;
	height: auto;
	width: auto;
	display: block;
	float: none;
}


/* Links
-------------------------------------------------- */
a {
  color: #000;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}
a:hover {
  color: #009BCC;
}


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


/* Site
-------------------------------------------------- */
html {
  height: 101%;
  font-family: Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0 auto;
  font-size: 1.25em;
  line-height: 1.5em;
  padding: 1.5em;
  max-width: 50em;
  background: #fff;
  color: #666;
}
p {
	font-size:0.7em;
	max-width:600px;
}
.caption p {
	float:left;
	position:relative;
	margin:4px 0 24px 0;
	line-height: 1.5em;
	
}
.year {
	float:right;
	color:#009BCC;
	position:relative;
	margin-bottom:24px;
	line-height: 1.5em;
}
.text ul,
.txt ul {

	font-size: 0.7em;
	line-height: 1.5em;

}
img {
	margin-bottom:8px;	
}
figure img {
	clear:right;
	margin:20px 0;
}
/* Header
-------------------------------------------------- */
.header {
  margin-bottom: 1em;
}
.logo {
  display: block;
  margin-bottom: 1.5em;
  padding-top:0.5em;
}
.logo img {
  height: 1.15em;
}


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

.submenu {
  position: absolute;
  z-index: 1;
  display: none;
  left: 1em;
}
.submenu:before {
  position: absolute;
  z-index: -1;
  content: '';
  top: -.5em;
  left: 0;
  border-top: .5em solid transparent;
  border-bottom: .5em solid transparent;
  border-left: .5em solid #222;
}
.submenu li {
  border-bottom: 1px solid #444;
}
.submenu a {
  padding: .5em 1.5em;
  font-size: .9em;
  font-weight: 300;
  color: #fff;
  background: #222;
  white-space: nowrap;
}
.submenu a:hover {
  background: #333;
  color: #fff;
}

@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;
  }
}


/* Headings
-------------------------------------------------- */
h1 {
  font-size: 1.4em;
  line-height: 1.25em;
  font-weight: 400;
  margin-bottom: .5em;
}
h2 {
  font-size: 1.4em;
  line-height: 1.25em;
  font-weight: 300;
  margin-bottom: .5em;
  color: #009BCC;
}
h3 {
  font-size: 1em;
  line-height: 1.3em;
  font-weight: 400;
  margin: .2em 0 .4em 0;
}
h4 {
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.5em;
  margin-bottom: .5em;
  color: #009BCC;
}
h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
}



/* Main
-------------------------------------------------- */
.main {
  padding-bottom: 1.5em;
  border-bottom: 2px solid #009BCC;
}
.main hr {
  margin: 3em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}
.main .text p,
.main .txt p {
  line-height:1.7em;
}
.main a {
  border-bottom: 2px solid #ddd;
}
.main a:hover {
  border-color: #666;
}

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

/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
}
.meta li {
  float: left;
  list-style: none;
  margin-right: 2em;
  color: #009BCC;
}
.meta li b {
  font-weight: 400;
  color: #000;
  padding-right: .25em;
}


/* Project teaser
-------------------------------------------------- */
.teaser {
  list-style: none;
}
.teaser li {
  margin-bottom: 1.5em;
  list-style: none;
}

@media screen and (min-width: 890px) {
  .teaser li {
    float: left;
    width: 262px;
    margin-right: 12px;
    margin-bottom: 12px;
  }
  #masonry {
    overflow: hidden;
    width: 860px;
    padding: 50px 0;
  }
  #masonry ul {
    width: 900px;
  }
  #masonry li {
    float: left;
    list-style: none;
    width: 262px;
    margin-right: 16px;
    margin-left: 16px;
    line-height: 0;
  }
}


/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 1em 0;
}
.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: #009BCC;
  padding-left: .25em;
}

/* Responsive
-------------------------------------------------- */


@media screen and (max-height: 1200px) {
	body {
		padding: 2em 3em;
	}
	img {
		text-align:center;
		margin:0 auto;
		max-height:800px;
	}
	figure img {
		margin:20px auto !important;
	}
}
@media screen and (max-height: 1000px) {
	body {
		padding: 1.5em 3em;
	}
	.logo {
		margin-bottom:1em;
	}
	img {
		max-height:700px;
	}
}
@media screen and (max-height: 800px) {
	.logo {
		margin-bottom:.5em;
	}
	img {
		max-height:600px;
	}
	figure img {
		margin:10px auto !important;
	}
}
@media screen and (max-height: 600px) {
	body {
		padding: 1em 3em;
	}
	.logo {
		margin-bottom:.3em;
	}
	img {
		max-height:480px;
	}
	figure img {
		margin:5px auto !important;
	}
}
.text figure img {
	margin-left:0 !important;
}

