/*! HTML5 Boilerplate v6.0.1 | 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
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
    font-family: 'butler_stencilregular';
    src: url('../fonts/butler_regular_stencil-webfont.woff2') format('woff2'),
         url('../fonts/butler_regular_stencil-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}


*{
    box-sizing: border-box;
}

.wrapper, .container{
    max-width:  1150px;
    margin:  0 auto;
    padding: 0 20px;
}

.header{
    position: relative;
    z-index:  100;
}
.logo{
    float: left;
    display: block;
    margin: 43px 0 45px;
}
nav ul {
    list-style:  none;
    margin: 45px 0;
    padding: 0;
    float:  right;
}

nav li.social-link{
    margin: 0 0 0 130px;
}
nav ul li{
    display: inline-block;
    margin: 0 32px 0 0;
}
nav li a {
    font-family: 'Ropa Sans', sans-serif;
    color: #231f20;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

.offscreen-nav{
    display: block;
    width:  100%;
    height:  100vh;
    background-color: #fff;
    position: fixed;
    top: -150%;
    left:  0;
    z-index: 99;
    transition: top .3s ease;
}

.mobile-nav-open .offscreen-nav{
    top: 0;
    transition: top .3s ease;
}

.offscreen-nav ul {
    list-style: none;
    text-align: center;
    position: absolute;
    top:  50%;
    left:  50%;
    transform: translate(-50%, -50%);
}
.offscreen-nav ul li{
        margin: 0 32px 0 0;
}

.offscreen-nav ul li a {
    font-family: 'Ropa Sans', sans-serif;
    color: #231f20;
    font-size: 18px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

h1{

    font-family: 'butler_stencilregular';
    font-size: 85px;
    line-height: 101px;
    font-weight: 400;
        margin: 36px 0 100px 0;


}




    /* clearfix because of floats */
    .container:before,
    .container:after {
      content: "";
      display: table;
    }
    .container:after {
      clear: both;
    }
    .item {
      float: left;
      margin-bottom: 20px;

    }
    .item img {
      max-width: 100%;
      max-height: 100%;
      vertical-align: bottom;
    }
    .first-item {
      clear: both;
    }
    /* remove margin bottom on last row */
    .last-row, .last-row ~ .item {
      margin-bottom: 0;
    }

.project-link{
    position: relative;
    display: block;
    width:  100%;
    height:  100%;
}


.project-overlay{
    display: block;
    position: absolute;
    width:  100%;
    height:  100%;
    background-color: rgba(255,255,255, .0);
    transition: all .4s ease;
    overflow: hidden;
    z-index: 20;
}
.project-desc{
    text-align: center;
    position: absolute;
    top:  -50%;
    left:  50%;
    transform: translate(-50%, -50%);
    transition: all .4s ease;
}
.project-desc span{
    font-family: 'Ropa Sans', sans-serif;
    color: #231f20;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}
.item{
    overflow: hidden;
}
.project-link img{
    transform: scale(1, 1);
    transition: all .4s ease;
}
.project-link:hover img{
    transform: scale(1.1, 1.1);
    transition: all .4s ease;
}

.project-link:hover .project-overlay{
    background-color: rgba(255,255,255, .7);
    transition: all .4s ease;
}

.fixed-header{
    position: absolute;
    width:  100%;
    top:  0;
    left:  0;
    z-index: 100;
}

.mobile-nav-open .fixed-header{
    position: inherit;
}
.project-link:hover .project-desc{
    top:  50%;
    transition: all .4s ease;
}

.sub-page .header{
    position: relative;
    z-index: 10;
}

.sub-page .panel{
    width: 50%;
    height: 100%;
    float: left;
}

.sub-page h2{

    margin-left: -15%;
        font-family: 'butler_stencilregular';
    font-size: 86px;
    line-height: 101px;
    font-weight: 400;
    margin-bottom: 40px;
}

.sub-page p{
    font-family: 'PT Mono', monospace;
    font-size: 13px;
    line-height: 24px;
    max-width:  470px;
    margin-left: 55px;
}

.project-main-desc{
       font-family: 'PT Mono', monospace;
    font-size: 13px;
    line-height: 24px; 
    margin: -70px 0 70px 150px;
    padding: 0 50px 0 0;
}

.contact-page p {
    line-height: 30px;
}

.mg{
    background: url('../img/magdalena-golebiewicz.jpg') center bottom no-repeat;
    background-size: cover;
}
.contact{
    background: url('../img/kontakt.jpg') center bottom no-repeat;
    background-size: cover;  
}

.photo-panel img{
    width:  100%;
    height: auto;
}
.full-page{

    height: 100vh;
}

.content-panel{
    position: relative;
}
.content-content{
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.client{
    position: relative;
    width:  32%;
    padding-top: 32%;
    display: block;
    float:  left;
    background-color: #e8e8e8;
    text-align: center;
    margin: 1% 0;
}

.client:nth-child(3n+2)
{
   margin-left: 2%;
   margin-right: 2%;
}
.client img{
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width:  90%;

}
.footer-content{
    font-family: 'Ropa Sans', sans-serif;
    color: #231f20;
    font-size: 14px;
    letter-spacing: 0.15em; 
    text-align: center;
    text-transform: uppercase;
    padding:  45px 0; 
}

#nav-icon2 {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 100;
  margin: 48px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
  float: right;
}

#nav-icon2 span {
  display: block;
  position: absolute;
  height: 1px;
  width: 70%;
  background: #000;
  opacity: 1;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon2 span:nth-child(even) {
  left: 50%;
  border-radius: 0 9px 9px 0;
}

#nav-icon2 span:nth-child(odd) {
  left:0px;
  border-radius: 9px 0 0 9px;
}

#nav-icon2 span:nth-child(1), #nav-icon2 span:nth-child(2) {
  top: 0px;
}

#nav-icon2 span:nth-child(3), #nav-icon2 span:nth-child(4) {
  top: 7px;
}

#nav-icon2 span:nth-child(5), #nav-icon2 span:nth-child(6) {
  top: 14px;
}

#nav-icon2.open span:nth-child(1),#nav-icon2.open span:nth-child(6) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon2.open span:nth-child(2),#nav-icon2.open span:nth-child(5) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon2.open span:nth-child(1) {
  left: 5px;
  top: 7px;
}

#nav-icon2.open span:nth-child(2) {
  left: calc(50% - 5px);
  top: 7px;
}

#nav-icon2.open span:nth-child(3) {
  left: -50%;
  opacity: 0;
}

#nav-icon2.open span:nth-child(4) {
  left: 100%;
  opacity: 0;
}

#nav-icon2.open span:nth-child(5) {
  left: 5px;
  top: 7px;
}

#nav-icon2.open span:nth-child(6) {
  left: calc(50% - 5px);
  top: 7px;
}

#nav-icon2 {
    display: none;
}

@media all and (max-width: 1100px) {

    nav{
        display: none;
    }
    #nav-icon2{
        display: block;
    }   

}

.mobile-header-panel{
    display: none;
}
@media all and (max-width: 767px){
    .sub-page h2 {
        margin-left: -15%;
        font-family: 'butler_stencilregular';
        font-size: 66px;
        line-height: 81px;
        font-weight: 400;
        margin-bottom: 35px;
    }
}
@media all and (max-width: 620px){
.mobile-header-panel{
    display: block;
}
    .sub-page h2 {
        margin-left: 0;
        font-family: 'butler_stencilregular';
        font-size: 46px;
        line-height: 61px;
        font-weight: 400;
        margin-bottom: 35px;
    }

    .content-content{
        position: relative;
        top:  0;
        left:  0;
        transform: none;
    }

    .content-content p{
        margin:  0;
    }

    .content-panel{
        padding:  0 15px;
    }

.mobile-header-panel img{
    width:  100%;
    height: auto;
}
.photo-panel{
    display: none;
}
.sub-page .panel{
    float: none;
    width:  100%;
}
.full-page{
    height: auto;
}

}

@media all and (max-width: 710px) {
    h1{
    font-size: 65px;
    line-height: 81px;
    margin:  16px 0 80px 0;
    }

    .project-main-desc{

        line-height: 24px; 
        margin: -70px 0 70px 0px;
        padding: 0 50px 0 0;
    }

}

@media all and (max-width: 460px) {
    h1{
    font-size: 35px;
    line-height: 51px;
    margin:  0px 0 40px 0;
    }

    .project-main-desc{

        line-height: 24px; 
        margin: -20px 0 70px 0px;
        padding: 0 50px 0 0;
    }
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * 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;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

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


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



@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 {
        white-space: pre-wrap !important;
    }
    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;
    }

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

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

