#projects {
  position: relative;
}
#projects .body {
  z-index: 11;
  padding: 60px;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-top: -130px;
  font-weight: 500;
  font-size: 0.8rem;
  right: 0;
}
@media screen and (min-width: 1600px) {
  #projects .body {
    max-width: 800px;
    margin-top: -160px;
  }
}
@media screen and (max-width: 1200px) {
  #projects .body {
    max-width: 1200px;
    right: initial;
    margin-top: -100px;
    padding: 60px;
  }
}
@media screen and (max-width: 992px) {
  #projects .body {
    padding: 30px;
    margin-top: 0;
  }
}
#projects .title {
  margin-top: -50px;
}
@media screen and (max-width: 1200px) {
  #projects .title {
    margin-top: 60px;
  }
}
#projects .filters {
  padding-top: 120px;
}
@media screen and (max-width: 1200px) {
  #projects .filters {
    padding-top: 60px;
  }
}
@media screen and (max-width: 992px) {
  #projects .filters {
    padding-top: 30px;
  }
}
@media screen and (max-width: 767px) {
  #projects .filters {
    padding-top: 0;
    margin-top: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            -webkit-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: wrap;
            -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    border: 1px solid #af3f2c;
  }
}
#projects .filters .filter {
  margin-right: -7px;
  border-right: none;
  min-width: 120px;
  text-align: center;
  display: inline-block;
  -webkit-transition: all 1s;
  transition: all 1s;
  padding: 20px 40px;
}
#projects .filters .filter i {
  display: none;
  color: #af3f2c;
  font-size: 14px;
  font-weight: 700;
  padding-left: 8px;
  position: relative;
  top: 1px;
}
#projects .filters .filter:last-child {
  border-right: 1px solid;
}
#projects .filters .filter.active {
  background-color: #af3f2c;
}
#projects .filters .filter.active span,
#projects .filters .filter.active span i {
  color: #FFF;
}
#projects .filters .filter:hover {
  cursor: pointer;
}
#projects .filters .filter:hover span,
#projects .filters .filter:hover span i {
  color: #5d2218;
}
@media screen and (min-width: 1600px) {
  #projects .filters .filter {
    padding: 25px 45px;
  }
}
@media screen and (max-width: 1200px) {
  #projects .filters .filter {
    padding: 15px 35px;
  }
}
@media screen and (max-width: 992px) {
  #projects .filters .filter {
    padding: 15px 18px;
  }
}
@media screen and (max-width: 767px) {
  #projects .filters .filter {
    white-space: nowrap;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    padding: 10px;
    border: none !important;
    -ms-flex-preferred-size: auto;
            -webkit-flex-basis: auto;
        flex-basis: auto;
    width: 50%;
    -webkit-box-align: center;
        -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
    line-height: 1;
    margin-right: 0px;
    margin-bottom: 0px;
  }
  #projects .filters .filter i {
    display: inline-block;
  }
  #projects .filters .filter:first-child {
    width: 100%;
  }
}
#projects .empty {
  display: none;
  padding: 120px;
  font-weight: 500;
}
#projects .teaser-dupes {
  display: none;
}
#projects .teaser-dupes .teaser {
  display: none;
}
#project .teasers,
#projects .teasers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          -webkit-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
          -webkit-flex-wrap: wrap;
      flex-wrap: wrap;
  padding-top: 160px;
}
@media screen and (max-width: 992px) {
  #project .teasers,
  #projects .teasers {
    padding-top: 70px;
  }
}
@media screen and (max-width: 767px) {
  #project .teasers,
  #projects .teasers {
    padding-top: 30px;
  }
}
#project .teasers .teaser,
#projects .teasers .teaser {
  position: relative;
  width: 33.33%;
  padding-bottom: 25px;
}
#project .teasers .teaser:nth-of-type(3n + 1),
#projects .teasers .teaser:nth-of-type(3n + 1) {
  padding-right: 15px;
}
#project .teasers .teaser:nth-of-type(3n + 2),
#projects .teasers .teaser:nth-of-type(3n + 2) {
  top: -40px;
  padding-left: 10px;
  padding-right: 10px;
}
#project .teasers .teaser:nth-of-type(3n),
#projects .teasers .teaser:nth-of-type(3n) {
  padding-left: 15px;
}
@media screen and (max-width: 992px) {
  #project .teasers .teaser,
  #projects .teasers .teaser {
    padding-bottom: 15px;
  }
  #project .teasers .teaser:nth-of-type(3n + 1),
  #projects .teasers .teaser:nth-of-type(3n + 1) {
    padding-right: 10px;
  }
  #project .teasers .teaser:nth-of-type(3n + 2),
  #projects .teasers .teaser:nth-of-type(3n + 2) {
    top: -40px;
    padding-left: 5px;
    padding-right: 5px;
  }
  #project .teasers .teaser:nth-of-type(3n),
  #projects .teasers .teaser:nth-of-type(3n) {
    padding-left: 10px;
  }
}
@media screen and (max-width: 767px) {
  #project .teasers .teaser,
  #projects .teasers .teaser {
    width: 50%;
    top: 0 !important;
  }
  #project .teasers .teaser:nth-child(odd),
  #projects .teasers .teaser:nth-child(odd) {
    padding-right: 10px;
    padding-left: 0;
  }
  #project .teasers .teaser:nth-child(even),
  #projects .teasers .teaser:nth-child(even) {
    padding-left: 10px;
    padding-right: 0;
  }
}
@media screen and (max-width: 540px) {
  #project .teasers .teaser,
  #projects .teasers .teaser {
    -ms-flex-preferred-size: 100%;
            -webkit-flex-basis: 100%;
        flex-basis: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
#project .teasers .teaser .inner,
#projects .teasers .teaser .inner {
  position: relative;
  width: 100%;
  padding-top: 65%;
}
#project .teasers .teaser .overlay,
#projects .teasers .teaser .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: opacity 1s;
  transition: opacity 1s;
}
#project .teasers .teaser .overlay:hover,
#projects .teasers .teaser .overlay:hover {
  cursor: pointer;
  opacity: 1;
}
@media screen and (max-width: 540px) {
  #project .teasers .teaser .overlay,
  #projects .teasers .teaser .overlay {
    opacity: 0.5;
  }
}
#project .teasers .teaser .overlay p,
#projects .teasers .teaser .overlay p {
  position: absolute;
  bottom: 20px;
  left: 20px;
}
#project .teasers .no-animation,
#projects .teasers .no-animation {
  -webkit-transition: none;
  transition: none;
}
#project {
  position: relative;
}
#project .container.sidebar {
  position: relative;
  padding-right: 405px;
}
#project .container.sidebar .mobile {
  display: none;
}
@media screen and (min-width: 1600px) {
  #project .container.sidebar {
    padding-right: 440px;
  }
}
@media screen and (max-width: 1200px) {
  #project .container.sidebar {
    padding-right: 345px;
  }
}
@media screen and (max-width: 992px) {
  #project .container.sidebar {
    padding-right: 30px;
  }
}
@media screen and (max-width: 992px) {
  #project .main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            -webkit-flex-direction: column;
            flex-direction: column;
  }
}
@media screen and (max-width: 992px) {
  #project .mobile.title {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
            -webkit-order: 0;
            order: 0;
  }
  #project .mobile.more {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
            -webkit-order: 3;
            order: 3;
    -ms-flex-item-align: start;
            -webkit-align-self: flex-start;
        align-self: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
    width: 100%;
  }
}
#project .aside {
  -webkit-box-flex: 0.33;
      -ms-flex: 0.33;
          -webkit-flex: 0.33;
          flex: 0.33;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 285px;
  padding: 120px 40px;
}
@media screen and (min-width: 1600px) {
  #project .aside {
    padding: 120px 60px;
    width: 320px;
  }
}
@media screen and (max-width: 992px) {
  #project .aside {
    display: none;
    position: relative;
    padding: 15px;
    background-color: #f4f4f4;
    overflow: hidden;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            -webkit-flex: 1;
            flex: 1;
    width: 100%;
  }
  #project .aside.open {
    padding: 15px;
  }
}
#project .aside span {
  display: block;
  font-size: 0.6rem;
}
#project .aside span.lower {
  margin-top: -5px;
  padding-bottom: 20px;
  font-weight: 500;
  line-height: 1.4;
}
#project .slide-container {
  position: relative;
}
@media screen and (max-width: 992px) {
  #project .slide-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            -webkit-order: 2;
            order: 2;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
#project .slider {
  /**
      From http://meandmax.github.io/lory/
      * (optional) define here the style definitions which should be applied on the slider container
      * e.g. width including further controls like arrows etc.
    */
  margin-right: 140px;
}
@media screen and (max-width: 992px) {
  #project .slider {
    margin-right: 0;
  }
}
#project .slider .frame {
  /**
       * (optional) wrapper width, specifies width of the slider frame.
       */
  width: 100%;
  max-width: 880px;
  position: relative;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  white-space: nowrap;
}
@media screen and (max-width: 992px) {
  #project .slider .frame {
    max-width: 992px;
  }
}
#project .slider .slides {
  display: inline-block;
}
#project .slider li {
  position: relative;
  display: inline-block;
  /**
       * (optional) if the content inside the slide element has a defined size.
       */
  width: 100%;
}
#project .controls {
  position: absolute;
  left: 920px;
  bottom: 0;
}
@media screen and (max-width: 1485px) {
  #project .controls {
    left: initial;
    right: 0;
  }
}
@media screen and (max-width: 992px) {
  #project .controls {
    display: none;
  }
}
#project .controls span {
  width: 60px;
  height: 60px;
  display: inline-block;
}
#project .controls span i {
  font-size: 2rem;
  position: relative;
  top: 10px;
  left: 20px;
}
#project .controls span.next {
  margin-left: -6px;
}
#project .controls span.next i {
  left: 22px;
}
@media screen and (min-width: 1600px) {
  #project .controls span i {
    top: 5px;
  }
  #project .controls span.next {
    margin-left: -7px;
  }
}
#project .body {
  font-size: 0.9rem;
  padding-top: 120px;
}
#project .body p {
  padding-bottom: 10px;
}
#project .body p:first-child {
  width: 100%;
  max-width: 880px;
}
#project .body ul {
  padding-bottom: 10px;
}
#project .body ul li:before {
  content: '-';
  padding-right: 10px;
}
@media screen and (max-width: 1200px) {
  #project .body {
    padding-top: 60px;
  }
}
@media screen and (max-width: 992px) {
  #project .body {
    padding-top: 30px;
    /* Disabling this as it messes up the blocks of text
      display: flex;
      order: 1;
      */
  }
}
#project .related {
  padding-top: 120px;
}
@media screen and (max-width: 1200px) {
  #project .related {
    padding-top: 60px;
  }
}
@media screen and (max-width: 992px) {
  #project .related {
    padding-top: 30px;
  }
}
@media screen and (max-width: 540px) {
  #project .related {
    padding-top: 0;
  }
}
#project .related .teasers {
  padding-top: 120px;
}
@media screen and (max-width: 1200px) {
  #project .related .teasers {
    padding-top: 60px;
  }
}
@media screen and (max-width: 992px) {
  #project .related .teasers {
    padding-top: 30px;
  }
}
