#lightbox {
    position:fixed;
    top:0;
    left:0;
	right:0;
	bottom:0;
    /*background-color: rgba(0,0,0,0.9);*/
    text-align:center;
	z-index:99999999;
}

#lightbox #lb_header {
	position: absolute;
	top:0px;
	width: 100%;
	height: 2em;
	padding: 10px 0 10px 0;
}

#lightbox #lb_content {
	position: absolute;
	width: 100%;
	top: 2em;
	bottom: 2em;
	background-position: center center;
    background-repeat: no-repeat;
	background-image: url();
	transition: background-image 1s linear;
}

#lightbox #lb_status {
	position: absolute;
	width: 100%;
	height: 1em;
	bottom: 0px;
	font-family: "century gothic";
	font-size: 2em;
	/*color: #ffffff;*/
	line-height: 2;
}

#lightbox #lb_content #lb_imgcont {
	position: absolute;
    top:0;
    left:0;
	right:0;
	bottom:0;
	padding:0;
	background-position: center center;
    background-repeat: no-repeat;
	background-origin: content-box; /*border-box  padding-box */
	/*background-clip: content-box;*/
	background-size: contain; /*contain auto cover*/
	transition: all 0.5s ease-in-out;
	cursor: -webkit-grab;
}

#lightbox #lb_content #lb_imgcont:active {
	cursor: -webkit-grabbing;
}
#lightbox #lb_content .lb_framelocal { /*iframe*/
	position: absolute;
	left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
}

#lightbox #lb_content .lb_framecross { /*iframe*/
	position: absolute;
	left: 10%;
    width: 80%;
	height: 100%;
}


/* ---------------------------------------------- */
#lightbox button{
	opacity: 0.7;
	cursor: pointer;	
	transition: all 0.2s linear;	
}
#lightbox button:hover {
	opacity: 1.0;
    /*color:#fff;*/
}

#lightbox #lb_header button{
    text-align:center;
    /*color:#eee;*/
    margin:5px 8px;
	float: right;
}

#lightbox #lb_caption {
    text-align:center;
    /*color:#eee;*/
	font-size:10px;
	font-family: "century gothic";
}

#lightbox #lb_cnt {
	float: left;
    text-align:left;
    /*color:#eee;*/
	font-size:1em;
	font-family: "century gothic";
	padding-left: 10px;
}

#lightbox .lb_arrow {
    text-align:center;
    /*color:#eee;*/
    margin:1%;/*5px*/
	position: absolute;
	cursor: pointer;
    top: 50%;
    transform: translateY(-50%);	
}
#lightbox .lb_arrow i {font-size:4em;}
/*
#lightbox .lb_arrow:hover {
	color:#fff;
}
*/
#lightbox #lb_next {
	right: 2%; /*20px*/
}
#lightbox #lb_prev {
	left: 2%;
}

#lightbox #lb_header button{
font-size:18px;
}

@media screen and (max-device-width: 767px) {
.maxscr #lb_cnt {font-size:25px!important;}
.maxscr button {font-size:1.5em!important; margin:5px 8px!important;}
.maxscr .lb_arrow i {font-size:30px!important;}
.maxscr #lb_content {top: 0px!important;bottom:0px!important;}
	
#lightbox #lb_header button {font-size:4em; margin:10px 30px;}
/*#lightbox #lb_content {top:3em;bottom:3em;}*/
#lightbox #lb_status {height:1.5em;}
#lightbox #lb_cnt {font-size:4em;}
#lightbox .lb_arrow i {font-size:100px;}
}

/* loading anim */
/*
#lightbox #lb_content.loading {
	background-image:url(/scripts/images/loading.gif);
}
*/
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  top: 50%;
}
.lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}
