/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline; 
}

body, html { font-size: 100%;   padding: 0; margin: 0;
}

body {
  line-height: 1; 
}

h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-weight: normal; 
}

ol, ul {
  list-style: none; 
}

blockquote {
  quotes: none; 
}

blockquote:before, blockquote:after {
  content: '';
  content: none; 
}

del {
  text-decoration: line-through; 
}

/* tables still need 'cellspacing="0"' in the markup */
table {
  border-collapse: collapse;
  border-spacing: 0; }

a img {
  border: none; 
}

/* =Global
-------------------------------------------------------------- */

body {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.125em;
  font-weight: 300;
  line-height: 2;
  /*color: #919597;*/
  left: 0;
  margin: 0;
  overflow: auto; 
}

/* h2 {
  font-family: 'Source Serif Pro', serif;
  font-size: 2.75em; 
  font-weight: 400;
  color: #242b30;
  text-align: left;
} */

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75em; 
  font-weight: 400;
  color: #242b30;
  text-align: left;
}

h3 {
  color: #242b30;
  font-size: .775em;
  font-weight: 700;
  letter-spacing: 3.7px;
  text-transform: uppercase;
  margin-top: 60px;
  margin-bottom: 20px; 
}

.blink {
  color: #ED1943;
  animation: blink 1s step-start 0s infinite;
  -webkit-animation: blink 1s step-start 0s infinite; 
} 

@keyframes blink {
    50% {
      opacity: 0.0; 
    }
}

@-webkit-keyframes blink {
    50% {
      opacity: 0.0; 
    }
}

a {
  color: #01A9F4;
  text-decoration: none;
  font-weight: 400; 
}

a:hover {
  text-decoration: underline; 
}

a:focus {
  outline: 0; 
}

a:visited {
  color: #01A9F4; 
}

header a {
  color: #F3011E;
}

header a:visited {
  color: #242b30;
}

/*header a:visited {
  color: #F3011E;
}
*/
/* =Template
-------------------------------------------------------------- */

#wrapper {
  width: 100%;
  margin: 0 auto; 
}

#main {
  background-color: #fff;
  padding-top: 150px; 
}

.container {
  width: 90%;
  margin: 0 auto;
  padding: 0 0; 
}

section {
  padding: 60px 0; }
  section h1 {
    font-weight: 700;
    margin-bottom: 10px; }
  section p {
    margin-bottom: 30px; }
    section p:last-child {
      margin-bottom: 0; }
  section.color {
    background-color: #3cb5f9;
    color: white; }

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

header {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: #fff;
  -webkit-transition: height 0.3s;
  -moz-transition: height 0.3s;
  -ms-transition: height 0.3s;
  -o-transition: height 0.3s;
  transition: height 0.3s; }
  header h1#logo {
    display: inline-block;
    height: 150px;
    line-height: 180px;
    color: #242b30;
    font-size: 1.125em;
    float: left; }
  header h1#logo a {
    color: #242b30; 
    text-decoration: none; }
  header nav {
    display: inline-block;
    float: right;
    margin-right: -20px; }
    header nav a {
      line-height: 180px;
      margin-left: 20px;
      color: #242b30;
      font-weight: 700;
      font-size: .775em;
      letter-spacing: 3.7px;
      margin-right: 20px;
      text-transform: uppercase;
      -webkit-transition: all 0.3s;
      -moz-transition: all 0.3s;
      -ms-transition: all 0.3s;
      -o-transition: all 0.3s;
      transition: all 0.3s; }
      header nav a:hover {
        color: #F3011E;
        text-decoration: none; }
  header.smaller {
    height: 75px; }
    header.smaller h1#logo {
      height: 75px;
      line-height: 75px;
      font-size: 1.125em;
      -webkit-transition: all 0.3s;
      -moz-transition: all 0.3s;
      -ms-transition: all 0.3s;
      -o-transition: all 0.3s;
      transition: all 0.3s; }
    header.smaller nav a {
      line-height: 75px; }

.selected a {
  color: #F3011E;
}

/* =Modal
-------------------------------------------------------------- */

.blocker {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  overflow: auto;
  z-index: 2;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.75);
  text-align: center;
}

.blocker:before{
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.05em;
}

.blocker.behind {
  background-color: transparent;
}

.modal {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 2;
  width: 60%;
  background: #fff;
  margin-top: 40px;
  padding: 80px 80px;
  text-align: left;
}

.close a {
  font-weight: 200;
  font-size: 1.75em;
  float: right;
  margin-top: -70px;
  margin-right: -50px;
}

.modal a.close-modal {
    position: absolute;
    top: -12.5px;
    right: -12.5px;
    display: block;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
}

.close a:hover {
  text-decoration: none;
}

.intro {
  margin-top: 40px;
  margin-left: 140px;
}

.profile {
  border-radius: 50%;
  float: left;
  width: 100px;
  margin-top: 50px;
}

#about strong {
  color: #242b30;
}

.intro strong, .entry strong {
  color: #242b30;
}
  
.entry {
  margin-top: 40px;
  margin-left: 140px;
}

.resume {
  margin-left: 100px;
}

h3 {
  margin-left: 140px;
}

/* =Client Page
-------------------------------------------------------------- */

#wrapper-client {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px;
}

.content-client {
  margin: 0 5% 0 5%;
}

.work {
  width: 100%;
  margin: 0 auto;
  padding-top: 40px;
}

section {
  margin-top: 80px;
}

.main {
  width: 62.5%;
  float: left;
  margin-bottom: 80px;
  margin-right: 7.5%;
  text-align: left;
}

.side {
  width: 30%;
  float: left;
  margin-bottom: 20px;
  text-align: left;
  /*  font-size: .8em;*/
}

section p {
  /*color: #919597;*/ /* lighter */
  color: #666;
  line-height: 1.8em;
}

/* facts */

.facts {
  padding-left: 0;
}

.facts ul {
  list-style: none;
}

.facts strong {
  color: #242b30;
}

.facts li {
  border-bottom: 1px solid #C8CACB;
  margin-bottom: 20px;
  padding-bottom: 20px;
  padding-left: 0;
}

.facts li:last-child {
  border-bottom: none;
}

/* work */

.full {
  width: 100%;
  float: left;
  margin-bottom: 2.5%;
}

.half-right {
  width: 48.75%;
  float: left;
  margin-left: 2.5%;
  margin-bottom: 2.5%;
}

.half-left {
  width: 48.75% !important; 
  float: left; 
  margin-bottom: 2.5%; 
}

/* pagination */

.pagination {
  padding: 40px 0 60px 0;
  font-weight: 400;
  margin-bottom: 80px;
}

.pagination li {
  list-style: none;
}

.pagination li p.small {
  color: #242b30;
  font-size: .775em;
  font-weight: 700;
  letter-spacing: 4.7px;
  text-transform: uppercase;
}
.pagination-left {
  text-align: left;
  float: left;
}

.pagination-right {
  text-align: right;
  float: right;
}

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

footer {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0 120px 0; 
    clear: both;
}

.page-client footer {
  clear: both;
  border-top: 1px solid #C8CACB;
}

.social {
  padding-left: 0;
  float: right;
}

.mail {
  float: left;
}

.social li {
  display: inline-block;
  margin-left: 15px;
}

#icon-twitter, #icon-facebook, #icon-linkedin {
  fill: #545252;
}

#icon-twitter:hover {
  fill: #00aced;
  pointer-events:all;
  transition: .2s;
}

#icon-facebook:hover {
  fill: #3b5998;
  pointer-events:all;
  transition: .2s;
}

#icon-linkedin:hover {
  fill: #007bb6;
  pointer-events:all;
  transition: .2s;
}

/* =Grid
-------------------------------------------------------------- */

.cbp-rfgrid {
  margin: 140px 0 0 0;
  list-style: none;
  position: relative;
  width: 100%;
  padding: 10px;
}

.cbp-rfgrid li {
  position: relative;
  float: left;
  overflow: hidden;
  width: 25%; /* Fallback */
  width: -webkit-calc(100% / 4);
  width: calc(100% / 4);
  padding: 10px; /* Grout */
}

.cbp-rfgrid li a,
.cbp-rfgrid li a img {
  display: block;
  width: 100%;
  cursor: pointer;
}

.cbp-rfgrid li a img {
  max-width: 100%;
}

/* Flexbox used for centering the heading */
.cbp-rfgrid li a div {
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(237,25,67,1);
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
    align-items: center;
    text-align: center;
  opacity: 0;
    transition: opacity .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out;
    -webkit-transition: opacity .2s ease-in-out;
}

.cbp-rfgrid li a:hover div {
  opacity: 1;
}

.cbp-rfgrid li a div h4 {
  width: 100%;
  color: #fff;
  font-size: 1.1.25em;
  padding: 0 10px;
}


h4 {
  font-family: 'Source Code Pro', monospace;
  font-size: 1em;
  font-weight: 300;
  line-height: 2;
}

/* =Extras
-------------------------------------------------------------- */

.clearfix:after {
    visibility: hidden;
    display: block;
    content: "";
    clear: both;
    height: 0; }

.button-left {
  /*float: left;*/
  position: fixed;
  top: 72%;
  left: 8%;
}

.button-right {
  /*float: left;*/
  position: fixed;
  top: 72%;
  right: 8%;
}

/* =Media Queries
-------------------------------------------------------------- */

@media all and (max-width: 960px) {
  /* =Header
  -------------------------------------------------------------- */

  .mail {
    float: none;
    text-align: center;
    margin-top: 10px;
  }
  .social {
    float: none;
    text-align: center;
    margin: 10px auto 0 auto;
  }
  #wrapper-client h2 {
    margin-top: 40px;
  }
  .modal, #wrapper-client p, .pagination a {
    font-size: .9em;
  }
  .modal {
    width: 90%;
    padding: 40px 40px 60px 40px;
  }
  .profile {
    float: none;
    display: block;
    margin: 40px auto 0 auto;
  }
  .intro {
    margin-top: 140px auto 40px auto;
    text-align: center;
    float: left;
    padding-bottom: 60px;
  }
  .intro, .entry, h3 {
    margin-left: 0;
    text-align: center;
  }
  .close a {
    margin-top: -30px;
    margin-right: -10px;
  }
  h2 {
    margin: -40px auto 40px auto;
    text-align: center;
    font-size: 2.25em;
  }
  h3 {
    margin-top: 60px;
  }
  h4 {
    font-size: .9em;
  }
 .main {
    width: 100%;
    margin-top: -20px;
    margin-bottom: 20px;
    text-align: center;
  }
  .side {
    width: 100%;
    margin: 0 auto 40px auto;
    float: none;
    clear: both;
    text-align: center;
  }
  .content {
    margin: 0 auto 0 auto;
    text-align: center;
  }
  header h1#logo {
    display: block;
    float: none;
    margin: 0 auto;
    height: 100px;
    line-height: 120px;
    text-align: center; }
  header nav {
    display: block;
    float: none;
    height: 50px;
    text-align: center;
    margin: 0 auto; }
    header nav a {
      line-height: 0px;
      margin: 0 10px; }
  header.smaller {
    height: 95px; 
    padding-top: 10px; }
    header.smaller h1#logo {
      height: 40px;
      line-height: 40px;
      font-size: 1.125em; }
    header.smaller nav {
      height: 35px; }
      header.smaller nav a {
        line-height: 35px; 
    } 
  }

 @media screen and (max-width: 1440px) {
  .button-left, .button-right {
    display: none;
  }
}

@media screen and (min-width: 1440px) {
  .cbp-rfgrid li {
    width: 20%; /* Fallback */
    width: -webkit-calc(100% / 5);
    width: calc(100% / 5);
  }
  /* .arrow-left-icon, .arrow-right-icon {
    display: none;
  } */
} 

@media all and (max-width: 600px) {
  .container {
    width: 90%; 
  }
}

@media screen and (max-width: 768px) {
  .cbp-rfgrid li {
    width: 33.3333333%; /* Fallback */
    width: -webkit-calc(100% / 3);
    width: calc(100% / 3);
  }
}

@media screen and (max-width: 440px) {
  .cbp-rfgrid li {
    width: 50%; /* Fallback */
    width: -webkit-calc(100% / 2);
    width: calc(100% / 2);
  }
}



