/* DEFAULTS //////////////////////////////////////////////////////////////// */
@import url(defaults.min.css);
/* browser resets */
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700,900");

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, 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, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

body {
    -webkit-text-size-adjust: none;
    line-height: 1;
    min-height: 100vh;
    background: #fff;
    overflow-x: hidden;
    position: relative;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input, select, textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

@-ms-viewport {
    width: device-width;
}

/* Font */

body, input, select, textarea, p {
    color: #585858;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.6;
}

p {
    margin-bottom: 0.5em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p a {
    text-decoration: none;
    color: #585858;
    position: relative;
    /* border-bottom: dotted 1px rgba(88, 88, 88, 0.5); */
}
  p a::after {
    content: "";
    width: 100%;
    height: 1px;
    border: none;
    text-decoration: none;
    background: rgba(88, 88, 88, 0.5);
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.2s ease;
  }
    p a:hover::after {
      bottom: -2px;
    }

h1 {
    font-size: 2.75em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.25em 0;
    letter-spacing: -0.035em;
}

h1 a {
    color: inherit;
}

h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.5;
    margin: 0 0 0.25em 0;
}

h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}



/* MOBILE //////////////////////////////////////////////////////////////// */

/* Layout */

main {
    position: relative;
    margin-top: 90px;
    margin-bottom: 50px;
}

.sec-wrap {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.sec-wrap.gray {
    background: #eee;
}

.sec-wrap__inner {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

.sec-wrap__inner.flexbox {
    padding: 20px 20px;
}

.grid-wrap,
.grid-wrap .box {
    position: relative;
}

/* Brand */
header {
    background: #fff;
    width: 100%;
    position: fixed;
    display: block;
    top: 0;
    height: 90px;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
    z-index: 9000;
}

header #header-logo {
    margin: 28px 20px;
    height: 35px;
    width: auto;
    position: absolute;
    right: 0;
}


/* Side navigation menu */
#menu-btn {
    background: url("../../media/menu.svg");
    white-space: nowrap;
    margin: 20px;
    height: 50px;
    width: 50px;
    float: left;
    border-width: 0px;
    opacity: 0.8;
}
  #menu-btn:hover {
      opacity: 1;
  }

#back-btn {
  white-space: nowrap;
  margin: 15px 20px;
  height: 50px;
  width: 50px;
  float: left;
  border-width: 0px;
  opacity: 0.8;
  font-size: 38px;
  color: #585858;
}
  #back-btn:hover {
      opacity: 1;
  }


.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    background-color: #7D7D7D;
    overflow: hidden;
    padding-top: 90px;
    transition: 0.4s ease-out;
}

/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #ffffff;
    display: inline-block;
    width: 300px;
}
  .sidenav a:hover {
      background: #585858;
  }
/* Position and style the close button*/
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 45px;
    display: block;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}


/* Intro section */
.sec-wrap#sec-intro #intro-image {
    background-image: url(../../media/intro.jpg);
    background-position: center;
    background-size: cover;
    height: 50vw;
}

#sec-intro .contact-info {
    margin-top: 20px;
}

#sec-intro .contact-info i {
    width: 20px;
    margin-right: 10px;
}

#sec-intro .address-line {
    margin-left: 30px;
}

#sec-intro .address-line:first-of-type {
    margin-left: 0px;
}

/* Projecs section */
.sec-wrap#sec-projects .sec-wrap__inner.title {
    padding-bottom: 0;
}

.card {
    padding: 10px;
}

.card .project-image {
    min-height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.card:hover .project-image {
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.4);
}

.card .gradient-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;

    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
}

.card-information {
    position: absolute;
    bottom: 0;
    color: #fff;
    padding: 10px 15px;
}

.card .card-information h3 {
    margin-bottom: -5px;
}


/* About section */
#sec-about #portrait-michael {
    width: 100%;
    border-radius: 10px;
}

#sec-about #person-description {
    padding-left: 20px;
}

/* footer + copyright */
footer {
    position: absolute;
    display: block;
    width: 100%;
    bottom: 0;
    height: 50px;
    background-color: #eee;
    font-size: 0.8em;
}

footer .sec-wrap__inner {
    padding-top: 14px;
    padding-bottom: 10px;
}

footer p {
    margin-bottom: 0;
    text-align: center;
}


/* single project view */
.swiper-slide.project-photo {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
}

table.project-properties {
    width: 100%;
}

table.project-properties tr {
    border-bottom: 1px solid rgba(125, 125, 125, 0.4);
}

table.project-properties td {
    width: 50%;
}

table.project-properties td:nth-of-type(1) {
    padding: 5px 10px 5px 0;
}
table.project-properties td:nth-of-type(2) {
    padding: 5px 0 5px 10px;
}





/* LARGE SMARTPHONES //////////////////////////////////////////////////////////////// */
@media only screen and (min-width: 450px) {

  /* defaults */
  body, input, select, textarea, p {
      font-size: 1.2em;
  }

  /* Layout */
  footer .sec-wrap__inner {
      padding-top: 10px;
  }

}


/* TABLET //////////////////////////////////////////////////////////////// */
@media only screen and (min-width: 580px) {

  header #header-logo {
      margin: 23px auto;
      height: 45px;
      left: 0; right: 0;
  }

  .sec-wrap#sec-intro .contact-info {
      background: rgba(255,255,255,0.8);
      padding: 20px;
      display: block;
      position: absolute;
      top: 0;
      right: 25px;
      height: 100%;
  }

  .sec-wrap#sec-intro .contact-info address {
    margin-top: 6vw;
  }

}

/* DESKTOP //////////////////////////////////////////////////////////////// */
@media only screen and (min-width: 880px) {

    /* defaults */
    .text-2-columns {
        column-count: 2;
        -webkit-column-count: 2;
        -moz-column-count: 2;
        -ms-column-count: 2;
        column-gap: 30px;
        -webkit-column-gap: 30px;
        -moz-column-gap: 30px;
        -ms-column-gap: 30px;
        margin: 30px 0;
    }

    /* Layout */
    .sec-wrap__inner {
        max-width: 1200px;
        padding: 20px 35px;
    }

    .sec-wrap__inner.flexbox {
        padding: 20px 25px;
    }

    /* Hero section */
    .sec-wrap#sec-intro #intro-image {
        background-size: auto 100%;
        background-color: #fff;
        background-repeat: no-repeat;
        height: 500px;
    }

    .sec-wrap#sec-intro .contact-info {
        right: 35px;
    }

    .sec-wrap#sec-intro .contact-info address {
      margin-top: 50%;
    }
}

/* SPECIAL BREAKPOINTS //////////////////////////////////////////////////////////////// */
@media only screen and (min-width: 400px) and (max-width: 579px) {
  /* logo and navi conflict */
  header #header-logo {
      margin: 28px auto;
      left: 0; right: 0;
  }
}
