/* Additional Flex Support */

.flex {
    /* background: #fff; */
}

.flex-content {
    /* background: #fff; */
}

.flex-linked-at-top, .flex-topless {
    padding-top: 0;
}

.flex-linked-at-bottom, .flex-bottomless {
    padding-bottom: 0;
}

.section-black {
    background: #7eb76a;
    color: #fff;
}

.section-grey {
    background: #666;
    color: #fff;
}

.section-light-grey {
    background: #aaa;
    color: #000;
}

.img-thumbnail2 {
    background: #fff;
}

.flex-line.line-style-1 {
    display: inline-block;
    width:115px;
    max-width: 100vw;
    margin:30px 0;
    border-top:1px solid #009ee3;

}

.flex-line.line-style-2 {
    display: inline-block;
    width:100%;
    max-width: 100%;
    margin:30px 0;
    border-top:1px solid #009ee3;
}

.flex-generic-content {
    line-height: 1.35em;
}


/*=================================================================
	Portfolio
==================================================================*/

.project-wrapper {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.project-wrapper li {
    display: inline-block;
}

.portfolio-item {
    cursor: pointer;
    margin: 0 1% 1% 0;
    overflow: hidden;
    position: relative;
    width: 32%;
}

figcaption.mask {
    background-color: rgba(54, 55, 50, 0.79);
    top: 100%;
    color: #fff;
    padding: 25px;
    position: absolute;
    width: 100%;
    text-align: left;
    transform: translate(0, 0);

    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

.portfolio-item:hover figcaption.mask {
    transform: translate(0, -100%);
}

figcaption.mask h3 {
    margin: 0;
    color: #fff;
}

ul.external {
    list-style: outside none none;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: -47px;

    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

ul.external li {
    display: inline-block;
}

ul.external li a {
    background-color: rgba(255, 255, 255, 0.9);
    color: #818181;
    display: block;
    padding: 10px 18px 13px;

    -webkit-transition: all 0.5s ease 0s;
    -moz-transition: all 0.5s ease 0s;
    -ms-transition: all 0.5s ease 0s;
    -o-transition: all 0.5s ease 0s;
    transition: all 0.5s ease 0s;
}

ul.external li a:hover {
    background-color: #009EE3;
    color: #fff;
}

.portfolio-item:hover ul.external {
    top: 0;
}

.fancybox-skin {
    border-radius: 0;
}

.fancybox-title.fancybox-title-inside-wrap {
    padding: 15px;
}

.fancybox-title h3 {
    margin: 0 0 15px;
}

.fancybox-title p {
    color: #818181;
    font-size: 16px;
    line-height: 22px;
}

.fancybox-title-inside-wrap {
    padding-top: 0;
}

#header .logo > img {
  margin-top:0;
}

@media (min-width: 768px) and (max-width: 979px) {
    /* portfolio */
    .portfolio-item {
        width: 48%;
    }
}

@media only screen and (max-width: 767px) {   
    /*portfolio*/
    .portfolio-item {
        margin: 0 auto 10px;
        font-size: 14px;
        width: 280px;
    }

    figcaption.mask {
        bottom: -107px;
        color: #fff;
        padding: 15px;
    }

    /* lightbox */
    .fancybox-title h3 {
        font-size: 20px;
    }

    .fancybox-title p {
        font-size: 14px;
    }

}

@media only screen and (max-width: 979px) {
  #header .nav-mobile {
      background:#000 !important;
    }
    #header nav {
      background:#000 !important;
    }

    #header .logo {
      left:0;                    
    }

    #header .logo  {
      transform: translate(0, -50%) !important;
    }
    
    #header .logo > img {
      margin-top:0;
    }

}