/* version 1.0 */

.justified-image-grid {
    max-width: none !important;
    padding: 0;
    clear: both;
    line-height: normal;
    display: block !important;
}

.jig-hiddenGallery {
    display: none !important;
}

.justified-image-grid .jig-imageContainer img,
.justified-image-grid .jig-pixastic {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
    border-style: none !important;
    vertical-align: baseline;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    box-shadow: none !important;
    z-index: auto !important;
    visibility: visible !important;
    margin-bottom: 0 !important;
}

.justified-image-grid .jig-imageContainer a {
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    display: inline;
}

.jig-overflow {
    opacity: 0;
    transition: opacity 0.3s;
}

.justified-image-grid div {
    position: static;
}

.justified-image-grid a:link,
.justified-image-grid a:hover,
.justified-image-grid a:visited {
    text-decoration: none;
}

.justified-image-grid .jig-removeThis {
    visibility: hidden;
}

.justified-image-grid .jig-hiddenLink,
.justified-image-grid .jig-hiddenImg {
    display: none !important;
}

.jig-last:after {
    clear: both;
}

.justified-image-grid .tiled-gallery-caption {
    display: none !important;
}

.jig-developerLink {
    line-height: 10px;
    margin-bottom: 5px;
}

.jig-developerLink a {
    font-size: 9px;
}

.jig-fontCheck {
    display: block !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    visibility: hidden !important;
    font-size: 100px !important;
    white-space: nowrap !important;
    max-width: none !important;
    width: auto !important;
}

.justified-image-grid-html li {
    float: left;
    position: relative;
    list-style: none;
    overflow: hidden;
}

.justified-image-grid-html .jig-HTMLdescription {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    margin: 0;
    padding: 5px;
}

.justified-image-grid > p,
.justified-image-grid > li {
    display: none;
}

noscript.justified-image-grid-html p {
    display: block;
}

noscript.justified-image-grid-html li {
    display: list-item;
}

.justified-image-grid-html li.jig-clearfix:before,
.jig-clearfix:after,
.justified-image-grid-html:before,
.justified-image-grid-html:after {
    content: "";
    display: table;
}

.jig-clearfix:after,
.justified-image-grid-html:after {
    clear: both;
}

.jig-clearfix,
.justified-image-grid-html {
    -webkit-backface-visibility: visible;
    transform: none;
    zoom: 1;
    /* For IE 6/7 (trigger hasLayout) */
}

#jig1 {
    margin: 0;
    min-height: 0px;
}

#jig1 .jig-imageContainer {
    margin-bottom: 4px;
    margin-right: 4px;
    float: left;
    padding: 0;
    width: auto;
}

#jig1 .jig-imageContainer img {
    max-width: none !important;
    background-color: white !important;
    /* Evita stiramenti: slot calcolato da JIG, pixel dell'immagine possono avere altro aspect (timthumb/riga) */
    object-fit: contain;
    object-position: left bottom;
}

#jig1 .jig-imageContainer .jig-caption-wrapper img {
    position: static;
    background: transparent !important;
}

#jig1 .jig-overflow {
    position: relative;
    overflow: hidden;
    vertical-align: baseline;
}

#jig1 .jig-overlay {
    background: #000;
    opacity: 0.2;
    -moz-opacity: 0.2;
    filter: alpha(opacity=20);
    height: 100%;
}

#jig1 .jig-overlay-wrapper {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

#jig1 .jig-loadMoreButton {
    border: 1px solid #d3d3d3;
    padding: 10px;
    text-align: center;
    margin: 5px auto 15px;
    max-width: 175px;
    cursor: pointer;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.08);
    background: #fcfcfc;
    background: -moz-linear-gradient(top, #fcfcfc 0%, #f8f8f8 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fcfcfc), color-stop(100%, #f8f8f8));
    background: -webkit-linear-gradient(top, #fcfcfc 0%, #f8f8f8 100%);
    background: -o-linear-gradient(top, #fcfcfc 0%, #f8f8f8 100%);
    background: -ms-linear-gradient(top, #fcfcfc 0%, #f8f8f8 100%);
    background: linear-gradient(to bottom, #fcfcfc 0%, #f8f8f8 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#f8f8f8', GradientType=0);
}

#jig1.jig-no-touch .jig-loadMoreButton:hover,
#jig1.jig-touch .jig-loadMoreButton:active {
    border: 1px solid #c6c6c6;
    background: #f8f8f8;
    background: -moz-linear-gradient(top, #f8f8f8 0%, #eeeeee 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f8f8f8), color-stop(100%, #eeeeee));
    background: -webkit-linear-gradient(top, #f8f8f8 0%, #eeeeee 100%);
    background: -o-linear-gradient(top, #f8f8f8 0%, #eeeeee 100%);
    background: -ms-linear-gradient(top, #f8f8f8 0%, #eeeeee 100%);
    background: linear-gradient(to bottom, #f8f8f8 0%, #eeeeee 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#f8f8f8', endColorstr='#eeeeee', GradientType=0);
}

#jig1 .jig-clearfix:after {
    clear: both;
}

.jig-last {
    margin-right: 0 !important;
}

.jig-ua-old-ie.justified-image-grid .jig-overlay,
.jig-ua-old-ie.justified-image-grid .jig-overlay-icon-wrapper,
.jig-ua-old-ie.justified-image-grid .jig-overlay-icon {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.jig-ua-old-ie.justified-image-grid .jig-overflow,
.jig-ua-old-ie.justified-image-grid .jig-overflow div {
    cursor: pointer;
}

.jig-ua-old-ie.jig-caption-wrapper {
    margin: 0 !important;
}

.jig-ua-ie .jig-caption-wrapper-clone {
    filter: alpha(opacity=0) !important;
}
