img, legend {
    border: 0;
}
body, ol, ul {
    margin: 0;
}
legend, ol, td, th, ul {
    padding: 0;
}
html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}
audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}
audio:not([controls]) {
    display: none;
    height: 0;
}
[hidden], template {
    display: none;
}
a {
    background-color: transparent;
}
a:active, a:hover {
    outline: 0;
}
abbr[title] {
    border-bottom: 1px dotted;
}
b, optgroup, strong {
    font-weight: 700;
}
dfn {
    font-style: italic;
}
h1 {
    font-size: 2em;
    margin: .67em 0;
}
mark {
    background: #ff0;
    color: #000;
}
small {
    font-size: 80%}
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    top: -.5em;
}
sub {
    bottom: -.25em;
}
svg:not(:root) {
    overflow: hidden;
}
figure {
    margin: 1em 40px;
}
hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
    max-width: 740px;
}
pre, textarea {
    overflow: auto;
}
code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}
button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}
button {
    overflow: visible;
}
button, select {
    text-transform: none;
}
button, html input[type=button], input[type=reset], input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
}
button[disabled], html input[disabled] {
    cursor: default;
}
button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}
input {
    line-height: normal;
}
input[type=checkbox], input[type=radio] {
    box-sizing: border-box;
    padding: 0;
}
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    height: auto;
}
input[type=search] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration {
    -webkit-appearance: none;
}
fieldset {
    border: 1px solid silver;
    margin: 0 2px;
    padding: .35em .625em .75em;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
ol, ul {
    list-style: none;
}
#nav a, #portfolio-grid li {
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
}
#logo, #nav {
    position: absolute;
    z-index: 99999;
}
#home h1 {
    top: 90%;
    transform: translateY(-50%);
    letter-spacing: .015em;
    text-shadow:0px 0px 15px black;
}
#portfolio-title h1 {
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: .015em;
}
#about-header, #home, #portfolio-title {
    top: 0;
    position: relative;
    text-align: center;
}
#about-header h1, #home h1, #home h3, #portfolio-title h1 {
    position: absolute;
    right: 0;
    left: 0;
}
#about-detail p, #portfolio-images p {
    line-height: 1.6;
    letter-spacing: .035em;
}
#about-header, #home, #portfolio, #portfolio-nav, #portfolio-title, footer {
    position: relative;
}
#portfolio-grid li, #portfolio-grid-mini li, #portfolio-nav, footer {
    float: left;
    width: 100%}
#nav, #nav a, #portfolio h3 a, footer a {
    display: block;
}
#nav a:hover, footer a:hover {
    color: #494949;
    border-bottom: 2px solid #494949;
}
#nav ul, #portfolio-grid, footer ul {
    list-style: none;
}
#nav li, #portfolio-nav a, footer li {
    display: inline-block;
}
#about-header, #home, #portfolio, #portfolio-images, #portfolio-nav, #portfolio-title, footer li, footer ul {
    text-align: center;
}
body, html {
    width: 100%;
    height: 100%;
    color: #666;
    background: #fff;
    font-family: Raleway, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

a, h1, h2, h3, p, th, td {
    margin: 0;
    padding: 0;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
* {
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
}
:focus {
    outline: 0;
}
::-moz-focus-inner {
    border: 0;
}
a, a:active, a:focus, a:hover, a:visited {
    outline: 0!important;
    text-decoration: none!important;
}
::selection {
    background: rgba(0, 0, 0, .1);
}
::-moz-selection {
    background: rgba(0, 0, 0, .1);
}
img:not([src]) {
    visibility: hidden;
}
@-moz-document url-prefix() {
    img: -moz-loading {
    visibility: hidden;
}
}#nav {
    top: 40px;
    right: 5%}
#nav a {
    font-size: 17px;
    text-transform: lowercase;
    color: #494949;
    letter-spacing: .05em;
    transition: all .1s ease-in;
    border-bottom: 2px solid transparent;
}
#nav li {
    margin: 0;
}
#nav li:nth-child(2) {
    margin-left: 10px;
}

#nav img: {
    width: 65px;
}

/* chagne the style of the logo and the nav on top of the image (home) */

.homepage #nav a{
color: #fff!important;
}

.homepage #nav a:hover{
    color: #fff;
    border-bottom: 2px solid #fff;
}

#logo {
    top: 23px;
    left: 5%;
    width: 200px;

}
#home {
    background-image: url(../../content/1-home/cover.jpg); 
    background-repeat: no-repeat; 
    background-size: cover;
    background-position: center;
    min-height: calc(100% - 120px);
    z-index: 9997;
    padding: 0;
}
#home h1, #home h2, #home h3 {
    margin: 0 auto;
    line-height: 1.25;
    color: #fff;
    font-size: 12px;
}
#home h1 {
    max-width: 1200px;
    padding: 0 50px;
    font-size: 46px;
}
#home h2 {
    position: absolute;
    left: 5.3%;
    font-size: 18px;
    letter-spacing: .025em;
    margin-top: 80px;
    line-height: 1.25;
    text-align: left;
}
#home h3 {
    font-size: 30px;
    letter-spacing: .025em;
    bottom: 25px;
    line-height: 1.35;
}
#portfolio {
    width: 100%;
    margin: 0 auto;
    padding: 0 2%;
}
#portfolio.portfolio-page {
    margin-top: 150px;
}
#portfolio h3 a {
    width: 100%;
    margin: 35px auto 75px;
    font-size: 30px;
    line-height: 1.5;
    color: #494949;
}
#portfolio-grid {
    margin: 0;
    padding: 0;
}
#portfolio-grid li {
    cursor: pointer;
    transition: all .2s ease-in;
}
#portfolio-grid li a p, #portfolio-images img {
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
}
#portfolio-grid li img {
    width: 100%
}
#portfolio-grid li a p {
    display: inline-block;
    font-size: 21px;
    color: #494949;
    letter-spacing: .02em;
    margin: 15px 0 0;
    padding: 0 7px 2px;
    border-bottom: 2px #fff solid;
    transition: all .2s ease-in;
}
#portfolio-grid li:hover p {
    color: #6699cc;
    border-bottom: 2px #6699cc solid;
}

/* for the mini-portfolio: */

#portfolio-grid-mini {
    margin: 0 auto;
    padding-top: 60px;
    max-width: 850px;
}
#portfolio-grid-mini li {
    cursor: pointer;
    transition: all .2s ease-in;
}
#portfolio-grid-mini li a p, #portfolio-images img {
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
}
#portfolio-grid-mini li img {
    width: 100%
}
#portfolio-grid-mini li a p {
    display: inline-block;
    font-size: 17px;
    color: #494949;
    letter-spacing: .02em;
    margin: 15px 0 0;
    padding: 0 7px 2px;
    border-bottom: 2px #fff solid;
    transition: all .2s ease-in;
}
#portfolio-grid-mini li:hover p {
    color: #6699cc;
    border-bottom: 2px #6699cc solid;
}


/* END for the mini-portfolio: */



#portfolio-title {
    width: 100%;
    height: 300px;
    /*
    height: calc(100% - 125px);
    */
    padding: 0;
}
#portfolio-title h1 {
    margin: 0 auto;
    max-width: 850px;
    padding: 0 2.5%;
    font-size: 30px;
    line-height: 1.35;
}
#portfolio-images {
    width: 95%;
    max-width: 850px;
    margin: 0 auto;
}
#portfolio-images p {
    text-align: left;
    font-size: 18px;
    margin: 0 auto 40px;
}
#portfolio-images img {
    margin: 0 auto 50px;
    transition: all .2s ease-in;
    max-height: 850px;
    width: auto;
    display: block;
}
#about-detail p a, #portfolio-nav img {
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
}
#portfolio-nav {
    background: #fff;
    margin: 50px auto 60px;
    padding: 0 2%;
    z-index: 9998;
}
#portfolio-nav a {
    font-size: 23px;
    line-height: 1.5;
    color: #494949;
}
#portfolio-nav img {
    width: 35px;
    margin: 20px;
    opacity: .3;
    transition: all .2s ease-in;
}
#portfolio-nav img:hover {
    opacity: 1;
}
#about-header {
    height: 300px;
    /* min-height: calc(100% - 25px); */
}
#about-header h1 {
    margin: 0 auto;
    top: 48%;
    font-size: 30px;
    max-width: 630px;
    line-height: 1.25;
    letter-spacing: .03em;
    color: #494949;
}
#about-detail {
    width: 100%;
    padding: 0 5%;
    margin: 0 0 105px;
}
#about-detail blockquote {
    max-width: 1150px;
    margin: 0 auto 80px;
    padding: 0;
    font-size: 46px;
    line-height: 1.25;
    text-align: center;
    letter-spacing: .015em;
}
#about-detail p {
    font-size: 18px;
    max-width: 740px;
    margin: 0 auto 20px;
}

/* HERE H2 aboutdetail */
#about-detail h2 {
    font-size: 24px;
    max-width: 740px;
    margin: 0 auto 20px;
    font-weight: 600;
}

#about-detail ul{
    font-size: 18px;
    max-width: 740px;
    margin: 0 auto 20px;
}

.mapboxstyle {
    position:absolute;
    width: 100%;
    max-width: 850px;
    height: 500px;
    margin: 0 auto;
}

/* three column stuff */
#three-column h1 {
    display: inline-block;
    line-height: 1em;
    margin-top: 0px;
    margin-right: 8px;
    margin-bottom: 8px;
    margin-left: 8px;
    font-size: 1.4em;
    color: #494949;
    letter-spacing: .02em;
    border-bottom: 2px #fff solid;
    transition: all .2s ease-in;
}

#three-column, h1, a, a:active, a:focus, a:visited {
    color: #494949;
}
#three-column div:hover h1{
    color: #6699cc;
    border-bottom: 2px #6699cc solid;
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
}

#about-detail table {
    width: 100%;
    max-width: 740px;
    margin: 0 auto 20px;
    text-align: left;
    line-height: 1.25;
    letter-spacing: .03em;
    color: #494949;
}

.about-detail-three-column {
    max-width: 740px;
    margin: 0 auto 20px!important;
}

table td {
    padding-right: 30px!important;
    
}










@media all and (min-width: 681px) {
#three-column {
  display: flex; 
  flex-direction: row;
  flex-wrap: nowrap; 
  justify-content: space-around; 
  margin: 20px 40px 20px 40px;
  clear: both;
  }
    
#three-column > div {
  width: 100%;
  margin: 5px 20px 5px 20px;
  border: 0px dashed red;
  text-align: center;
}
}

@media all and (max-width: 680px) {
#three-column {
  display: flex; 
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 20px 0px 0px 0px;
  clear: both;
  }

#three-column > div {
  width: 92%;
  margin: 5px auto 10px auto;
  border: 0px dashed red;
  text-align: center;
}
}
/* end three column stuff */


#about-detail p a {
    color: #494949;
    border-bottom: 1px solid #494949;
    transition: all .2s ease-in;
}
#about-detail p a:hover {
    color: #FF822E;
}
footer {
    padding: 25px 5%;
    margin: 150px 0 0;
    background: #ededed;
}
footer a {
    font-size: 17px;
    color: #494949;
    padding: 0 0 3px;
    letter-spacing: .03em;
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
    border-bottom: 2px solid #ededed;
}
footer ul {
    margin: 0 auto;
    width: inherit;
}
footer li {
    padding: 5px;
}
#backtotop {
    position: fixed;
    bottom: 20px;
    right: 25px;
    font-size: 30px;
    color: #494949;
    background-color: #ededed;
    padding: 5px 12px 0 12px;
    border-radius: 100%;
}
#backtotop:visited, #backtotop:focus {
    color: #494949;
}
@media screen and (max-width:680px) {
    #logo, #nav {
    position: absolute;
}
#about-header h1, #home h1 {
    position: relative;
    text-align: left;
}
#logo {
    left: 4%;
    width: 200px;
}
#home {
    padding: 325px 5% 15px;
    min-height: auto;
}
#home h1 {
    font-size: 22px;
}
#home h2 {
    display: none;
}
#home h3 {
    font-size:222px;
    padding: 0 5%;
}
#portfolio h3 a {
    font-size: 23px;
}
#portfolio-grid li {
    margin: 0 0 60px;
    padding: 0 5%;
}
#portfolio-grid-mini li {
    margin: 0 0 60px;
}
#portfolio-title {
    height: auto;
    padding: 200px 8% 120px;
}
#portfolio-title h1 {
    font-size: 24px;
}
#portfolio-nav img {
    opacity: 1;
}
#about-header {
    padding: 175px 5% 15px;
    min-height: auto;
}
#about-header h1 {
    font-size: 22px;
}
#about-detail blockquote {
    font-size: 24px;
    margin: 40px 0;
    text-align: left;
}
#about-detail p {
    font-size: 15px;
    letter-spacing: .025em;
}
footer {
    padding: 40px 5%;
    margin: 110px 0 0;
}
footer ul {
    width: 300px;
}
footer li {
    display: list-item;
}
#backtotop {
    display: none;
}

}@media screen and (min-width:681px) and (max-width:1023px) {
    #home h1 {
    font-size: 40px;
}
#portfolio-grid li {
    margin: 0 2% 45px;
    width: 46%
}
#portfolio-grid li:nth-child(2n+1) {
    clear: left;
} 
}@media screen and (min-width:1024px) {
#portfolio-grid li {
    width: 28.3333333%;
    margin: 0 2.5% 60px;
}
#portfolio-grid li:nth-child(3n+1) {
    clear: left;
}
}

/* sizing the mini  */
#portfolio-grid-mini li {
    width: 18%!important;
    margin: 0 1% 2px!important;
    }
#portfolio-grid-mini li:nth-child(6n+1) {
    clear: left;
}