/*

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 {
  display: inline-block;
  max-width: 100%;
}


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

.home .button {
  border-color: #000;
  color: #000;
}
.home .button:hover {
  border-color: #000;
  color: #fff;
  background-color: #000;
}

.button {
  padding: 3px 8px;
  border: 2px solid #555;
  font-family: Soleil;
  color: #555;
  font-size: 0.8em;
}

.button:hover {
  color: #fff;
  background-color: #555;
  border-color: #555;
}

.home .projectgallery .button {
  border-color: #fff;
  color: #444;
  background-color: #fff;
}

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


/* Site
-------------------------------------------------- */
html {
  height:100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
  font-family: Calluna, serif;
  width:100%;
}

h1, h2, h3, h4, .button, .tags, nav, .footer, .meta {
  font-family: Soleil, "Source Sans Pro", sans-serif;
}

body {
  margin: 0 auto;
  padding: 0em;
  font-size: 1.25em;
  line-height: 1.5em;
  background: #fff;
  color: #222;
  height: 100%;
}

body.home {
  min-height: 300px;
}

.container {
  min-height: 100%;
  position: relative;
  padding-bottom:2em;
}


/* Header
-------------------------------------------------- */
.header {
  margin-bottom: 1.5em;
  position: absolute;
  width: 100%;
  text-align: center;
  padding: 1em;
}

.category .header {
  position: relative;
  width: 100%;
  margin-bottom: 0em;
  padding-bottom: 0em;
}

.project .header {
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  display: block;
  margin-bottom: 1.5em;
  /*float: left;*/
}

.category .logo {
  margin-bottom: 0;
}

.logo img {
  width: 4em;
}


/* Navigation
-------------------------------------------------- */

nav ul.menu {
  margin-bottom: 0 !important;
  min-height: 1.5em;
  font-size: 0.8em;
}

.menu {
  float: right;
  padding-top:0.3em
}

.menu a {
  display: block;
  color: #222;
}
.menu a:hover {
  color: #b4c2ce;
  text-decoration: none;
}
.menu .active {
  color: #000;
}

.menu li {
  list-style: none;
}
.menu > li {
  position: relative;
  float: left;
}
.menu > li:hover .submenu {
  display: block;
}
.menu > li > a {
  padding: .35em 0em;
  margin: 0 0.5em;
  font-weight: 400;
  line-height: 1em;
}

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

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

.category h1 {
  font-size: 1.5em;
  margin-left: 0.3em;
}

/* Main
-------------------------------------------------- */
.main {
  padding-bottom: 30px;
}
.main hr {
  margin: 3em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}
.main figure{
  text-align: center;
  line-height: 0;
  max-width: 1400px;
  margin: 20px auto;
}

.main a:hover {
  border-color: #222;
}

main.project {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  padding: 0 2vw;
}

body.home .main {
  position: relative;
  padding-top: 100px;
  text-align: center;
  line-height: 0;
  display: block;
  max-width: 2000px;
  margin: 0 auto;
}

@media screen and (max-height: 820px) and (min-height: 620px) {
  body.home .main  {
    /*max-height: 352px;*/
    padding-top: 100px;
  }
}

@media screen and (max-height: 620px){
  body.home .main  {
    /*max-height: 176px;*/
    padding-top: 100px;
  }
}

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

.text p{
  margin: 0 auto 1em;
  max-width: 600px;
}

/* Featured post images
-------------------------------------------------- */

.featuredpost ul li {
  display: inline-block;
  margin: 10px;
}

.featuredpost ul li img{
  max-height:120px;
}

.featuredpost ul li {
  transition: visibility 0s, opacity 0.1s linear;
}

.featuredpost ul li:hover {
  opacity: 0.6;
}

/* Title
-------------------------------------------------- */

.pagetitle {
  background-size: cover;
  background-position: center;
  margin: 0;
  height: 200px;
  height: 60vh;
  margin-bottom: 1em;
}


.pagetitle h1 {
  text-align: center;
  color: #fff;
  padding: 0;
}

.pagetitlecontainer {
  position:relative;
  top:50%;
  transform: translateY(-50%);
}

.category h2 {
  font-size: 1.5em;
  margin-top: 2px;
  margin-bottom: 7px;
}

.pagetitle.nobackground {
  background-size: 0 0;
  height: auto;
  padding-top: 5em;
}
.pagetitle.nobackground h1 {
  color: #000;
}

.pagetitle.nobackground .pagetitlecontainer {
  top: 0em;
  transform: none;
}


/* Meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
  text-align: center;

}
.meta li{
  list-style: none;
  font-weight: 400;
}

.project .meta li {
  /*color: #fff;*/
}

.meta li b {
  font-weight: 400;
  padding-right: .25em;
}

.meta ul.tags li, .meta li time{
  display:inline-block;
  padding: 0 5px;
  font-size: 0.8em;
}

@media screen and (max-width: 600px){
  .meta ul.tags li, .meta time {
    font-size: 0.8em;
  }
}

.project .meta ul.tags li a {
  /*color: #fff;*/
  border-bottom: none;
}

.project .meta ul.tags li a:hover {
  color: #bbb;
}

.category .meta {
  padding-top: 0.3em;
  text-align: center;
  margin-bottom: 0;
  line-height: 1em;
  font-size: 0.6em;
}

.projectgallery .meta a{
  width: auto;
}

.category .meta > li {
  display: block;
}

.category .meta ul.tags a, .category .meta time{
  display: inline-block;
  color: #999;
}

.ellipsis {
  text-overflow: ellipsis;
  margin-right: 5px;

  /* Required for text-overflow to do anything */
  white-space: nowrap;
  overflow: hidden;
}

/* Project gallery
-------------------------------------------------- */

.home .projectgallery{
  overflow: hidden;
}

.projectgallery {
  clear: both;
  position: relative;
  margin-left: -1px;
}

.projectgallery > li {
  list-style: none;
  /*padding-bottom: 1px;*/
  position: relative;
  display:inline-block;
  line-height: 0;
  transition: visibility 0s, opacity 0.5s linear;
  padding-left: 4px;
  padding-bottom: 4px;
  margin-left: 0%;
  margin-right: 0px;
}
.projectgallery > li a {
  margin-bottom: 1px;
}
a.imgHolder {
  background-color: #f2f2f2;
}

@media screen and (max-width: 50em) {
  .projectgallery > li {
  }
}

.projectgallery a {
    border: 0;
    -ms-background-position-x: center;
    -ms-background-position-y: bottom;
    background-position: center center;
    background-size: cover;
    display:inline-block;
    /*width: 100%;*/
    height: 100%;
}

.category a.imgHolder:hover {
  opacity: 0.7;
}

.imgHolder img {
  visibility: hidden;
  position: absolute;
}

.projectgallery h3 {
  font-size: 0.8em;
  position: absolute;
  top: 50%;
  max-width: 750px;
  text-align: center;
  width:100%;
}

.projectgallery h3 div{
  /*border: 2px solid #fff;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;*/
  display:inline-block;
  padding: 2px 5px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  font-weight: 400;
  margin: 0 5%;
  opacity: 0;
}

.projectgallery a:hover h3 div{
  /*background-color: white;
  color: #555;
  border-color: #555;*/
  transition: color .2s, background .2s, border .2s, opacity .2s;
  opacity: 100;
}

/* Category
-------------------------------------------------- */

section.category {
  padding-top: 100px;
  padding-bottom: 2em;
}

.category .tags a {
  padding: 0 5px 0 0;
}

.category li {
  padding-bottom: 1em;
}

/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 0em 0;
}
.nextprev a {
  border: 0;
}
.nextprev .prev {
  float: left;
}
.nextprev .next {
  float: right;
}

/* Pagination
-------------------------------------------------- */

nav.pagination {
  text-align: center;
}

nav.pagination li{
  list-style: none;
  display: inline-block;
}

nav.pagination a {
  padding: 0 0.5em;
}

nav.pagination a.active, nav.menu a.active {
  border-bottom: 2px solid #000;
}

/* Columns
-------------------------------------------------- */
.columns {
  margin-right: -2rem;
}
.column {
  display: inline-block;
  vertical-align: top;
  padding-right: 2rem;
}
.columns-1 .column {
  width: 100%;
}
.columns-2 .column {
  width: 50%;
}
.columns-3 .column {
  width: 33.33%;
}
.columns-4 .column {
  width: 25%;
}
.columns-5 .column {
  width: 20%;
}

/* Footer
-------------------------------------------------- */


.footer {
  font-size: .8em;
  position: absolute;
  bottom: 0px;
  right: 0px;
  height: 2em;
  padding: 0 1em;
}

.copyright {
  float: left;
}

.colophon {
  float: right;
}
.colophon a b {
  padding-left: .25em;
}
