/* Preload images */
body:after {
  content: url(close.png) url(loading.gif) url(prev.png) url(next.png);
  display: none;
}

body.lb-disable-scrolling {
  overflow: hidden;
}

.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #fff;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=97);
  opacity: 0.97;
  display: none;
}

.lightbox {
  position: absolute;
  left: 0;
   width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
}

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  border-radius: 5px; /*border-radius dell'immagine*/
    
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  background-color:#FFF; /*qua coloro il bordo dell'immagine*/
  *zoom: 1;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 7px; /*border-radius del contenitore*/
  border:1px solid #9f9f9f;  /*modificato*/
  box-sizing: content-box; /*modificato*/
box-shadow:  0px 0px 10px 0px rgba(50, 50, 50, 0.55); /*modificato*/
    
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-container {
  padding: 0px; /*qua gestisci il contorno bianco dell'immagine*/
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.lb-cancel {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 auto;
	background-image: url(loading.gif);
	background-repeat: no-repeat;
}

.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%; 
  z-index: 10;
    
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  width: 34%;
  left: 0;
  float: left;
  background: url(prev.png) left 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
  opacity: 0.6;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-prev:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-nav a.lb-next {
  width: 64%;
  right: 0px;
  float: right;
  background: url(next.png) right 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
  opacity: 0.6;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-next:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-dataContainer {
  margin: 0 auto;
  padding-top: 5px;
  *zoom: 1;
  width: 100%;
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-bottom-left-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
    
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  padding: 0 4px;
  color: #ccc;
}

/*LEGENDE DELLE IMMAGINI*/
.lb-data .lb-details {
  width: 100%;
  float:inherit;
  text-align: center;
  line-height: 3.5em;/*distanza di "immagine 1 di.."*/
   font-family: abel, arial, helvetica, sans-serif;
   color:#3b3b3b;
    margin-top: 10px;/*distanza dall'immagine*/
}

/*LEGENDE DELLE IMMAGINI*/
.lb-data .lb-caption {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5em; /*distanza dall'immagine*/
}

/*NUMERI SOTTO (1 DI 5)*/
.lb-data .lb-number {
  display: block;
  clear: left;
 margin-top:-1.3em; /*distanza dal titolo*/
  padding-bottom: 1em;
   margin-bottom:-3.7em; /*per distanziare croce "close"*/ 
  font-size: 12px;
  color: #3b3b3b;
  font-family: abel, arial, helvetica, sans-serif;
}

.lb-data .lb-close {
  display: block;
  float: right;
  width: 30px;
  height: 30px;
  background: url(close.png) top right no-repeat;
  text-align: right;
  outline: none;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
  opacity: 0.7;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.lb-data .lb-close:hover {
  cursor: pointer;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}



/*MEDIA QUERY*/

	/*Notebook*/

 @media only screen and (min-width: 1024px) and (max-width: 1230px) {
     
.lb-nav {
  left: -13%; /*per spostare le frecce fuori dall'immagine*/
  width: 126%; /*per spostare le frecce fuori dall'immagine*/
}
     
}

	/*Desktop*/

 @media only screen and (min-width: 1230px) and (max-width: 1920px) {
     
 .lb-nav {
  left: -13%; /*per spostare le frecce fuori dall'immagine*/
  width: 126%; /*per spostare le frecce fuori dall'immagine*/
}
     
}



