/* Gallery */

.just-in-case-gallery{
	overflow: hidden;
	display: block;
	width: 100%;
	margin-bottom: 1.5em;
	}

.jicg-lbx {
    position: fixed;
    left: 0px;
    top: 0px;
    padding: 0px; 
    margin: 0px;
    display: none;
	width: 100%;
	height: 100%;
/*    width: 90%;
    padding: 5%;
/*  opacity: .5;*/
    background-color: rgba(0,0,0,0.8);
/*    height: 90%;*/
}

.jicg-main .lPicA {
    position: absolute;
    z-index: 7;
}
.jicg-main .lPicB {
    position: absolute;
    right:0px;
    top: 100px;
    width: 50px;
    z-index: 9;
}
.jicg-main .lPicC {
    position: fixed;
    left: 1200px;
    top: 20px;
    visibility: hidden;
}
.jicg-main .lPicCVis {
    position: absolute;
    z-index: 5;
    /*visibility: hidden;*/
}

.jicg-main .lPicD {
    position: absolute;
    visibility: hidden;
    top: 0px;
    left: 0px;
}
.jicg-main .lPicE {
    position: fixed;
    left: -1200px;
    top: 20px;
    visibility: hidden;
}
.jicg-main .lPicEVis {
    position: absolute;
    z-index: 5;
}

.jicg-main .jicg-icon-close {
    position: fixed;
    top: 5px;
    right: 5px;
    width: 40px;
    z-index: 35;
}
.jicg-main .icon-right,.jicg-main  .icon-left {
    position: fixed;
    z-index: 29;
}
.jicg-main .clickAreaRight {
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 33%;
    height: 100%;
    z-index: 30;
}

.jicg-main .clickAreaLeft {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 33%;
    height: 100%;
    z-index: 30;
}

.jicg-main .linkToPicPage {
	position: fixed;
	bottom: 10px;
	right: 10px;
	z-index: 50;
	text-align: right;
	font-weight: bold;
}
.jicg-main .fblink {
	position: fixed;
	top: 0px;
	right: 50px;
	z-index: 50;
	text-align: right;
}

/* Main Display Area */

.jicg-main img {
/*    height: 80%;*/
}
.jicg-main{	
	width: 100%;
	height: 100%;
 	}

/* Thumbnails */

.jicg-thumbs {
	overflow: hidden;
	margin: 0;
	}
 
.jicg-thumbs li, .entry-content .jicg-thumbs li {		
	margin: 0px;
	margin-bottom: 2px;
	padding: 0px;
	float: left;
	display: block; 
	cursor: pointer;
	line-height: 0px;
	}

.jicg-thumbs img{
	padding: 1px;
	border: 1px solid .ddd;
	}

.jicg-thumbs li img:hover,
.jicg-thumbs li img.selected{ 
	border: 1px solid .aaa !important;
	}