/*============== NEW HOVER ==============*/


.grid-inner:hover .portfolio-content{
    opacity: 1;
}
.grid-inner:hover .item-title {

}
.masonry .portfolio-content { background: #FFFFFF; display: block; padding: 20px; }
.masonry .portfolio-content span { display: inline;}


.port-block:hover .portfolio-image {


}
.grid-inner:hover .portfolio-image:before {
    background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0;
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    transform: scale(0.7);
    transition: all 0.2s ease-in-out 0s;
}
.grid-inner:hover .portfolio-image::before {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1);
}


/*============== END NEW HOVER ==============*/

.noscroll {
    overflow: hidden;
}
.portfolio-grid > .cover{
    text-align: right;
    background: rgba(255,255,255,0.2);
    position: fixed;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.portfolio-grid > .cover .loadingspin{
    bottom: 0;
    top: 100%;
    margin-top: -30px;
    margin-left: -50px;
}
.portfolio-grid {
    list-style-type: none;
    position: relative;
    max-width: 100%;
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    /*margin: 0 auto;*/
}

.view-full .portfolio-grid {
    -webkit-transform: translate3d(0,0,-1500px);
    -moz-transform: translate3d(0,0,-1500px);
    transform: translate3d(0,0,-1500px);
}

.placeholder {
    display: block;
    position: absolute;
    overflow: hidden;
    opacity: 1;
    -webkit-transition: all 0.8s ease;
    -moz-transition: all 0.8s ease;
    -o-transition: all 0.8s ease;
    transition: all 0.8s ease;
    background: white;
    z-index: 99999;
}

.placeholder.visible{
    display: block;
    opacity: 1;
    -webkit-transform: translateZ(1500px);
    -moz-transform: translateZ(1500px);
    transform: translateZ(1500px);
}

.popup-content,
.popup-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Careful, does not work in IE < 11 http://caniuse.com/#search=pointer-events */
}

.popup-content {
    overflow-y: scroll;
    height: 0; /* What seems to be the problem, officer? Well, we have a second scroll bar in Chrome! */
    background: #fff;
    visibility: hidden;
    z-index: 400;
    -webkit-overflow-scrolling: touch;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
    opacity: 0;
}

.popup-content .content, .popup-content .gallery {
    margin-top: 100px;
    opacity: 0;
}

.popup-content .gallery{
    -webkit-transition: opacity 1.5s ease-out;
    transition: opacity 1.5s ease-out;
    -webkit-transition-delay: 0.5s;
    transition-delay: 0.5s;
}

.popup-content .content{
    -webkit-transition: opacity 0.5s ease-out;
    transition: opacity 0.5s ease-out;
}

.popup-content .content.visible,
.popup-content .gallery.visible{
    opacity: 1;
}

.popup-content.show {
    height: auto;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.popup-content > div {
    z-index: 10;
    position: absolute;
    top: 0;
    width: 100%;
    overflow: hidden;
    height: 0;
    opacity: 0;
    background: #fff;
}

.popup-content > div.show {
    height: auto;
    opacity: 1;
    -webkit-transition: opacity 0.6s;
    transition: opacity 0.6s;
}

.close-content {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 10px;
    font-size: 1.6em;
    color: #aaa;
    cursor: pointer;
    padding: 1em;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.close-content:hover {
    color: #999;
}

.popup-content div.show ~ .close-content {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-grid .grid-item {
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.portfolio-grid .grid-item.justified {
    position: absolute;
    display: none;
}

.portfolio-grid .grid-item.metro {
    position: absolute;
    display: none;
}
.portfolio-grid .grid-item.masonry {
    position: absolute;
    opacity: 0;
    /*display: none;*/
}

html.ie9 .portfolio-grid .grid-item.justified {
    opacity: 1;
}

/*s*/
html.ie9 .portfolio-grid .grid-item.metro {
    position: absolute;
    display: block;
}

#infscroll {
    position: relative;
    clear: both;
    width:100px;
    height: 20px;
}

#loading-content {
    position: fixed;
    right: 50px;
    top: 50px;
    background: orange;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    padding: 10px;
}

@-webkit-keyframes hiding {
    0% {
        opacity: 1;
        -webkit-transform: rotate3d(0,0,0,0deg);
        transform: rotate3d(0,0,0,0deg);
    }

    100% {
        opacity: 0;
        -webkit-transform: rotate3d(0,1,0,90deg);
        transform: rotate3d(0,1,0,90deg);
    }
}

@keyframes hiding {
    0% {
        opacity: 1;
        -webkit-transform: rotate3d(0,0,0,0deg);
        -ms-transform: rotate3d(0,0,0,0deg);
        transform: rotate3d(0,0,0,0deg);
    }

    100% {
        opacity: 0;
        -webkit-transform: rotate3d(0,1,0,90deg);
        -ms-transform: rotate3d(0,1,0,90deg);
        transform: rotate3d(0,1,0,90deg);
    }
}

.portfolio-grid .grid-item.hiding{
     -webkit-animation-duration: 0.3s;
     animation-duration: 0.3s;
     -webkit-animation-fill-mode: both;
     animation-fill-mode: both;
     -webkit-animation-name: hiding;
     animation-name: hiding;
 }

@-webkit-keyframes showing {
    0% {
        opacity: 0;
        -webkit-transform: rotate3d(0,1,0,90deg);
        -moz-transform: rotate3d(0,1,0,90deg);
        transform: rotate3d(0,1,0,90deg);
    }

    100% {
        opacity: 1;
        -webkit-transform: rotate3d(0,0,0,0deg);
        -moz-transform: rotate3d(0,0,0,0deg);
        transform: rotate3d(0,0,0,0deg);
    }
}

@keyframes showing {
    0% {
        opacity: 0;
        -webkit-transform: rotate3d(0,1,0,90deg);
        -ms-transform: rotate3d(0,1,0,90deg);
        transform: rotate3d(0,1,0,90deg);
    }

    100% {
        opacity: 1;
        -webkit-transform: rotate3d(0,0,0,0deg);
        -ms-transform: rotate3d(0,0,0,0deg);
        transform: rotate3d(0,0,0,0deg);
    }
}

.portfolio-grid .grid-item.showing{
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: showing;
    animation-name: showing;
}

.portfolio-grid .grid-item.noanimation{
    -webkit-animation-name: none;
    animation-name: none;
}

.portfolio-grid .grid-item.filter-off {
    display: none !important;
}

.loadmore {
    text-align: center;
    text-transform: uppercase;
}

.popup-content .blog-date {
    color: rgba(255, 255, 255, 0.3);
}

.popup-content .title {
    padding: 30px;
}

.popup-inner .category-item > a {
    border: 2px solid;
    -webkit-border-radius:50px;
    -moz-border-radius:50px;
    border-radius:50px;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 5px 10px;
}
.popup-inner .categories {
    margin-top: 10px;
}

.popup-content .button a {
    color: #000000;
    display: block;
    margin: auto;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
}
.popup-content .description {
    overflow: auto;
    padding: 10px;
    color: #fff;
}
.popup-content .button {
    border: 2px solid;
    -webkit-border-radius:50px;
    -moz-border-radius:50px;
    border-radius:50px;
    display: inline-block;
    margin-top: 20px;
    margin-left: 0;
    text-decoration: none;
}

.popup-content .owl-prev {
    left: 0px;
    position: absolute;
    top: -250px;
}

.popup-content .owl-next {
    position: absolute;
    top: -250px;
    right: 0px;
}

.gridifier-items {
    position: relative;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.grid-item .portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    -webkit-transition: all 0.7s;
    -moz-transition: all 0.7s;
    transition: all 0.7s;
}

.grid-item.masonry .portfolio-image img{
    max-width: 100%;
    height: auto;
    -webkit-transition: all 0.7s;
    -moz-transition: all 0.7s;
    transition: all 0.7s;
}

.grid-item .portfolio-image-blog {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    -webkit-transition: all 0.7s;
    -moz-transition: all 0.7s;
    transition: all 0.7s;
}

.grid-item .cover {
    text-align: center;
    vertical-align: baseline;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
    top: 0;
}

.popup-content .close-content {
    color: #000000;
    cursor: pointer;
    font-size: 20px;
    height: 100px;
    line-height: 94px;
    padding: 5px;
    position: fixed;
    right: 0;
    text-align: center;
    text-transform: uppercase;
    top: 0;
    width: 100px;
    z-index: 120;
}

.popup-content .gallery,
.popup-content .gallery .gallery-item,
.popup-content .gallery img{
    max-width: 100%;
}

.popup-content .gallery img{
    width: 100%;
    height: auto;
}

.popup-content .gallery .gallery-item,
#portfolio-gallery .gallery .gallery-item{
    text-align: center;
    min-height: 200px;
}

.grid-item .recent-posts .type-post {
    width: 100%;
    height: 100%;
}

.portfolio-grid {
    padding: 0 !important;
}

.item-title {

}

.item-title > a:before {
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.04);
    content: "";
    height: 1000px;
    left: -5px;
    position: absolute;
    top: -582px;
    -webkit-transform: skewY(45deg);
    -moz-transform: skewY(45deg);
    transform: skewY(45deg);
    width: 1000px;
    z-index: -1;
}

.grid-item:hover .item-title {
    bottom: 0;
}



.excerpt {
    display: none;
}

.portfolio-content h3 {
    border: 2px solid;
    display: inline;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: auto;
    opacity: 0;
    padding: 15px;
    position: relative;
    top: 30px;
    width: 50%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.portfolio-content h3:hover {
    border: 2px solid #ffffff;
    background: #ffffff;
    color: #414141 !important;
}



/* ============ AJAX Recent posts ===================*/

.recent-posts-ajax-hover > h4 > a {
    border-bottom: 1px solid;
}

.recent-posts-ajax-hover:hover a {
    border-bottom: 0px solid;
}

.recent-posts-ajax-hover > h4 {
    bottom: 0;
    max-width: 80%;
    min-width: 40%;
    position: absolute;
    color: #ffffff;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    -o-transition: all 0.4s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
    text-align: left;
    padding: 20px;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.recent-posts-ajax-hover > h4:hover {
    background: #ffffff;
    color: #414141;
}

html.properbrowser .recent-posts-ajax-hover > h4:before {
    border: 2px solid;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    color: #FFFFFF;
    content: '\ea9b';
    display: block;
    float: left;
    font-family: icomoon;
    font-size: 14px;
    height: 30px;
    line-height: 25px;
    margin-right: 10px;
    position: relative;
    text-align: center;
    width: 30px;
    z-index: 1;
}

html.ie .recent-posts-ajax-hover > h4:before {
    border: 2px solid;
    border-radius: 50%;
    color: #FFFFFF;
    content: '\ea9b';
    display: block;
    float: left;
    font-family: icomoon;
    font-size: 14px;
    height: 30px;
    line-height: 25px;
    margin-right: 10px;
    position: relative;
    text-align: center;
    width: 30px;
    z-index: 1;
}

.masonry img {
    max-width: 100%;
    min-width: 100%;
    height: auto;
}
.masonry .blog-image > img {
    -webkit-border-top-left-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    border-top-right-radius: 5px;
}

.recent-posts-ajax-hover > .recentpost-date {
    color: #ffffff;
    position: absolute;
    bottom: -50px;
    -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;
    transition: all 0.2s ease-in-out 0s;
}

.blog-grid .gridifier .grid-item iframe{
    margin: 0 auto !important;
    max-width: 90% !important;
    min-width: 0!important;
}

.columns1 .port-block,
.columns2 .port-block,
.columns3 .port-block,
.columns4 .port-block,
.columns6 .port-block,
.columns12 .port-block {
    border: 0 none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.columns12 .item-title {
    background: none repeat scroll 0 0 #FFFFFF;
    bottom: -123px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    padding: 10px 20px 10px 30px;
    position: absolute;
    text-align: left;
    text-transform: uppercase;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    -o-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
    width: 100%;
}

.columns12 .item-title:before,
.columns12 .gallery-title {
    display: none;
}
.columns12 .photo-count {
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
}
.columns12 .grid-item:hover .photo-count::before{
    left: -20px;
}
.columns12 .grid-item:hover .photo-count::after{
    right: -20px;
}
.columns6 .masonry .photo-count {
    display: none;
}

.video_container.grid-video {
    position: absolute;
}
.video-icon {
    color: #FFFFFF;
    font-family: icomoon;
    font-size: 30px;
    font-style: normal;
    height: 100%;
    left: 45%;
    position: absolute;
    top: 40%;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    -o-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
    z-index: 1;
}
.grid-item .bx-ajax-gallery img {
    max-width: 100%;
}

.recent-posts-ajax .bx-controls {
    z-index: 150;
}

.grid-preloader {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}

.grid-inner {
    overflow: hidden;
    margin: 0;
    height: 100%;
}

.portfolio-image-wrap {
    overflow: hidden !important;
    display: table-cell;
    vertical-align: middle;
}

.portfolio-image-wrap img {
    max-width: 100%;
    height: auto;
}

#grid-wrap {
    max-width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
    -webkit-perspective: 1500px;
    perspective: 1500px;
}

.grid-border {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.video_container.grid-video{
    top:0;
    z-index:-1;
}

.gallery-content{
    background: white;
    padding: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: right;
}

.grid-photo-info-block{
    position: absolute;
    opacity: 0.8;
    top: 10px;
    right: 10px;
}
.gridifier.columns4 .image-like {
    right: 30%;
}
.gridifier.columns6 .image-like {
    right: 23%;
}
.gridifier .image-like {
    bottom: 30px;
    margin: auto;
    position: absolute;
    text-align: center;
    top: 70%;
    width: 50px;
}
.gridifier .like-text {
    bottom: -30px;
    position: absolute;
}
.gridifier .like-count {
    position: absolute;
    text-align: center;
    top: -25px;
}
.gridifier.columns4 .image-like.clicked,
.gridifier.columns6 .image-like.clicked{
    bottom: 30px;
    display: block;
    height: 30px;
    position: absolute;
    width: 100px;
    opacity: .5;
    cursor: default;
}
.gridifier.columns4 .image-like,
.gridifier.columns6 .image-like{
    background: none repeat scroll 0 0 #fff;
    border-color: #fff;
    color: #000;
    font-size: 10px;
    font-weight: 900;
    height: 30px;
    letter-spacing: 2px;
    position: absolute;
    width: 100px;
    cursor: pointer;
    -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;
    transition:all 0.2s ease-in-out 0s;
}
.gridifier.columns4 .image-like:hover,
.gridifier.columns6 .image-like:hover {
    color: #fff;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    transform: scale(1.2);
}
.gridifier.columns4 .image-like:before,
.gridifier.columns6 .image-like:before {
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    z-index: 0;
    -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;
    transition:all 0.2s ease-in-out 0s;
}
.gridifier .image-like {
    border: 0 solid;
}
.gridifier.columns4 .image-like:hover::before,
.gridifier.columns6 .image-like:hover::before {
    opacity: 1;
}
.gridifier.columns4 .like-text,
.gridifier.columns6 .like-text{
    left: 34px;
    top: 7px;
    width: auto;
}
.gridifier.columns4 .like-count,
.gridifier.columns6 .like-count {
    font-size: 10px;
    font-weight: 900;
    opacity: 0.3;
    position: relative;
    right: -29px;
    top: -3px;
}
.gridifier.columns4 .like-count:hover,
.gridifier.columns6 .like-count:hover {
    color: #111111;
}
#photoframe .like-text,
.gridifier .like-text{
    cursor: pointer;
}
#photoframe .clicked .like-text,
.gridifier .clicked .like-text{
    opacity: 0.3;
    cursor: default;
}

.pp_content .pp_gallery{
    display: none;
}

.photo-count {
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    bottom: -30px;
    color: #ffffff;
    font-size: 15px;
    height: 30px;
    left: 0;
    line-height: 30px;
    margin: auto;
    opacity: 0;
    position: absolute;
    right: 0;
    text-align: center;
    text-transform: uppercase;
    top: 100px;
    -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;
    transition:all 0.2s ease-in-out 0.2s;
    width: 30px;
    z-index: 3;
}
.photo-count::before {
    background: #ff4f54 none repeat scroll 0 0;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    content: "";
    font-family: icomoon;
    height: 5px;
    left: -20px;
    opacity: 0;
    position: absolute;
    top: 45%;
    transition: all 0.5s ease-in-out 0s;
    width: 100px;
}
.grid-item:hover .photo-count::before {
    left: -30px;
    opacity: 1;
    width: 5px;
}
.photo-count::after {
    background: #ff4f54 none repeat scroll 0 0;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    content: "";
    height: 5px;
    opacity: 0;
    position: absolute;
    right: -10px;
    top: 50%;
    transition: all 0.5s ease-in-out 0s;
    width: 100px;
}
.grid-item:hover .photo-count::after {
    opacity: 1;
    right: -30px;
    width: 5px;
}


.photo-count-text {
    display: none;
}

.gallery-overlay{
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    -o-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}
.gallery-overlay:hover{
    opacity: 0;
}

.grid-item .gallery-title {
    bottom: 60%;
    color: #ffffff;
    left: 0;
    margin: auto;
    opacity: 0;
    position: absolute;
    right: 0;
    text-align: center;
    text-transform: uppercase;
    -webkit-transform: translateY(50%);
    -moz-transform: translateY(50%);
    transform: translateY(50%);
    -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;
    transition:all 0.2s ease-in-out 0s;
    width: 150px;
}
.page-template-page-gallery-grid-php .grid-border > a:hover .gallery-title {
    bottom: 50%;
    opacity: 1;
}
.page-template-page-gallery-grid-php .grid-border > a:hover .photo-count {
    opacity: 1;
    bottom: 20px;
}

.filter-button:before {
    content: "\e7ec";
}

.post-gallery .owl-item{
    height: 200px;
}

.post-gallery .grid-gallery-item img{
    display: block;
    width: 100%;
    height: auto;
    min-width: auto;
    min-height: auto;
}

.grid-appear{
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: gridAppear;
    animation-name: gridAppear;
}

@-webkit-keyframes gridAppear {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.97);
        -moz-transform: scale(0.97);
        transform: scale(0.97);
    }

    90% {
        opacity: 0.9;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        transform: scale(1);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes gridAppear {
    0% {
        opacity: 0;
        -moz-transform: scale(0.97);
        -ms-transform: scale(0.97);
        -o-transform: scale(0.97);
        transform: scale(0.97);
    }

    90% {
        opacity: 0.9;
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }

    100% {
        opacity: 1;
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}