.popupfoto{
    cursor:zoom-in;
}
.popupfoto_wrapper>.popupfoto_container{
    position:fixed;
    overflow: hidden;
    overflow-y:overlay;
    z-index: 9999;
    top: -100%;
    width:100%;
}
/****************/
.popupfoto_wrapper.top>.popupfoto_container{
    visibility:hidden;
    transform:translateY(-100%);
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    
     transition: top .25s ease-out;
    -webkit-transition: top .25s ease-out;
    -ms-transition: top .25s ease-out;
    -moz-transition: top .25s ease-out;
    -o-transition: top .25s ease-out;
    
    
}
.popupfoto_wrapper.top.open>.popupfoto_container{
    min-height: 70%;
    height: 100%;
    overflow:visible;
    visibility: visible!important;
    /*background: #000;*/
    cursor:pointer;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -ms-transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
    -moz-transform: translateY(-50%) translateX(-50%);
    -o-transform: translateY(-50%) translateX(-50%);
    /* text-align: center; */
}
.popupfoto_wrapper.open.nav>.popupfoto_container:after{
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    font: normal normal normal 14px/1 "Black Tie";
    text-shadow: 0 0 6px #000!important;
    content: "\F093";
    z-index: 9999;
    position: absolute;
    right: 30px;
    top: 50%;
    margin-top: -0.5em;
    font-weight: 400;
    color: #fff!important;
    font-size: 3em;
}
.popupfoto_wrapper.open.nav>.popupfoto_container:before{
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    font: normal normal normal 14px/1 "Black Tie";
    text-shadow: 0 0 6px #000!important;
    content: "\F092";
    z-index: 9999;
    position: absolute;
    left: 30px;
    top: 50%;
    margin-top: -0.5em;
    font-weight: 400;
    color: #fff!important;
    font-size: 3em;
}
.popupfoto_wrapper.open.nav>.popupfoto_container:hover:after,.popupfoto_wrapper.open.nav>.popupfoto_container:hover:before{
    visibility: visible;
    opacity: 1;
}
.popupfoto_wrapper.top.open>.popupfoto_container img{
        top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -ms-transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
    -moz-transform: translateY(-50%) translateX(-50%);
    -o-transform: translateY(-50%) translateX(-50%);
    position: absolute;
}
.popupfoto_wrapper.open>.popupfoto_bg{
    display:block;
}
.popupfoto_wrapper>.popupfoto_bg{
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .75);
    z-index: 9998;
    top: 0;
    left:0;
    display:none;
}
.popupfoto_wrapper.open>.popupfoto_close:after{
    font: normal normal normal 14px/1 "Black Tie";
    content: "\f00c";
    z-index: 9999;
    position: fixed;
    right: 1em;
    top: 1em;
    font-weight: 600;
    color: #fff!important;
    cursor:pointer;
    font-size: 18px;
}
@media (max-width: 767px) {
    .popupfoto_wrapper>.popupfoto_bg{
        background-color:#000!important;
    }
    .popupfoto_wrapper.top.open>.popupfoto_container:after,.popupfoto_wrapper.top.open>.popupfoto_container:before{
        visibility: visible;
        opacity: 1;
    }
}