#lightboxbg, #lightboxbg > * {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}
#lightboxbg, .wppa-lb {
	display: none;
}
#lightboxbg, .wppa-lb {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
#lightboxbg {
	z-index: 100000;
	background-color: rgba(0,0,0,0.85);
}
.wppa-lb:target, .wppa-lb-active {
	display: block;
	z-index: 100001;
}
.wppa-lb-contentwrapper {
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-direction: row;
	        flex-direction: row;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	-ms-flex-line-pack: stretch;
	    align-content: stretch;
			-webkit-box-align: center;
		-ms-flex-align: center;
				align-items: center;
}
.wppa-lb-content {
	width: 100%;
	height: auto;
	max-height: calc(100% - 88px);
	overflow-y: auto;
	background-color: white;
	text-align: center;
}
@media only screen and (min-width: 768px) {
	.wppa-lb-content {
		width: 90%;
	}
}
.wppa-lb-topbar,
.wppa-lb-caption {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 44px;
	background-color: rgba(0,0,0,0.3);
	color: #cccccc;
	text-align: center;
}
.wppa-lb-topbar a,
.wppa-lb-caption a {
	-webkit-transition: color 0.4s ease;
	transition: color 0.4s ease;
	color: #cccccc;
}
.wppa-lb-topbar a:hover,
.wppa-lb-caption a:hover {
	color: #ffffff;
}
.wppa-lb-counter, .wppa-lb-title {
	float: left;
	height: 44px;
	line-height: 44px;
	padding: 0 10px;
	font-size: 90%;
}
.wppa-lb-title {
	float: none;
	display: inline-block;
}
.wppa-lb-close-x {
	width: 44px;
	height: 44px;
	float: right;
	text-decoration: none;
}
.wppa-lb-close-x::after {
	content: "×";
	font-family: helvetica;
	font-weight: 100;
	font-size: 28px;
}
.wppa-lb-prev-next a {
	cursor: pointer;
	position: fixed;
	top: 50%;
	-webkit-transform: translate(0, -50%) rotate(-135deg);
	transform: translate(0, -50%) rotate(-135deg);
	width: 60px;
	height: 60px;
	padding: 15px;
	margin: 0;
	left: 15px;
}
.wppa-lb-prev-next a.wppa-lb-next,
.wppa-lb-prev-next a.wppa-lb-gallery-next {
	-webkit-transform: translate(0, -50%) rotate(45deg);
	transform: translate(0, -50%) rotate(45deg);
	left: auto;
	right: 15px;
}
.wppa-lb-prev-next a::before,
.wppa-lb-prev-next a::after {
	position: absolute;
	content: "";
	display: block;
	width: 30px;
	height: 30px;
	-webkit-transition: border-color 0.4s ease;
	transition: border-color 0.4s ease;
	border-color: rgba(0, 0, 0, 0.3);
	border-style: solid;
	border-width: 0;
	border-right-width: 3px;
	border-top-width: 3px;
}
.wppa-lb-prev-next a::after {
	-webkit-transition: border-color 0.4s ease;
	transition: border-color 0.4s ease;
	border-color: #cccccc;
	border-right-width: 2px;
	border-top-width: 2px;
}
.wppa-lb-prev-next a:hover::after {
	border-color: #ffffff;
}
.wppa-lb-caption {
	top: auto;
	bottom: 0;
	padding: 10px;
	font-size: 90%;
}

/* Lightbox gallery images */
.wppa-lb-contentwrapper.zoomedin {
	overflow: scroll;
}
.wppa-lb-contentwrapper.zoomedout .lb-gallery-img {
	cursor: -webkit-zoom-in;
	cursor: zoom-in;
}
.wppa-lb-contentwrapper.zoomedin .lb-gallery-img {
	cursor: -webkit-zoom-out;
	cursor: zoom-out;
}
.wppa-lb-content.lb-gallery-img {
	width: auto;
	margin: 0 auto;
}
.zoomedin .lb-gallery-img {
	-webkit-box-flex: 1;
	    -ms-flex: 1 0 auto;
	        flex: 1 0 auto;
	max-width: none;
	max-height: none;
}
