/*********************************************************************
for proper placement of the elements
but not their styling
*********************************************************************/


/*----------------------- Reset ------------------------------ */

* {
  margin: 0;
  padding: 0;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

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

.nav.nav__wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5em 1em 0 1em;
  display: flex;
  display: -webkit-flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  line-height: 1.8em;
}

.nav__titles {
  position: relative;
}

.nav__title-logo {
  display: inline-block;
  position: absolute;
  top: 0;
}

.nav__title-text {
  display: inline-block;
  margin-left: 2em;
  padding: 0 0.5em;
}

/* mobile first styles */

.nav__links {
  /*margin-left: 0;*/
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nav__links-list {
  display: flex;
  flex-direction: column;
}

.nav__link {
  /*padding: 0.2em 0;*/
  text-align: right;
}

.nav__toggle {
  text-align: right;
}


/*mobile first: show pages only on large screens*/
#show-pages {
  display: none;
}

/*Hide checkbox*/
input[type=checkbox]{
    display: none;
}

/*Show pages when invisible checkbox is checked*/
input[type=checkbox]:checked ~ #show-pages {
    display: flex;
}

/* Arrangement on larger displays */

@media screen and (min-width: 35em) {
  #show-pages {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
  .nav__links {
    /*margin-left: 0;*/
    flex-grow: 1;
  }
  .nav__links-list {
    width: 100%;
    display: flex;
    flex-direction: row;
  }
  /*#show-pages {
    width: 100%;
    margin-left: 1em;
    }*/

  .nav__link {
    /*display: inline-block;*/
    padding: 0 0.5em;
  }
  .nav__link--right {
    /*float: right;*/
    margin-left: auto;
    text-align: right;
  }
}

/*----------------------- Header ------------------------------ */

/*#header {
  max-width: 960px;
  margin: 0 auto;
  padding: 2em 1em;
}*/


/*----------------------- Content ------------------------------ */

#content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2em 1em;
}

#content img, #content p img {
  width: 100%;
}


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

#footer {
  max-width: 960px;
  margin: 4em auto;
  padding: 0 1em;
}


/*----------------------- Blocks ------------------------------ */

/* new blocks with new typology seem to work well */
/* additional div has to be added though */

.block--wrapper {
  position: relative;
  width: 100%;
}

.block__one-by-one {
  padding-bottom: 100%;
}

.block__content {
  position: absolute;
  top: 0;  bottom: 0;  left: 0;  right: 0;
  margin: 0.5em;
  padding: 2em;
}

.block__content--flex {
  display: flex;
  flex-direction: column;
}



/*----------------------- Old Blocks ------------------------------ */

/* remove all this later - nando 170315

.square {
  height: auto;
  position: relative;
}

.square:before {
  content: '';
  display: table;
  float: left;
  padding-top: 100%;
  position: absolute;
}

.square > div {
  height: 100%;
  padding: 2em;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
}

.square > img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  mix-blend-mode: soft-light;
}*/

a.link-box span {
  position:absolute;
  border: none;
  width:100%;
  height:100%;
  top:0;
  left: 0;

  z-index: 1;
}
/*a.link-box {
  border: none;
}*/

/*----------------------- Alignements ------------------------------ */

.horizontal-center {
  text-align: center;
}
.horizontal-right {
  text-align: right;
}
.flex-bottom {
  margin-top: auto;
}
