@font-face {
    font-family: ptsans;
    src: url(/themes/katrin_theme/assets/fonts/PT_Sans/PT_Sans-Web-Regular.ttf);
}
@font-face {
    font-family: avenirnext;
    src: url('/themes/katrin_theme/assets/fonts/AvenirNextCyr-Thin.eot');
    src: url('/themes/katrin_theme/assets/fonts/AvenirNextCyr-Thin.eot?#iefix') format('embedded-opentype'),
    url('/themes/katrin_theme/assets/fonts/AvenirNextCyr-Thin.woff') format('woff'),
    url(/themes/katrin_theme/assets/fonts/AvenirNext.ttf) format('truetype');
}

* {
    margin: 0;
    padding: 0;
}

a:link, a:visited {
    text-decoration: none;
    color: black;
}

html, body{
    height: 100%;
    font-family: "PT Sans", ptsans;
}

.page_wrapper{
    min-height: 100%;
    min-width: 1024px;
}

.page_wrapper__header{
    position: fixed;
    width: 100%;
    background: white;
    z-index: 10;
}

.page_wrapper__header__navigation{
    display: flex;
    justify-content: center;
    align-items: center;
}


.page_wrapper__content{
    overflow: hidden;
}


.gallery div{
    background-size: cover;
    background-position: center;
}

.thumb_navigation_item {
    border: 0px solid white;
    box-sizing: border-box;
}

.current_item{
    color: black;
}

.burger_menu__categories_wrap{
    width: 185px;
    position: absolute;
    right: 20px;
    top: 150px;
    display: none;
    max-height: 180px;
    overflow-y: scroll;
}

.categories_visible{
    display: block;
}

.burger_menu__categories_wrap__subitem{
    color: black;
    list-style: none;
    padding: 5px;
    text-align: right;
    font-size: 14px;
}

.burger_menu__categories_wrap__subitem:hover{
    cursor: pointer;
    color: #686868;
}


.burger_menu{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 85px 85px;
    border-color: transparent transparent white transparent;
}

.burger_menu__hovered{
    display: none;
    position: absolute;
    right: 24px;
    top: 335px;
}

.hovered_visible{
    display: inline-block;
}

.burger_menu__hovered:hover{
    cursor: pointer;
}

.burger_menu__unhovered{
    margin-left: -35px;
    margin-bottom: -55px;
}

.unhovered_hidden{
    display: none;
}

.toggle_button{
    display: none;
}

.mobile_navigation{
    display: none;
}

.show_photos{
    display: none;
}

.hidden_images_block{
    display: none;
}

/********onclick close**********/

/*******************************/

@media screen and (min-width: 320px) and (max-width: 900px) {

    html,body{
        font-family: "Avenir Next", avenirnext;
    }

    a:link, a:visited {
        text-decoration: none;
        color: black;
    }

    .page_wrapper {
        width: 100%;
        min-width: auto;
    }

    .page_wrapper__header__navigation {
        justify-content: flex-end;
    }

    .item{
        display: none;
    }
    .logo{
        display: block;
        margin: 0;
        height: 46px;
    }


    /********************************************/
    .grid {
        width: 100%;
    }

    .grid:after , .grid-navigation-wrap-inner:after{
        content: '';
        display: block;
        clear: both;
    }

    .grid-item {
        height: 100%;
        float: left;
        display: inline-block;
        background-size: cover;
        background-position: center;
    }

    .grid-item--width2 {
        width: 100%;
        background-position-x: center;
    }

    .grid-item--height2 {
        height: 60vh;
        border-bottom: 5px solid white;
    }

    .grid-navigation-wrap{
        width: 100%;
        height: 20vh;
        float: left;
        overflow: auto;
        position: relative;
    }

    .grid-navigation-wrap-inner{
        height: 100%;
        width: 1200px;
    }

    .show_photos{
        height: 10vh;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .show{
        width: 100%;
        height: 100%;
        border: 1px solid #6DCEE1;
        margin: auto;
        display: block;
        background: transparent;
        font-size: 14px;
        color: #676767;
        letter-spacing: 0.38px;
    }
    .show:hover{
        cursor: pointer;
    }

    .thumb_navigation_item {
        border: 1px solid white;
        box-sizing: border-box;
        /*height: 100%;*/
        width: 150px;
        /*position: absolute;*/
    }
    /* хром, сафари */
    .grid-navigation-wrap-inner::-webkit-scrollbar { width: 0; }

    /* ie 10+ */
    .grid-navigation-wrap-inner { -ms-overflow-style: none; }

    /* фф (свойство больше не работает, других способов тоже нет)*/
    .grid-navigation-wrap-inner { overflow: -moz-scrollbars-none; }

    .show_photos a{
        color: #676767 !important;
        width: 75%;
        height: 70%;
    }
    .li_margin{
        margin-bottom: 0 !important;
    }

    .prev, .next{
        background-size: auto !important;
        opacity: 0;
    }

    .animation{
        animation: arrowShake 2s infinite linear;
        opacity: .3 !important;
        transition: opacity;
    }

    .finger_animation{
        animation: fingerAnim 3s infinite linear;
        opacity: 0.5 ;
    }

    .prev{
        position: fixed;
        background: url(/themes/katrin_theme/assets/img/prev.png) no-repeat;
        background-position: center;
        width: 90px;
        left: 0;
        float: left;
        opacity: 0;
    }

    .next{
        position: fixed;
        background: url(/themes/katrin_theme/assets/img/next.png) no-repeat;
        background-position: center;
        width: 90px;
        right: 0;
        float: right;
        opacity: 0;
    }

    .finger{
        position: fixed;
        background: url(/themes/katrin_theme/assets/img/swipe.png) no-repeat;
        background-position: center;
        background-size: contain !important;
        width: 200px;
        right: 0;
        left: 0;
        margin: 0 auto;
        opacity: 0;
    }


    @keyframes arrowShake {
        0% {background-position-x: 0px;}
        50% {background-position-x: 35px;}
        100% {background-position-x: 0px;}
    }

    @keyframes fingerAnim{
        0% {
            opacity: 0;
        }
        25% {
            opacity: 1;
        }
        50% {
            background-position-x: -10px;
            opacity: 1;
        }
        75% {
            background-position-x: 10px;
            opacity: 1;
        }
        100%{
            background-position-x: center;
            opacity: 1;
        }
    }

}