/* 
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*/

.justifiedGallery-active .jg-image {
    opacity: 0.5;
    filter:alpha(opacity=50);
}
.justifiedGallery {
    width: 100%;
    margin-bottom: 10px;
}
.justifiedGallery .jg-image {
    position: absolute;
    display: inline-block;
    vertical-align: top;
    margin-left: 0;
    -webkit-transition: opacity .3s linear;
    -moz-transition:    opacity .3s linear;
    -ie-transition:     opacity .3s linear;
    -o-transition:      opacity .3s linear;
    transition:         opacity .3s linear;
    overflow: hidden;
}
.justifiedGallery .jg-image-active {
    opacity: 1;
    filter:alpha(opacity=100);
}
.justifiedGallery .jg-image-link {
    display: block;
}
.justifiedGallery .jg-image-selected {
    color: #fff;
    content : '\e207';
    font: 12px/1em 'Glyphicons Regular';
    width: 24px;
    height: 24px;
    line-height: 24px;
    background: #00adef;
    text-align: center;
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}
.justifiedGallery .jg-image-active .jg-image-selected {
    display: block;
}
.justifiedGallery .jg-image img {
    border: none;
    display: none;
    /*max-height: 100%;*/
}
.justifiedGallery .jg-image > a {
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}
.justifiedGallery .jg-image-content {
    white-space: normal;
    background: #000;
    color: #ccc;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    text-align: left;
    z-index: 100;
    -webkit-transition: opacity .3s linear;
    -moz-transition:    opacity .3s linear;
    -ie-transition:     opacity .3s linear;
    -o-transition:      opacity .3s linear;
    transition:         opacity .3s linear;
    opacity: 0;
    zoom: 1;
    filter:alpha(opacity=0);
}

.justifiedGallery a {
    color: #f5f5f5;
}
.justifiedGallery .jg-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    background: #00adef;
    padding: 0 6px 4px;
    zoom: 1;
    opacity: 0;
    filter:alpha(opacity=0);
    -webkit-transition:     opacity .3s linear;
    -moz-transition:        opacity .3s linear;
    -ie-transition:         opacity .3s linear;
    -o-transition:          opacity .3s linear;
    transition:             opacity .3s linear;
}
.justifiedGallery .jg-hover .jg-image-content {
    opacity: 1;
    filter:alpha(opacity=100);
}
.justifiedGallery .jg-hover .jg-label {
    opacity: 1;
    filter:alpha(opacity=100);
}
.justifiedGallery .jg-image-content p {
    margin: 0;
    line-height: 16px;
}
.justifiedGallery .jg-image-scroll {
    overflow: auto;
}
.justifiedGallery .jg-loading-img{
    margin: auto;
    width: 50px;
    height: 50px;
background:url(/images/default/icons/loading.gif) no-repeat center center;
}
.justifiedGallery .jg-loading{
    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;    
    margin-bottom: 4px;
}