/***
 * Multiverse by HTML5 UP
 *	html5up.net | @ajlkn
 *	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
 *
 * Customizations for theme and plugins by V. Twigt
 */
#footer section {
  *zoom: 1;
}

#footer section:before, #footer section:after {
  content: '';
  display: table;
}

#footer section:after {
  clear: both;
}

@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
  }
}

@-moz-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
  }
}

@-o-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -o-transform: translateY(0);
  }
  40% {
    -o-transform: translateY(-30px);
  }
  60% {
    -o-transform: translateY(-15px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes zoom-in {
  0% {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
  }
  100% {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  padding-top: 0;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

body.modal-active #wrapper {
  -webkit-filter: none;
  -moz-filter: none;
  -ms-filter: none;
  filter: none;
}

body.modal-active #header,
body.modal-active #main,
body.modal-active #footer {
  -webkit-filter: blur(6px);
  -moz-filter: blur(6px);
  -ms-filter: blur(6px);
  filter: blur(6px);
}

body {
  padding-top: 4em;
  padding-bottom: 0;
}

body:before {
  z-index: 10100;
  position: fixed;
  bottom: 1em;
  font-family: "Font Awesome 5 Free";
  content: "\f107";
  vertical-align: middle;
  font-weight: 600;
  width: 100%;
  display: block;
  background-color: transparent;
  color: #eaeaea;
  font-size: 3em;
  text-align: center;
  text-shadow: 0 0.05em 0.2em rgba(36, 38, 41, 0.7);
  animation: bounce 2s infinite;
  pointer-events: none;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
  -webkit-transition-delay: 2s;
  -moz-transition-delay: 2s;
  -ms-transition-delay: 2s;
  transition-delay: 2s;
}

body.is-preload:before,
body.modal-active:before {
  -webkit-transition: opacity 0s ease-in-out;
  -moz-transition: opacity 0s ease-in-out;
  -o-transition: opacity 0s ease-in-out;
  transition: opacity 0s ease-in-out;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
}

body.scrolled:before {
  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
}

#fade {
  z-index: 10099;
  position: fixed;
  width: 100%;
  height: 8em;
  bottom: 0;
  background-color: transparent;
  background: linear-gradient(0deg, #242629 0%, rgba(36, 38, 41, 0) 100%);
  pointer-events: none;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
  -webkit-transition-delay: 2s;
  -moz-transition-delay: 2s;
  -ms-transition-delay: 2s;
  transition-delay: 2s;
}

body.scrolled #fade {
  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
}

#header {
  bottom: auto;
  top: 0;
  height: 4em;
  -webkit-box-shadow: 0 0.2em 2em rgba(0, 0, 0, 0.7);
  -moz-box-shadow: 0 0.2em 2em rgba(0, 0, 0, 0.7);
  -o-box-shadow: 0 0.2em 2em rgba(0, 0, 0, 0.7);
  box-shadow: 0 0.2em 2em rgba(0, 0, 0, 0.7);
  -webkit-transform: translateY(0em);
  -moz-transform: translateY(0em);
  -ms-transform: translateY(0em);
  transform: translateY(0em);
}

body.is-preload #header {
  -webkit-transform: translateY(-4em);
  -moz-transform: translateY(-4em);
  -ms-transform: translateY(-4em);
  transform: translateY(-4em);
}

#header h1 {
  color: #eaeaea;
}

#header h1 .subtitle-short {
  display: none;
}

#header nav > ul > li {
  vertical-align: top;
}

#header nav > ul > li ul.icons a {
  padding: 0;
}

#header nav > ul > li ul.icons a {
  color: #505051;
}

#header h1 a:hover,
#header nav > ul > li a:hover,
#header nav > ul > li ul.icons a:hover {
  color: #34a58e !important;
}

#header ul.icons {
  margin-bottom: 0;
  padding-right: 1.65em;
}

#header nav > ul > li ul.icons a.icon:before {
  color: inherit;
}

#header ul.icons li {
  padding-right: 0;
}

#header nav > ul > li a#button-contact.icon:before {
  color: #eaeaea;
}

#header #button-contact {
  display: inline-block;
  margin-right: 1em;
  background-color: #34a58e;
  color: #eaeaea;
  line-height: 2.5em;
  border-radius: 1.5em;
}

#header #button-contact:active,
#header #button-contact:hover {
  background-color: #34a58e;
  color: #ffffff !important;
}

#projects-filter {
  margin: 2em 1em 1em;
  font-size: 90%;
  text-align: center;
  text-transform: lowercase;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transition: opacity 1.25s ease-in-out;
  -moz-transition: opacity 1.25s ease-in-out;
  -o-transition: opacity 1.25s ease-in-out;
  transition: opacity 1.25s ease-in-out;
  -webkit-transition-delay: 1s;
  -moz-transition-delay: 1s;
  -ms-transition-delay: 1s;
  transition-delay: 1s;
}

body.is-preload #projects-filter {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
}

#projects-filter label {
  display: inline-block;
  margin-right: 1em;
}

#projects-filter input[type="button"],
#projects-filter button,
#projects-filter .button {
  text-transform: none;
  margin-right: 1em;
  font-size: 85%;
}

#projects-filter input[type="button"].selected,
#projects-filter button.selected,
#projects-filter .button.selected {
  box-shadow: inset 0 0 0 2px #34a58e;
  color: #34a58e !important;
}

#projects-filter input[type="button"].selected:active,
#projects-filter button.selected:active,
#projects-filter .button.selected:active {
  background-color: rgba(52, 165, 142, 0.15);
  color: #34a58e !important;
}

#main .thumb {
  position: relative;
  transition-delay: 0s;
  visibility: visible;
  max-width: none;
  max-height: none;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
}

#main .thumb a.image {
  display: block;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}

#main .thumb > h2 {
  z-index: 2;
  padding: 0 0.3em;
  background-color: rgba(36, 38, 41, 0.01);
  color: #eaeaea;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

#main .thumb .overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent url("../../images/play-button.png") no-repeat scroll center center/50px 50px;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  transition-delay: 0.1s;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
  cursor: pointer;
}

#main .thumb .overlay:hover {
  background-color: rgba(0, 0, 0, 0.6);
  background-size: 60px 60px;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
}

#main .thumb .category {
  z-index: 2;
  position: absolute;
  bottom: 1em;
  left: 2.4em;
  font-size: 0.8em;
  text-transform: lowercase;
  pointer-events: none;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}

#main .thumb .description {
  visibility: hidden;
}

#main .thumb.is-keyframed {
  -moz-transition: none;
  -webkit-transition: none;
  -ms-transition: none;
  transition: none;
  animation: 0.6s zoom-in;
}

#main .thumb.hidden {
  visibility: hidden;
  overflow: hidden;
  max-width: 0;
  max-height: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
}

#main .thumb:hover a.image {
  transform: scale(1.1);
}

#main .thumb:hover h2 {
  padding: 0.1em 0.3em;
  background-color: rgba(36, 38, 41, 0.5);
  bottom: 10%;
}

#main .thumb:hover .category {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
}

ul.icons-with-text li {
  display: block;
  margin-top: 0;
  font-size: 1.1em;
}

ul.icons-with-text li .icon:before {
  margin-right: 0.2em;
  vertical-align: middle;
}

ul.icons-with-text .icon > .label {
  display: inline-block;
  color: #a0a0a1;
}

ul.icons-with-text .icon:hover > .label {
  color: #34a58e;
}

/* Work credits and logos */
#work-credits {
  width: 100%;
  padding: 8em 2em;
  text-align: center;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transition: opacity 1.25s ease-in-out;
  -moz-transition: opacity 1.25s ease-in-out;
  -o-transition: opacity 1.25s ease-in-out;
  transition: opacity 1.25s ease-in-out;
  -webkit-transition-delay: 2.75s;
  -moz-transition-delay: 2.75s;
  -ms-transition-delay: 2.75s;
  transition-delay: 2.75s;
  -webkit-box-shadow: inset 0 1em 2em rgba(0, 0, 0, 0.5);
  -moz-box-shadow: inset 0 1em 2em rgba(0, 0, 0, 0.5);
  -o-box-shadow: inset 0 1em 2em rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1em 2em rgba(0, 0, 0, 0.5);
}

#work-credits h2 {
  margin: 0 0 2em;
  background-color: transparent;
  color: #aaaaaa;
}

body.is-preload #work-credits {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  opacity: 0;
}

/* Do not use grid thumbnail hover styles on touch devices */
body.touch #main .thumb:after {
  display: none;
}

body.touch #main .thumb h2 {
  padding: 0.1em 0.3em;
  background-color: rgba(36, 38, 41, 0.5);
}

.poptrox-popup {
  max-width: 1920px;
  max-width: calc(100% - 8em);
  max-height: calc(100% - 4em);
  margin: 0 4em;
}

.poptrox-popup .pic {
  width: 74%;
  vertical-align: top;
}

.poptrox-popup .pic iframe {
  max-width: 100% !important;
  vertical-align: top;
}

.poptrox-popup .caption {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  width: 26%;
  min-height: 100%;
  max-height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.poptrox-popup .caption .category {
  margin: 0 0 1em;
  font-size: 0.8em;
  text-transform: lowercase;
}

.poptrox-popup .caption p.credits {
  font-size: 75%;
  position: relative;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 0em;
  margin-bottom: 2em;
}

.poptrox-popup .nav-previous {
  left: -5em;
}

.poptrox-popup .nav-next {
  right: -5em;
}

.poptrox-popup .closer {
  top: -4em;
  right: -4em;
}

#footer {
  background-color: #1b1b1c;
  padding: 8em 2em 4em;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transition: opacity 1.25s ease-in-out;
  -moz-transition: opacity 1.25s ease-in-out;
  -o-transition: opacity 1.25s ease-in-out;
  transition: opacity 1.25s ease-in-out;
  -webkit-transition-delay: 2.75s;
  -moz-transition-delay: 2.75s;
  -ms-transition-delay: 2.75s;
  transition-delay: 2.75s;
  -webkit-box-shadow: inset 0 1.5em 2em rgba(0, 0, 0, 0.25);
  -moz-box-shadow: inset 0 1.5em 2em rgba(0, 0, 0, 0.25);
  -o-box-shadow: inset 0 1.5em 2em rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1.5em 2em rgba(0, 0, 0, 0.25);
}

body.is-preload #footer {
  opacity: 0;
}

#footer > .inner {
  margin: 0 auto;
  max-width: 100%;
  width: 75em;
}

#footer > .inner.split {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
}

#footer > .split > div {
  width: 40%;
  margin-left: 6em;
}

#footer > .split > div:first-child {
  width: 60%;
  margin-left: 0;
}

#footer section#contact {
  background-color: #34a58e;
  color: #eaeaea;
  border-radius: 2.5em;
  margin: 0 0 2em -2em;
  padding: 2em 2em 0;
  box-sizing: border-box;
}

#footer section#contact a:link,
#footer section#contact a:visited,
#footer section#contact a:active,
#footer section#contact a:hover {
  background-color: transparent;
  color: #eaeaea;
}

#footer section#contact a:hover {
  background-color: transparent;
  color: #1b1b1c !important;
}

#footer section#contact .mail-public-key {
  font-size: 85%;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  filter: alpha(opacity=75);
  opacity: 0.75;
}

#footer .portrait {
  float: right;
  margin: 0 0 1em 1em;
}

/* Small screens */
@media screen and (max-width: 736px) {
  body:before {
    bottom: 0;
  }
  #header {
    -webkit-box-shadow: 0px 3px 10px rgba(30, 33, 35, 0.7);
    -moz-box-shadow: 0px 3px 10px rgba(30, 33, 35, 0.7);
    -o-box-shadow: 0px 3px 10px rgba(30, 33, 35, 0.7);
    box-shadow: 0px 3px 10px rgba(30, 33, 35, 0.7);
  }
  #projects-filter {
    margin: 1em;
  }
  #projects-filter label {
    margin-right: 0.5em;
  }
  #projects-filter input[type="button"],
  #projects-filter button,
  #projects-filter .button {
    margin-left: 1em;
    margin-right: 0;
    padding: 0 1em;
    font-size: 75%;
  }
  #projects-filter input[type="button"]:first-child,
  #projects-filter button:first-child,
  #projects-filter .button:first-child {
    margin-left: 0;
  }
  #footer {
    padding-top: 5em;
  }
  #footer > .inner.split {
    display: block;
  }
  #footer > .split > div {
    width: auto;
    margin-left: 0;
  }
  #footer > .split > div:first-child {
    width: auto;
  }
  #footer section#contact {
    border-radius: 2em;
    margin-left: -1em;
    margin-right: -1em;
    padding: 2em 2em 0;
  }
  .poptrox-popup {
    display: block !important;
    position: absolute !important;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
    width: auto !important;
    height: auto;
    max-width: 100%;
    min-height: 100% !important;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2em;
    overflow: auto;
  }
  .poptrox-popup .pic,
  .poptrox-popup .caption,
  .poptrox-popup .closer {
    display: block !important;
  }
  .poptrox-popup .nav-previous,
  .poptrox-popup .nav-next {
    display: none;
  }
  .poptrox-popup .pic {
    width: auto;
    margin: 3em 2em 0.5em;
  }
  .poptrox-popup .caption {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 2em;
    overflow: visible;
  }
  .poptrox-popup .closer {
    top: 0;
    right: 0;
    width: 3em;
    height: 3em;
  }
}

@media screen and (min-width: 0px) and (max-width: 480px) {
  body.content-active {
    overflow: hidden;
  }
  #header h1 a {
    background-color: transparent;
    color: #ffffff;
  }
  #header .subtitle-short,
  #header .separator,
  #header .subtitle,
  #header ul.icons {
    display: none;
  }
  #projects-filter {
    display: none;
  }
  #main .thumb > h2 {
    left: 1em;
  }
  .poptrox-popup {
    padding-bottom: 0;
  }
  .poptrox-popup .pic,
  .poptrox-popup .caption {
    margin-left: 0em;
    margin-right: 0em;
  }
  .poptrox-popup .pic iframe {
    width: auto !important;
    height: auto !important;
  }
  .poptrox-popup .nav-previous,
  .poptrox-popup .nav-next {
    display: block !important;
    left: 0;
    top: 0;
    width: 3em;
    height: 3em;
    margin: 0;
    padding: 0;
    background-size: 2em;
  }
  .poptrox-popup .nav-next {
    left: 3em;
  }
  #footer .portrait {
    display: block;
    float: none;
    margin: 0 auto 1em;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  #footer.panel,
  #footer.panel.active {
    height: 100%;
    max-height: 100%;
    padding-top: 2em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
  }
  .panel > .inner.split > div:last-child {
    padding-bottom: 2em;
  }
}

@media screen and (min-width: 481px) and (max-width: 600px) {
  #header h1 .subtitle-short,
  #header h1 .separator,
  #header h1 .subtitle {
    display: none;
  }
  #header ul.icons {
    padding-right: 0;
  }
}

@media screen and (max-width: 736px) {
  .poptrox-popup {
    margin: 0;
  }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
  #header h1 .subtitle-short {
    display: inline;
  }
  #header h1 .subtitle {
    display: none;
  }
}

@media screen and (max-width: 1400px) {
  #credits-all {
    max-width: 1328px;
    width: 100%;
    height: auto;
  }
}

@media screen and (max-height: 650px) {
  body:before {
    bottom: 0;
  }
}
