@import "reset.css";
@import "icons.css";
@import "magnific-popup.css";

html {
  text-align: center;
}

body {
  font-size: 14px;
  font-family: 'Work Sans', sans-serif;
  line-height: 1.5em;
  padding: 4em 2em;
  max-width: 80em;
  margin: 0 auto;
  color: #333;
  display: inline-block;
  text-align: left;
}

.wrapper {
  max-width: 40em;
  margin: 0 auto;
}

h1, h2, h3, h4, h5 {
  font-family: 'Work Sans', sans-serif;
  margin-top: 1.5em;
  margin-bottom: .75em;
  line-height: 1.35em;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child {
  margin-top: 0;
}

h1 {
  font-size: 2em;
  font-family: 'Work Sans', sans-serif;
  font-weight: bold;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.75em;
  border-top: .25em double #eee;
  border-bottom: .25em double #eee;
  padding-bottom: .75em;
  padding-top: .75em;
  text-align: center;
  font-style: italic;
}

h3 a {
  color: #0070C4;
  font-weight: normal;
}
h3 a:hover {

}

h4 {
  font-size: 1.5em;
  font-weight: bold;
}

h5 {
  font-size: 1.3em;
  font-family: 'Work Sans', sans-serif;
}

hr.nocss {
  display: none;
}

@media (min-width: 40em) {
  body {
    font-size: 16px;
  }
}

header {
  margin-bottom: 2em;
  text-align: center;
}

section, footer {
  padding-top: 3em;
  margin-top: 3em;
  float: left;
  width: 100%;
  clear: both;
}

p {
  margin-bottom: .75em;
}

em {
  font-style: italic;
}

em.term {
  font-style: normal;
  font-size: .95em;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 0;
}

a {
  font-weight: 600;
  color: #0070C4;
  text-decoration: none;
  -webkit-transition: all .15s ease-in-out;
  -moz-transition: all .15s ease-in-out;
  -o-transition: all .15s ease-in-out;
  -ms-transition: all .15s ease-in-out;
  transition: all .15s ease-in-out; }
a:not(.button):not(.thumbnail-link):hover {
  /*color: #0070C4;*/
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  filter: alpha(opacity=70);
  opacity: 0.7;
}
a.button {
  border: .18em solid #0070C4;
  font-weight: normal;
  display: inline-block;
  -webkit-border-radius: 1.25em;
  -moz-border-radius: 1.25em;
  border-radius: 1.25em;
  padding: .2em 1em .3em;
}
a.button:hover {
  background-color: #0070C4;
  color: white;
}

a.button-large {
  font-size: 1.5em;
  border-width: .15em;
  padding: .45em 1.5em .55em;
  font-weight: bold;
}

a.button .icon-open-link {
  font-size: 1em;
  line-height: .5em;
  top: .15em;
  position: relative;
  margin-left: 0em;
}

h1 a, h2 a, h4 a, h5 a {
  color: inherit;
}

p.intro {
  font-size: 1.15em;
  line-height: 1.5em;
}

.newline {
  display: inline-block;
}

header h1 {
  margin-bottom: 0;
}
header h4 {
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .5;
}
header .img {
  margin-bottom: 1em;
}
header img {
  max-width: 9em;
  margin-top: -.75em;
}

.cta .icon-mail {
  font-size: 1.35em;
  line-height: .5em;
  top: .2em;
  position: relative;
  margin-right: .25em;
}

img.circle {
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 40em) {
  header .name {
    float: left;
    text-align: left;
  }

  header .cta {
    float: right;
    margin-top: .75em;
  }

  header .name .text {
    float: left;
  }
  header .img {
    float: left;
    margin-right: 1em;
  }
  header img {
    max-width: 6em;
  }
}

#summary {
  margin-top: 0;
}

#projects .project-thumbnail {
  background-color: #0070C4;
  position: relative;
}
#projects .project-thumbnail img {
  width: 99.9%;
  display: block;
  -webkit-transition: opacity .15s ease-in-out;
  -moz-transition: opacity .15s ease-in-out;
  -o-transition: opacity .15s ease-in-out;
  -ms-transition: opacity .15s ease-in-out;
  transition: opacity .15s ease-in-out;
}

#projects .project-thumbnail .img {
  content: "";
  display: block;
  width: 100%;
  padding-top: 60%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-transition: opacity .15s ease-in-out;
  -moz-transition: opacity .15s ease-in-out;
  -o-transition: opacity .15s ease-in-out;
  -ms-transition: opacity .15s ease-in-out;
  transition: opacity .15s ease-in-out;
}
#projects .project-thumbnail a {
  border: 3px solid lightgray;
  margin-bottom: 2em;
  display: block;
}
#projects .thumbnail-link:hover {

}
#projects .thumbnail-link:hover .img {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  filter: alpha(opacity=70);
  opacity: 0.70;

}


#projects .thumbnail-link .icon-open-link {

  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5em;
  z-index: 1;
  color: initial;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
  filter: alpha(opacity=85);
  opacity: 0.85;
  -webkit-transition: all .15s ease-in-out;
  -moz-transition: all .15s ease-in-out;
  -o-transition: all .15s ease-in-out;
  -ms-transition: all .15s ease-in-out;
  transition: all .15s ease-in-out;

}
#projects .thumbnail-link .icon-open-link:before {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
  color: white;
}
#projects .thumbnail-link .icon-open-link.dark:before {
  color: #333;
  text-shadow: 1px 1px 2px rgba(255,255,255, 1);
}

#projects .thumbnail-link:hover .icon-open-link {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
  font-size: 1.75em;
  top: 18px;
  right: 18px;
}

#list-projects {
  margin-top: 2em;
}

#list-projects > li:first-child {
  border-top: none;
}

#list-projects > li {
  border-top: 1px solid lightgray;
  padding: 1.75em 0 1em;
  float: left;
  width: 100%;
}

#list-case-studies > li:first-child {
  border-top: none;
}

#list-case-studies > li {
  border-top: 1px solid lightgray;
  padding: 1.75em 0 1em;
  float: left;
  width: 100%;
}

#list-projects .project-footer {
  margin-top: 1.5em;
}

@media (min-width: 40em) and (max-width: 60em) {
  #list-projects > li {
    border-top: none;
    float: left;
    width: 48%;
    margin-right: 4%;
  }
  #list-projects > li:nth-child(2n) {
    margin-right: 0;
  }
  #list-projects > li:nth-child(2n+1) {
    clear: left;
  }
}

@media (min-width: 60em) {
  #list-projects > li {
    border-top: none;
    float: left;
    width: 30%;
    margin-right: 5%;
  }
  #list-projects > li:nth-child(3n) {
    margin-right: 0;
  }
  #list-projects > li:nth-child(3n+1) {
    clear: left;
  }
}

footer {
  padding-bottom: 2em;
}

footer .copyright {
  text-align: center;
  margin-top: 4em;
  font-size: 1.25em;
  text-transform: uppercase;
  letter-spacing: .15em;
  opacity: .5;
}



/* overlay at start */
.mfp-fade.mfp-bg {
  opacity: 0;

  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}
/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;

  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
/* content animate it */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}
/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;

}
