/*! HTML5 Boilerplate v5.3.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
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * 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: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * 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,
img,
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;
}


/* Slider */

/*.pace {
  -webkit-pointer-events: none;
  pointer-events: none;

  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: black
  position: absolute;
  z-index: 2000;
  right: 100%;
  width: 100%;
  height: 5px;
  bottom: 28%;
}*/

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

/*body{
    display:    none;
}*/

header, #wrapper, .wrapper, .footer-wrap{
    width:      82%;
    margin:     0 auto;
}

img{
    width:      100%;
    float:      left;
    max-width:  100%;
}

.left{
    float:      left;
}

.right{
    float:      right;
    /*text-align: right;*/
}



body, nav ul, #work-nav ul, h4{ margin: 0; padding: 0}
/*Theinhardt*/
/*a{
    text-decoration: none; 
    color:      #636363;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-size:  16px;
}*/
/*Aktiv*/
a{
    text-decoration: none; 
    color:      #636363;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-size:  15px;
}

ul li{
    list-style-type: 
    none; display: inline; 
    margin-right:   21px;
}

.clear{clear: both;}
a, .selected, footer span{  
    padding-bottom: 2px;
    border-bottom: solid 1px grey;
    text-decoration: none;
    color:      #636363;
}

nav a:hover, h1:hover{
    /*font-style: light italic;
    /*font-weight: 600;*/
    /*color:red;*/
}

nav{
    width:      100%;
    float:      left;
    margin-top: 1%;
    margin-bottom: 1%;
    clear:      both;
}

nav ul{
    /*float:      left;*/
}

nav a{ 
    border:     none;
}

header svg {
    float: right;
    width: 25px;
}

#home-nav header nav li .home-nav, #info-nav header nav li .info-nav {
    padding-bottom: 2px;
    border-bottom: solid 1px grey !important;
    text-decoration: none;
    color:      #636363;
}

/* FONTS */

@font-face {
    font-family: 'GTSectra_Fine_Italic';
    /*src: url('../fonts/gt-sectra-fine-medium-italic-webfont.woff2') format('woff2'),
         url('../fonts/gt-sectra-fine-medium-italic-webfont.woff') format('woff');*/
         src: url('../fonts/gt-sectra-fine-medium-italic-webfont.woff2') format('woff2'),
         url('../fonts/gt-sectra-fine-medium-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'Theinhardt-regular';
  src: url('../fonts/theinhardt-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/theinhardt-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/theinhardt-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/theinhardt-regular.woff') format('woff'), /* Pretty Modern Browsers */
       url('../fonts/theinhardt-regular.svg#svgtheinhardt-regular') format('svg'); /* Legacy iOS */
    font-weight: normal;

    /*url('../fonts/theinhardt-regular.ttf')  format('truetype')*/
    font-style: normal;
}

body{
    font-family: 'Theinhardt-regular';
    /*font-family: 'Aktiv Grotesk';*/
    /*font-family:   'GT Pressura Mono Trial';*/
    /*display: none;*/
}

.caption-title, .classy{
    font-family: 'GTSectra_Fine_Italic';
}

.classy{
    /*font-family: 'GTSectra_Fine_Italic';*/
    /*font-family: 'JRUG PUNK';*/
    font-weight: 400;
    /*font-style: italic;*/
    margin-right: 5px;
}

nav{
    font-weight:    300;
}

/*theinhardt*/
h1{
    width: 852px;
    /* width: 900px; */
    font-size: 48px;
    font-weight: 400;
    /* line-height: 40px; */
    line-height: 50px;
    letter-spacing: -0.5px;
    color: #3c3c3c;
    -webkit-font-smoothing: antialiased;
    position: relative;
    margin-top: 10%;
    float: left;
    margin-bottom: 11%;
}

.index-page h1{
    /*width:          900px;*/
    /*font-size:      40px;*/
    /*line-height:    41px;*/
}

header h1 a{
    font-size:      34px;
    font-weight:    400;
    color:          #3c3c3c;
    border-bottom: none;
}

/*Aktiv*/
/*h1{
    width:          822px;
    font-size:      32px;
    font-weight:    200;
    line-height:    40px;
    letter-spacing: -0.5px;
    color:          #3c3c3c;
    -webkit-font-smoothing:antialiased;
    position:       relative;
    margin-top: 9%;
}*/

header{
    /*margin-bottom:  4.5%;*/
    margin-bottom:   5%;
}

h2{
    font-size:      19px;
    font-weight:    200;
}

/*theinhardt*/
p{
    font-size:      17px;
    line-height:    24px;
    font-weight:    400;
    color:          #4c4c4c;
    -webkit-font-smoothing:antialiased;
}

.light-text{
    opacity:        0.5;
}

/*Aktiv*/
/*p{
    font-size:      15px;
    line-height:    23px;
    font-weight:    400;
    color:          #4c4c4c;
    -webkit-font-smoothing:antialiased;
}*/

.work-item h2, .work-item p{
    margin-top:     10px;
}

/* FOOTER */

footer{
    width:          100%;
    /*background:     #1d1e1e;*/
    border-top:     1px solid grey;
    padding:        3% 0 4%;
    bottom:         0;
    float:          left;
    margin-top:     5%;
}

nav a:hover{
    /*color:          red;*/
    opacity:        0.8;
}

footer a{
    margin-right:   3px;
    margin-bottom:  10px;
    /*font-size:      16px;*/
    font-weight:    normal;
}

footer p{
    margin-bottom:  7px;
}

footer a, footer span, .scrollup{
    border-width: 2px
    border-color: white;
}

.work-page footer{
    margin-top:     7%;    
}

.logo{
    width:          100px;
    float:          left;
}

.signoff{
    /*width:          300px;*/
    float:          right;
    color:          white;
    /*text-align:     right;*/
    margin-top:     1%;
}


/* INDEX */

.grey-area{
    width:      100%;
    float:      left;
}

.greyout{
/*    -webkit-filter:grayscale(100%);
    filter: grayscale(100%);*/
  filter: url(#grayscale);
  -webkit-filter: grayscale(1);
}

.greyout:hover{
  filter: url(#grayscale);
  -webkit-filter: grayscale(0);
/*    -webkit-filter:grayscale(none);
    filter: grayscale(none);  */ 
}

.greyin:hover{
  filter: url(#grayscale);
  -webkit-filter: grayscale(1);
}

.work-item{
    display:    block;
    cursor:     pointer;
    position:   relative;
    margin-bottom: 3%;
}

.work-item p{
    font-size: 16px;
    /*text-align: right;*/
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing:1px;
    /*opacity:    0.5;*/
    -webkit-font-smoothing:antialiased;
    margin-top: 0;
    /*mix-blend-mode: difference;*/
}

.index-page .caption{
    background: rgba(0, 0, 0, 0.7);
}

.grey-it-out{
    -webkit-filter:grayscale(100%);
    filter: grayscale(100%);
}

.colour-it-in{
    -webkit-filter:grayscale(0);
    filter: grayscale(0);
}

.index-page .grey-area .caption-light .caption{
    background: rgba(255, 255, 255, 0.6);
    /*background: rgb(251, 255, 0);*/
    /*background: rgba(34, 34, 34, 0.9);*/

}

.index-page .grey-area .caption-light .caption p{
    color:black !important;
}

.caption-title{
    /*font-family: 'GTSectra_Fine_Italic';*/
    font-style: italic;
    height:     18px;
    width:      100%;
    text-align: center;
    position:   absolute;
    margin:     auto;
    top:        0;
    right:      0;
    bottom:     0;
    left:       0;
}

.index-grid-fix{
    width:      74.2%;
    float:      right;
}

.index-grid-fix .grid2 {
    width:      64.7%;
}

.index-grid-fix .grid1 {
    width:      30.7%;
}

.section-break{
    float:      left;
}

.page-content{
    float:      left;
}

.greyout, .greyin, .thm-hfc a{
-webkit-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1); 
-webkit-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 
   -moz-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 
     -o-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 
        transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 

-webkit-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1); 
-webkit-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 
   -moz-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 
     -o-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 
        transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 
    
}

/*
.opaque{
    opacity:    1;
  -ms-filter:   "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter:       alpha(opacity=1);
}*/

/* INFO */


.info-page footer{
    margin-top:     100px;
}

.info-page header{
    /*margin-bottom: 0;*/
}

.info-page h1{
    margin-bottom:  1%;
}

.profile-pic{
    -webkit-transition-delay: 2s !important; /* Safari */
    transition-delay: 2s !important;
}

/* WORK */

.control-button{
/*    width:      30px;
    height:     30px;
    position:   fixed;
    background: black;*/
}

.top-left, .top-right{
    top:        0;
}

.bottom-left, .bottom-right{
    bottom:     0;
}

.top-left, .bottom-left{
    left:       0;
}

.top-right, .bottom-right{
    right:      0;
}

.work-description{
    width:      70%;
}

.work-page p{
    /*font-size:      19px;*/
    /*line-height:    24px;*/
    /*font-weight:    200;*/
    /*-webkit-font-smoothing:antialiased;*/
}


.project-description{
    margin-bottom: 8%;
    margin-top: 3%;
}

.work-image{
    width:      100%;
    position:   relative;
    margin-bottom: 5%;
    float:      left;
}

.info-page #wrapper{
    overflow: hidden;
    float:      le
}

.profile-pic{
    position:   absolute;
    /*height:     100vh;*/
    width:      35%;
    bottom:     9%;
    right:      0;
}

footer{
    position:   relative;
    z-index:    100;
    background: white;
}

.first{
    width: 118%;
    left: 0;
    margin-left: -9%;
}

.work-page .grid2{
    /*width:      45%;*/
    /*margin-bottom: 2%;*/
}

.grid1{
    width:      25%;
}

.margin-r{
    margin-r:   3%;
}

.caption {
    /*display:  none;*/
    position:   absolute;
    margin:     auto;
    padding:    5%;
    top:        0;
    right:      0;
    bottom:     0;
    left:       0;
    width:      100%;
    height:     100.5%;
    background: rgb(34, 34, 34);
    /*background: #f2f2f2;*/

-webkit-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1); 
-webkit-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 
   -moz-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 
     -o-transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 
        transition: all 350ms cubic-bezier(0.540, 0.015, 0.455, 1.010); 

-webkit-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1); 
-webkit-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 
   -moz-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 
     -o-transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 
        transition-timing-function: cubic-bezier(0.540, 0.015, 0.455, 1.010); 

    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.caption{
    opacity:    0;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter:     alpha(opacity=0);
    -webkit-backface-visibility: hidden;
}

.caption p{
    color:      white;
}

.caption.opaque{
    opacity:    1;
  /*opacity:        0.75;*/
  -ms-filter:   "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter:       alpha(opacity=1);
}

.logos-page .caption-title{
    width:      90%;
    height:     155px;
    text-align: left;
    padding:    0 5%;
}


/* Case studies */

.work-page .shirt{
    width:      40%;
    margin-right: 3%;
}

.work-page .label{
    width: 38%;
    margin-top: 1%;
    margin-left: 3%;
    margin-bottom: 7%;
}

.other-projects .op-details{
    margin-bottom: 5%;
}


.other-projects  footer{
        margin-top: 6%;
}

/* ------ CYCLER -------- */

.cycler, .cycler2{
    width:      100%;
    min-height:     100%;
    position:   relative
    float:      left;
}

.cycler img, .cycler2 img{
    position:   absolute;
    z-index:    1;
    /*bottom:   0;*/
    /*top:      0;*/
    bottom:     0;
}

.cycler img.active, .cycler2 img.active{
    z-index:    3;
}

.embed-container { position: relative; 
    padding-bottom: 31%; 
    height: 0; 
    overflow: hidden; 
    max-width: 100%; 
    border: 0 !important;
} 

    .embed-container iframe, .embed-container object, .embed-container embed { 
        position: absolute; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; }


/* ------ GRID DEFAULT -------- */

.thm{
    background: #e2e2e2;
}

.thm :hover{
    cursor:     crosshair;
}

/*.grid1, .grid2, .grid3, .grid4{*/
    /*float:      left;*/
/*} */

.grid1{
    width:      22.45%;
    position: relative;
}

.grid2{
    width:      48.3333333333333%;
    position: relative;
}

.grid3{
    width:      73.166666666666%;
    position: relative;
}


.grid4{
    width:      100%;
    position: relative;
}

.grid1 img, .grid2 img, .grid3 img, .grid4 img, #work-links .thm img{
    max-width:  100%;
    vertical-align: bottom;
}

.hover-img{
    display:    none;
}

.hover-img:hover{
    display:    block;
}

.left{
    float:      left;
}

.right{
    float:      right;
}

.center{
    margin:     0 auto 4%;
}


.margin-r{
    margin-right: 3.3%;
}

.text-right{
    width:      44.5%;
    text-align: left;
    /*margin-left: 21px;*/
}

#work-body .caption{
    background: rgb(26, 26, 26);
}



/* ==========================================================================
   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 {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * 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;
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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,
    *:first-letter,
    *:first-line {
        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;
        color:      inherit;
    }

    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,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

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

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