/*-------PORTFOLIO-------*/

/*---------GALLERY--------*/
.content-gallery {
    margin: 0 -10px;
    padding: 10px 0;
}

.content-gallery:after {
    clear: both;
    display: block;
    content: '';
}

.content-gallery a {
    display: block;
    float: left;
    padding: 10px;
    width: 100%;
    opacity: 0.8;
}

.content-gallery a:hover {
    opacity: 1;
}

.content-gallery a img {
    display: block;
    width: 100%;
    padding: 4px;
    border: 1px solid #d4d4d4;
}

.content-gallery .gallery-item-title {
    padding: 5px 0;
    text-align: center;
}

@media screen and (min-width: 700px) and (max-width: 939px) {
    .content-gallery a {
        width: 50%;
    }

    .content-gallery a:nth-child(2n+1) {
        clear: both;
    }
}

@media screen and (min-width: 940px) and (max-width: 1139px) {
    .content-gallery a {
        width: 33.33333%;
    }

    .content-gallery a:nth-child(3n+1) {
        clear: both;
    }
}

@media screen and (min-width: 1140px) {
    .content-gallery a {
        width: 25%;
    }

    .content-gallery a:nth-child(4n+1) {
        clear: both;
    }
}

/*maginific*/
.mfp-wrap button:hover {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

@media (max-width: 620px) {
    p {
        font-size: 16px;
    }
}

@media (max-width: 620px) {
    *, *:before, *:after {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
}

/*------SUB MENU------*/

.menu {
    display: block;
}

.menu li {
    display: inline-block;
    position: relative;
    z-index: 100;
}

.menu li:first-child {
    margin-left: 0;
}

.menu li a {
    font-size: 22px;
    text-decoration: none;
    padding: 11px;
    display: block;
    color: #fff;

    -webkit-transition: all 0.2s ease-in-out 0s;
    -moz-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    -ms-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
}

.menu li a:hover, .menu li:hover > a {
    color: #000;
    background: #fe0;
}

.menu ul {
    display: none;
    margin: 0;
    padding: 0;
    width: 150px;
    position: absolute;
    top: 43px;
    left: 0px;
    background: #fff;
}

.menu ul li {
    display: block;
    float: none;
    background: none;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    font-size: 16px;
    font-weight: normal;
    display: block;
    color: #000;
    border-left: 3px solid #000;
    background: #fff;
}

.menu ul li a:hover, .menu ul li:hover > a {
    background: #ccc;
    border-left: 3px solid #fe0;
    color: #000;
}

.menu li:hover > ul {
    display: block;
}

.menu ul ul {
    left: 149px;
    top: 0px;
}

.mobile-menu {
    display: none;
    width: 100%;
    padding: 11px;
    background: #1f1f1f;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-menu:hover {
    background: #1f1f1f;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 768px) and (max-width: 779px) {

    .mainWrap {
        width: 768px;
    }

    .menu ul {
        top: 37px;
    }

    .menu li a {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 967px) {

    .mainWrap {
        width: auto;
        padding: 0px 0px;
    }

    .menu {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin-top: 0px;
    }

    nav {
        margin: 0;
        background: none;
    }

    .menu li {
        display: block;
        margin: 0;
    }

    .menu li a {
        background: #fff;
        color: #797979;
        border-top: 1px solid #e0e0e0;
        border-left: 3px solid #fff;
    }

    .menu li a:hover, .menu li:hover > a {
        background: #f0f0f0;
        color: #797979;
        border-left: 3px solid #fe0;
    }

    .menu ul {
        display: block;
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
    }

    .menu ul ul {
        left: 0;
    }

}

.header__nav-opener {
    display: inline-block;
    vertical-align: middle;
    padding: 0 3px;
    cursor: pointer;
    font-style: normal;
}

/*.header__nav-opener:before {
    content: '\f107';
    font-family: FontAwesome;
}*/

.header__nav-lv2 {
    display: none;
}

.header__nav-lv2 a {
    text-transform: none;
}