/* 
Justified Gallery
Version: 1.0.2
Author: Miro Mannino
Author URI: http://miromannino.it

Copyright 2012 Miro Mannino (miro.mannino@gmail.com)

This file is part of Justified Gallery.

This work is licensed under the Creative Commons Attribution 3.0 Unported License. 

To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ 
or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
*/

/*html { overflow-y: scroll; } to prevent the loop when the scrollbar appear and disappear*/
body{
    overflow-x : hidden;
}


#justified-filter{
    display:none; 
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4) rgba(0, 0, 0, 0.1);
    border-image: none;
    border-width: 1px;
    /*padding: 5px 0 0 0 ;*/
    margin-left: 0px;
}

.modern li {
  display: inline-block;
  margin: 3px;
  padding: 8px 15px;
  background-color: #838383;
  border-radius: 4px;
  transition: all 0.3s ease-out;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Cambria,Georgia,serif;
}

.modern li:hover  { 
    background: none repeat scroll 0 0 rgba(142, 140, 140, 1);
    color:rgba(255, 255, 255, 1);
}

.modern li:active {
    box-shadow: 
    inset 0 -2px 1px rgba(255,255,255,0.2),
    inset 0 3px 2px rgba(0,0,0,0.12);
}

#justified-filter li.selected-filter-item{
    background: none repeat scroll 0 0 rgba(142, 140, 140, 1); 
    /*border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px 4px 4px 4px;*/
    color:rgba(255, 255, 255, 1);
    /*box-shadow: 
    inset 0 -2px 1px rgba(255,255,255,0.2),
    inset 0 3px 2px rgba(0,0,0,0.12);*/
    top: -6px; bottom: -6px;
    right: -6px; left: -6px;
    /*min-height: 20px;*/
}

#justified-gallery{
    clear:both;
    list-style-type: none;
    position: relative;
    display: block;
	z-index: 1;
    /*overflow-y: hidden;*/
}

#justified-gallery > li {
    position: absolute;
    cursor: pointer;
    border: 10px solid #fff;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    display: none;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

#justified-gallery li a img{
    height : 188px;
    width : 250px
}

.no-js #justified-gallery li {
    position: relative;
    display: inline-block;
}

#justified-gallery li a {
    display: block;
    outline: none;
}

#justified-gallery li img {
    display: block;
    border: none;
}


.tp-info,
.tp-title {
    position: absolute;
    background: #fff;
    line-height: 30px;
    color: #000;
    top: 40%;
    width: 75%;
    padding: 10px;
    font-weight: 700;
    text-align: left;
    left: -100%;
    box-shadow: 
    1px 1px 1px rgba(0,0,0,0.1),
    5px 0 5px -3px rgba(0,0,0,0.4),
    inset 0 0 5px rgba(0,0,0,0.04);
    text-transform: uppercase;
}

.touch .tp-info {
    left: 0px;
}

.no-touch .tp-info {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.no-touch .tp-grid li:hover .tp-info {
    -webkit-transition-delay: 150ms;
    -moz-transition-delay: 150ms;
    -o-transition-delay: 150ms;
    -ms-transition-delay: 150ms;
    transition-delay: 150ms;
}

.no-touch .tp-open li:hover .tp-info {
    left: 0px;
}

.tp-title {
    padding: 10px 35px 10px 10px;
    left: 0px;
}
#justified-gallery > li:hover > .tp-title{
    background: #bedc9d;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;

}


.tp-title .numberItems{
    color: #fff;
    /*padding: 0px 25px;*/
    min-width: 60px;
    text-align: center;
    background: #bedc9d;
    right: 0px;
    height: 100%;
    vertical-align: middle;
    top: 0px;
    position: absolute;
    display: block;

}

.numberItems span{
    vertical-align: middle;
    line-height: 40px;
    font-family: Arial, "Lucida Grande", sans-serif;
    font-size: 16px;
}

.tp-title .numberItems:before{
    content: "";
    display: block;
    position: absolute;
    right: 0px;
    margin-left: -4px;
    bottom: -20px;
    border-left: 30px solid transparent;
    border-right: 0px solid transparent;
    border-top: 20px solid #bedc9d;
}

.tp-title .numberItems:after{
    content: "";
    display: block;
    position: absolute;
    right: 30px;
    margin-left: -4px;
    bottom: -20px;
    border-left: 0px solid transparent;
    border-right: 30px solid transparent;
    border-top: 20px solid #bedc9d;
}

.topbar {
    position: relative;
    float:right;
    /* margin: 0 0 20px; */
    /* box-shadow: 0 1px 0 #aaa, 0 -1px 0 #aaa;  */
}
.topbar h2,
.topbar h3 {
    display: inline-block;
    font-weight: 300;
    font-size: 40px;
    width: 95%;
    min-width: 320px;
}

.topbar h2 {
    padding-right: 20px;
    color: #666;
}

.topbar h3 {
    text-align: right;
    padding-left: 20px;
    color: #aaa;
}

.back {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    color: rgba(255,255,255,1);
    background: #ddd;
    background: rgba(0,0,0,0.7);
    cursor: pointer;
    display: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
} 


.no-touch .back:hover {
    background: #fff;
    background: rgba(255,255,255,0.9);
}

.loader {
    left: 50%;
    position: absolute;
    margin-left: -120px;
}

.loader i {
    display: inline-block;
    width: 40px;
    height: 40px;
    -webkit-animation: loading 1s linear infinite forwards;
    -moz-animation: loading 1s linear infinite forwards;
    -o-animation: loading 1s linear infinite forwards;
    -ms-animation: loading 1s linear infinite forwards;
    animation: loading 1s linear infinite forwards;
}

#justified{
    list-style-type: none;
    position: relative;
    display: block;
}

.justifiedGallery { 
    margin-bottom: 10px; 
    list-style: none;
    padding: 20px 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.justifiedGallery li.jg-rows{
    overflow: inherit !important;
    border:0 !important;
    display:list-item !important;
    position:relative !important;
    box-shadow: none !important;
    -webkit-backface-visibility: visible !important;
    -moz-backface-visibility: visible !important;
    -ms-backface-visibility: visible !important;
    -o-backface-visibility: visible !important;
    backface-visibility: visible !important;
}

.justifiedGallery .jg-image {
    position: absolute;
    display: inline-block;
    vertical-align: top;
    margin-left: 0px;
    z-index:100;
}
.justifiedGallery .jg-image img {
    border: none;
    display: none;
}
.justifiedGallery .jg-image a { text-decoration: none; }
.justifiedGallery .jg-image-label {
    width:100%;
    white-space: normal;
    font-size: 12pt;
    position: absolute;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 20px 10px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, .9);
    opacity: 0;
  /*  -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
    */
}
.justifiedGallery .jg-loading-img{
    margin: auto;
    width: 50px;
    height: 50px;
    background:url(../img/loading.gif) no-repeat center center;
}
.justifiedGallery .jg-loading{
    top: 50%;
    margin: auto;
    width: 50px;
    height: 50px;
    background-color: white;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.justifiedGallery .jg-row {
    position: relative;
    white-space: nowrap;    
    overflow:hidden; 
}

/*.justifiedGallery .og-expanded ::after {
    border: solid transparent;
    content: " ";
    height: 10px;
    display: inline-block;
    width: 10px;
    position: relative;
    pointer-events: none;
    border-bottom-color: #000000;
    border-width: 14px;
    left: 50%;
    top: -73px;
    z-index: 99999;
    margin: 18px 0 0 -150px;
}*/

.og-expander{
    padding: 0 3000px;
    margin: 0 -3000px;
    /*position: absolute;*/
    background: #222;
    /*top: auto;
    left: 0;
    width: 100%;*/
    text-align: left;
    overflow: hidden;
    z-index: 1000;
}

.og-expander-inner {
    /*    position : absolute;
    padding: 20px 0px;
    top: auto;
    left: 0;
    width: 100%*/
    height: 100%;
    position: relative;
}

.og-close {
    z-index: 1001;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 20px;
    right: 0;
    cursor: pointer;
}

.og-close::before,
.og-close::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    height: 1px;
    background: #888;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.og-close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(-45deg);
}

.og-close:hover::before,
.og-close:hover::after {
    background: #fff;
}


.og-fullimg{
    position : relative;
    width: 65%;
    z-index: 1000;
    height: 100%;
}
.og-details {
    position : absolute;
    z-index: 500;
    width: 34%;
    top: 0px;
    right:0px;
    font-family: arial,sans-serif;
}

.og-fullimg img {
    display: inline-block;
    /*width: 100%;*/
    /*max-height: 100%;*/
    max-width: 100%;
    z-index: 1000;
    position: absolute;
    top:50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translateX(-50%) translateY (-50%);
}

.og-details h3 {
    font-weight: normal;
    font-size: 22px;
    padding: 40px 0 10px 20px;
    margin-bottom: 10px;
    margin-left: 10px;
    color: #d6d6d6;
}

.og-details p {
    font-weight: 400;
    font-size: 13px;
    line-height: 22px;
    color: #7d7d7d;
    margin: 0 10px 0 20px;
    text-align: justify;
    padding-right: 20px;
}

/*.og-details a {
    font-weight: 700;
    font-size: 16px;
    color: #d7d7d7;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 3px solid #7d7d7d;
    display: inline-block !important;
    margin: 20px 0 0 20px;
    outline: none !important;
}*/

/*.og-details a::before {
    content: '\2192';
    display: inline-block;
    margin-right: 10px;
}*/

/*.og-details a:hover {
    border-color: #d7d7d7;
    color: #7d7d7d;
    text-decoration: none;
}*/

.og-loading {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    -webkit-animation: loader 0.5s infinite ease-in-out both;
    -moz-animation: loader 0.5s infinite ease-in-out both;
    animation: loader 0.5s infinite ease-in-out both;
}

.og-arrow{
    top: 50%;
    border: none;
    position: absolute; 
    width: 100px;
    height: 100px;
    margin: auto;
    cursor: pointer;
    outline: none;
    z-index: 1000;  
    -webkit-transition: opacity 0.3s;
    -ms-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.og-arrow-left{
    opacity: 1;
    background: url('../images/arrows_horizontal.png') no-repeat 50%;
    margin-top: 50px;
    left:0;
    background-position: 0 50%;
}
.og-arrow-right{
    opacity: 1;
    background: url('../images/arrows_horizontal.png') no-repeat 50%;
    margin-top: 50px;
    right:0;
    background-position: -100px 50%;
}

.og-line{
    top: 0;
    right: 34%;
    z-index: 1001;
    position: absolute;
    margin: 20px 0;
    vertical-align: middle;
    width: 0;
    display: inline-block;
    border-left: 1px solid #121212;
    box-shadow: 1px 0 #2a2a2a;
}

.og-visit{
    /*display: block;*/
    margin: 20px 0px 20px 20px;  
}

.og-visit .og-arrow-visit{
    background: url('../img/icon-arrow.png') no-repeat;
    background-size: 100%;
    width: 64px;
    height: 31px;  

    -webkit-transform: translate(-17px,0);
    -moz-transform: translate(-17px,0);
    -ms-transform: translate(-17px,0);
    -o-transform: translate(-17px,0);
    transform: translate(-17px,0);
    -webkit-transition: 0.3s ease all;
    -moz-transition: 0.3s ease all;
    -o-transition: 0.3s ease all;
    transition: 0.3s ease all;
    display: inline-block;
}

.og-visit .og-page-visit{
    background: url('../img/icon-visit.png') no-repeat;
    background-size: 100%;
    width: 113px;
    height: 37px;

    -webkit-transform: translate(-226px,0);
    -moz-transform: translate(-226px,0);
    -ms-transform: translate(-226px,0);
    -o-transform: translate(-226px,0);
    transform: translate(-226px,0);
    -webkit-transition: 0.5s ease all;
    -moz-transition: 0.5s ease all;
    -o-transition: 0.5s ease all;
    transition: 0.5s ease all;
    opacity: 0;
    fitler: alpha(opacity=0);
    display: inline-block;
}

.og-visit:hover .og-arrow-visit{
    -webkit-transform: translate(64px,0);
    -moz-transform: translate(64px,0);
    -ms-transform: translate(64px,0);
    -o-transform: translate(64px,0);
    transform: translate(64px,0);
    opacity: 0;
    fitler: alpha(opacity=0);
}

.og-visit:hover .og-page-visit{
    -webkit-transform: translate(-102px,0);
    -moz-transform: translate(-102px,0);
    -ms-transform: translate(-102px,0);
    -o-transform: translate(-102px,0);
    transform: translate(-102px,0);
    opacity: 1;
    fitler: alpha(opacity=100);
}

@-webkit-keyframes loader {
    0% { background: #ddd; }
33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@-moz-keyframes loader {
    0% { background: #ddd; }
33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@keyframes loader {
    0% { background: #ddd; }
33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@media screen and (max-width: 830px) {

    .og-expander h3 { font-size: 32px; }
    .og-expander p { font-size: 13px; }
    .og-expander a { font-size: 12px; }

}

@media screen and (max-width: 768px) {

    #justified-gallery{
    margin-left: 0 !important;
    min-width: 100% !important;
    }
.og-fullimg {
  width: 100%!important;
}
.og-details {
  width: 100%!important;
  text-align: center!important;
}
.og-line {
  display: none!important;
}
}

@media screen and (max-width: 320px){
    #justified-gallery{
    margin-left: 0 !important;
    min-width: 100% !important;
    }

    #justified-gallery li a img{
    height: 150px;
    width: 150px
    }

    #justified .jg-rows:first-child .jg-row{
    display:none;
    }
    .og-fullimg { 
    width:100% ;
    padding-left : 0;
    }
    .og-details{
    width: 100%;
    position: relative;
    }

    .og-details h3{
    font-size: 15px;
    margin: 0;
    padding: 5px 0 5px 0;
    }
    .og-details p{
    font-size: 8px;
    line-height:normal;
    margin:0;
    padding: 5px 0 5px 0;
    }

    .og-details a{
    border : 1px solid #7D7D7D;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: normal;
    margin: 5px 0 0 0;
    }

    .og-line{
    display: none;
    }

    .og-close{
    right: -20px;
    }
}

/*@media screen and (max-width: 480px){
    #justified-gallery{
    margin-left: 0 !important;
    min-width: 100% !important;
    }

    #justified-gallery li a img{
    height: 150px;
    width: 220px
    }

    #justified .jg-rows:first-child .jg-row{
    display:none;
    }
    .og-fullimg { 
    width:100% ;
    padding-left : 0;
    }
    .og-details{
    width: 100%;
    position: relative;
    }

    .og-details h3{
    font-size: 15px;
    margin: 0;
    padding: 5px 0 5px 0;
    }
    .og-details p{
    font-size: 8px;
    line-height:normal;
    margin:0;
    padding: 5px 0 5px 0;
    }

    .og-details a{
    border : 1px solid #7D7D7D;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: normal;
    margin: 5px 0 0 0;
    }
}*/

.animated{
    -webkit-animation-fill-mode:both;
    -moz-animation-fill-mode:both;
    -ms-animation-fill-mode:both;
    -o-animation-fill-mode:both;
    animation-fill-mode:both;
    -webkit-animation-duration:1s;
    -moz-animation-duration:1s;
    -ms-animation-duration:1s;
    -o-animation-duration:1s;
    animation-duration:1s;
}
.animated.hinge{
    -webkit-animation-duration:1s;
    -moz-animation-duration:1s;
    -ms-animation-duration:1s;
    -o-animation-duration:1s;
    animation-duration:1s;
}

@-webkit-keyframes flipInX {
    0% {
    -webkit-transform: perspective(400px) rotateX(90deg);
    opacity: 0;
} 40% {
    -webkit-transform: perspective(400px) rotateX(-10deg);
}

70% {
    -webkit-transform: perspective(400px) rotateX(10deg);
}

100% {
    -webkit-transform: perspective(400px) rotateX(0deg);
    opacity: 1;
}
}
@-moz-keyframes flipInX {
    0% {
    -moz-transform: perspective(400px) rotateX(90deg);
    opacity: 0;
}

40% {
    -moz-transform: perspective(400px) rotateX(-10deg);
}

70% {
    -moz-transform: perspective(400px) rotateX(10deg);
}

100% {
    -moz-transform: perspective(400px) rotateX(0deg);
    opacity: 1;
}
}
@-o-keyframes flipInX {
    0% {
    -o-transform: perspective(400px) rotateX(90deg);
    opacity: 0;
}

40% {
    -o-transform: perspective(400px) rotateX(-10deg);
}

70% {
    -o-transform: perspective(400px) rotateX(10deg);
}

100% {
    -o-transform: perspective(400px) rotateX(0deg);
    opacity: 1;
}
}
@keyframes flipInX {
    0% {
    transform: perspective(400px) rotateX(90deg);
    opacity: 0;
}

40% {
    transform: perspective(400px) rotateX(-10deg);
}

70% {
    transform: perspective(400px) rotateX(10deg);
}

100% {
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
}
}

.flipInX {
    -webkit-backface-visibility: visible !important;
    -webkit-animation-name: flipInX;
    -moz-backface-visibility: visible !important;
    -moz-animation-name: flipInX;
    -o-backface-visibility: visible !important;
    -o-animation-name: flipInX;
    backface-visibility: visible !important;
    animation-name: flipInX;
}

#justified-gallery li a .view .mask p{
    opacity: 0;
}

.jux-album-button-filter{
   /* border-top: 1px solid #e7e6e6;
    border-bottom: 1px solid #e7e6e6;*/
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
/*#justified-gallery li a .view .mask{
    opacity: 0;
}*/

/*.jg-rows .jg-row p{
    opacity: 1;
}*/