/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   
* {
  padding:0;
  margin:0;
  transition: all .2s ease-in-out;
}

html {
    color: #222;
    font-family: 'Roboto', sans-serif;
    font-size: 1.05em;
    line-height: 1.4;
    font-weight: 300;
    height: 100%;
}
body {
  height: 100%;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #151515;
    color: #ffffff;
    text-shadow: none;
}

::selection {
    background: #151515;
    color: #ffffff;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-bottom: 2px solid #f1f2f4;
    padding-top: 20px;
    margin-bottom: 20px;

}


/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}



/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}


/*
* Typo
*/

@font-face {
  font-family: Roboto;
  src: url(../fonts/Roboto-Light.ttf) format('ttf'),
      url(../fonts/Roboto-Light.ttf) format('ttf');
  font-weight:  300;
  font-style:   normal;
  font-stretch: normal;
}

blockquote,
q {
  quotes: none;
}
blockquote p, p.emphasized {
    font-size: 2rem;
    line-height: 3rem;
    font-family: miller-display, serif;
}
blockquote p:before,
blockquote p:after,
q:before,
q:after {
  content: '"';
}

blockquote footer, .caption {
  color: #75767A;
  padding-top: 10px;
}
blockquote footer cite {
  font-style: normal;
}
p {
  font-size: 1em;
  line-height: 1.9em;
  font-weight: 300;
}
h1 {
  font-size: 2.1em;
  font-weight: 300;
}
h2, h3, h4, h5 {
  display: inherit;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 300;
}
h4 {
  font-weight: 300;
  color: #75767A;
}
h5 {
  font-size: 1em;
  color: #5d5f60;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.tag {
  padding-left:8px;
  padding-right:8px;
  margin-top:6px;
  display:inline-block;
  background: #f1f2f4;
}

/*
 * Animations
*/

@keyframes fadeInUp {
  0% {opacity: 0; transform: translate3d(0, 100%, 0);}
  100% {opacity: 1; transform: none;}
}
@keyframes fadeOut {
  0% {
    opacity: 1
  }
  100% {
    opacity: 0
  }
}

 

/*
 * Links
*/
a {
  text-decoration: none;
  color: #000000;
}
#maincontent a, #contentlist a h2 {
	box-shadow: inset 0 -0.12em 0 0 #ffffff,
		inset 0 -.15em 0 0 #e4e6e9,
		inset 0 -.15em 0 0 currentColor;
	text-decoration: none;
	text-shadow: .05em 0 #ffffff,
		-0.05em 0 #ffffff,
		1.5px 0 #ffffff,
		-1.5px 0 #ffffff;
		  transition: all .2s ease-in-out;
      padding-bottom: 4px;
}
#maincontent a:hover, #contentlist a:hover h2 {
	box-shadow: inset 0 -0.12em 0 0 #ffffff,
		inset 0 -.15em 0 0 #000000,
		inset 0 -.15em 0 0 currentColor;
	text-decoration: none;
	text-shadow: .05em 0 #ffffff,
		-0.05em 0 #ffffff,
		1.5px 0 #ffffff,
		-1.5px 0 #ffffff;
}
#contentlist a:hover img {
  transform: scale(1.05);

}


/*
 * General styling
 */

 .vcenter {
     display: table;
 }
 .vcentercontent {
 display: table-cell;
 vertical-align: middle;
 }

/*
 * Navbar
 */

.container {
       padding:10px;
}

#navbar {
  position: fixed;
  z-index: 999;
  width: 100%;
  left:0;
  top: 0;
}
.mainnav ul a  {
    color: #919295;
}
.mainnav ul a.active  {
  color: #000000;
}
.mainnav {
  float: right;
}
.mainnav ul {
  list-style: none;
  display: block;
}
.mainnav ul li {
  float: left;
  padding-right: 1em;
}
.mainnav ul li:last-child {
  padding-right:0;
}

/*
 * Article List
*/
header#title {
  font-size:1.2em;
  height: 50%;
  max-height: 560px;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}
.pageteaser {
  font-size: 1.4em;
}
#contentlist a h2 {
  font-size: 1.8em;
  display: inline;
}
#contentlist p {
  font-family: miller-display, serif;
  padding-top: 20px;
  font-size: 1.2em;
}
#contentlist .grid .unit .image {
  padding-bottom: 20px;
}


/*
* Content Blocks
*/


#barba-wrapper {
  height: 100%;
}
#barba-wrapper p.teaser {
  font-size: 1.1em;
  font-family: miller-display, serif;
  padding-top:20px;
}
#barba-wrapper p.big-text, p.big-text  {
  font-size: 1.1em;
  font-family: Atlasgrotesk;
}
#barba-wrapper img, #contentlist img {
    vertical-align: middle;
    width: 100% !important;
}
#barba-wrapper .grid.imagecontainer {
  padding-left: 0;
  padding-right: 0;
  overflow:hidden;
  height: 300px;
}
#barba-wrapper .grid.imagecontainer .unit {
  padding: 0 !important;
}
#barba-wrapper .grid.imagecontainer .unit img {
  object-fit: contain;
}
.greybg {
  background: #f1f2f4;
}
footer.grid {
  font-size: 0.6em;
  padding-top:0;
  color: #919295;
  padding-bottom: 40px;
}

/*
 * Grid
*/
/*

 * Gridism
 * A simple, responsive, and handy CSS grid by @cobyism
 * https://github.com/cobyism/gridism
 */


/* Set up some rules to govern the grid */
.grid {
  display: block;
  clear: both;
  padding: 20px 0;
}
.grid .unit {
  float: left;
  width: 100%;
  padding: 0 10px;
}

/* This ensures the outer gutters are equal to the (doubled) inner gutters. */
.grid .unit:first-child { padding-left: 20px; }
.grid .unit:last-child { padding-right: 20px; }

/* Nested grids already have padding though, so let’s nuke it */
.unit .unit:first-child { padding-left: 0; }
.unit .unit:last-child { padding-right: 0; }
.unit .grid:first-child > .unit { padding-top: 0; }
.unit .grid:last-child > .unit { padding-bottom: 0; }

/* Let people nuke the gutters/padding completely in a couple of ways */
.no-gutters .unit,
.unit.no-gutters {
  padding: 0 !important;
}

/* Wrapping at a maximum width is optional */
.wrap .grid,
.grid.wrap {
  max-width: 978px;
  margin: 0 auto;
}

/* Width classes also have shorthand versions numbered as fractions
 * For example: for a grid unit 1/3 (one third) of the parent width,
 * simply apply class="w-1-3" to the element. */
.grid .whole,          .grid .w-1-1 { width: 100%; }
.grid .half,           .grid .w-1-2 { width: 50%; }
.grid .one-third,      .grid .w-1-3 { width: 33.3332%; }
.grid .two-thirds,     .grid .w-2-3 { width: 66.6665%; }
.grid .one-quarter,    .grid .w-1-4 { width: 25%; }
.grid .three-quarters, .grid .w-3-4 { width: 75%; }
.grid .one-fifth,      .grid .w-1-5 { width: 20%; }
.grid .two-fifths,     .grid .w-2-5 { width: 40%; }
.grid .three-fifths,   .grid .w-3-5 { width: 60%; }
.grid .four-fifths,    .grid .w-4-5 { width: 80%; }
.grid .golden-small,   .grid .w-g-s { width: 38.2716%; } /* Golden section: smaller piece */
.grid .golden-large,   .grid .w-g-l { width: 61.7283%; } /* Golden section: larger piece */

/* Clearfix after every .grid */
.grid {
  *zoom: 1;
}
.grid:before, .grid:after {
  display: table;
  content: "";
  line-height: 0;
}
.grid:after {
  clear: both;
}

/* Utility classes */
.align-center { text-align: center; }
.align-left   { text-align: left; }
.align-right  { text-align: right; }
.pull-left    { float: left !important; }
.pull-right   { float: right !important; }



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
  visibility: hidden;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}



/***
  SCRIPT SPECIFIC STYLES
***/



/**
  * Slenderbox styles
**/

#sboxWrapper {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 9999;
    overflow: hidden;
    -webkit-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
}

#sboxOverlay {
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

#slenderbox {
    position: fixed;
    height: 355px;
    width: 320px;
    color: #000000;
    font-family: Atlasgrotesk;
}


#sboxImgH {
    border-radius: 3px;
    padding: 10px;
}

#sboxLoad {
    position: absolute;
    height: 40px;
    width: 40px;
    top: 140px;
    left: 140px;
    -webkit-backface-visibility: hidden; /* Fix ghosting problem in WebKit */
}

#sboxImg {
    height: 300px;
    width: 300px;
    background-size: 100%;
    opacity: 0;
}

#sboxX {
  position: absolute;
  display: block;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  overflow: hidden;
}
#sboxX:hover::before, #sboxX:hover::after {
  background: #afb3b7;
}
#sboxX::before, #sboxX::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  margin-top: -1px;
  background: #000000;
}
#sboxX::before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
#sboxX::after {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#sboxTitle {
    margin: 5px 0 0 15px;
}

#sboxNum {
    margin: 2px 0 0 15px;
    font-size: 10px;
    font-weight: normal;
}

#sboxNext, #sboxPrev {
    position: absolute;
    height: 320px;
    width: 100%;
    top: 0;
    opacity: 0;
    cursor: e-resize;
    display: none;
}

#sboxNext {
    right: 0;
}

#sboxNextA {
    right: 20px;
}

#sboxLoading {
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 60px;
  border: 2px solid #000000;
}
#sboxLoading:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: #000000;
  top: 19px;
  left: 19px;
  transform-origin: 1px 1px;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes expand {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.5);
  }
}

.profile {
  border-radius: 100%;
  height: 100px;
  float: left;
}

.wrapper {
	height: 100%;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .name {
    padding: 30px 0 0 10px;
    float: left;
  }
.connect a {
  margin-right: 20px; 
}



/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media screen and (max-width: 668px) {
     /*
     *Grid
     */


     .grid .unit.image {
      padding-bottom:20px;
     }
     #contentlist.articles .grid .unit:first-child {
       padding-bottom: 40px;
     }

     .grid .unit {
       width: 100% !important;
       padding:0 20px;
     }
     .unit .grid .unit {
       padding-left: 0px;
       padding-right: 0px;
     }
     /* Sometimes, you just want to be different on small screens */
     .center-on-mobiles {
       text-align: center !important;
     }
     .hide-on-mobiles {
       display: none !important;
     }
   }
 
   @media only screen and (min-width: 669px) {
    hr {
      padding-top: 40px;
      margin-bottom: 40px;
     }

    .grid {
      margin: 0 auto;
      padding: 40px 20px;
    }
    .grid.casestudy .unit.text {
      padding-left:5%;
      vertical-align: middle;
    }
    #contentlist {
      margin-top:60px;
    }
    #contentlist .casestudy {
      margin-bottom:20px;
      display: flex;
      align-items: center;
    }
    #contentlist .grid .unit .image {
      padding-bottom: 40px;
    }
    #contentlist.articles .grid  {
      display: table;
    }
    #contentlist.portfolio .grid .unit, .pageheader.grid .unit.whole {
      padding-left:5.5%;
      padding-right: 5.5%;
    }
    #contentlist.portfolio .grid .unit.image {
      padding-right:0;
    }
    #contentlist.articles .unit {
      padding:0 5.5%;
      display: inline-block;
    vertical-align: middle;
    float: none;
    }

     p {
       font-size: 1.2em;
     }
    
    #barba-wrapper p.teaser {
      font-size: 1.2em;
    }

        .grid.container820, .container820   {
          max-width: 1060px;
          padding-left:80px;
          padding-right:80px;
        }
        .grid.container680, .container680   {
          max-width: 920px;
          padding-left:80px;
          padding-right:80px;
        }
        #barba-wrapper .grid.imagecontainer {
          height: 420px;
        }
   }
   @media only screen and (min-width: 767px) {

    .grid.container820, .container820   {
      padding-left:120px;
      padding-right:120px;
    }
    .grid.container680, .container680   {
      padding-left:120px;
      padding-right:120px;
    }
    #barba-wrapper .grid.imagecontainer {
      height: 420px;
    }
    #publications .whole {
      width: 66%;
    }
    .pageteaser {
      font-size: 1.8em;
    }

     #navbar.grid {
       padding: 60px 0;
     }
     #navbar.grid .unit {
       padding: 0 60px;
     }
     #barba-wrapper p.big-text, p.big-text  {
       font-size: 1.4em;
    }

     h1 {
       font-size: 3em;
     }
     p.teaser {
      font-size: 1.6rem;
     }
     #barba-wrapper .grid.imagecontainer {
       height: 520px;
     }
   }

   @media screen and (min-width: 960px) {
     /*
     *Grid
     */

     .grid {
      padding: 60px 20px;
    }
 
     .pageheader .whole {
      width: 80%;
    }

     #barba-wrapper p.teaser {
       font-size: 1.6em;
       padding-right: 20%;
     }
     #contentlist a h2 {
       font-size: 2.6em;
    }

    #contentlist p {
      font-size: 1.4em;
    }

     .grid.fullwidth {
       max-width: 100%;
     }
      .grid.container1024, .container1024 {
         max-width: 1024px;
      }
      .grid.container1200, .container1200 {
         max-width: 1200px;
      }
      #barba-wrapper .grid.imagecontainer {
        height: 720px;
      }
      .twocolumntext {
        -webkit-column-count: 2; /* Chrome, Safari, Opera */
        -moz-column-count: 2; /* Firefox */
        column-count: 2;
      }
          #title .unit .authors {
       display: block;
     }
     

   }

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

    .grid {
      margin: 0 auto;
      padding: 80px 20px;
  }
    html {
      font-size:1.3em;
    }
    .grid.container1024, .container1024 {
      max-width: 1200px;
   }
   .grid.container1200, .container1200 {
      max-width: 1400px;
   }
   #barba-wrapper .grid.imagecontainer {
     height: 720px;
   }
   .grid.container820, .container820   {
    max-width: 1060px;
    padding-left:80px;
    padding-right:80px;
  }
  header#title {
    max-height: 760px;
    min-height: 660px;
}
  .grid.container680, .container680   {
    max-width: 1020px;
    padding-left:80px;
    padding-right:80px;
  }
  }

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,



    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
