/* Styles the lightbox, removes it from sight and adds the fade-in transition */
.gallery-break {
    margin: 30px 0;
    padding: 30px 0;
}
.lightbox-css,
.thumbnailbox {
    /*float: left;*/
	-moz-transition: all 0.1s ease-out;
    -o-transition: all 0.1s ease-out;
    -webkit-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
}
.lightbox-css:hover,
.thumbnailbox:hover {
    box-shadow: 8px 8px 15px rgba(0,0, 0, 0.4);
}
.lightbox-css.animation-zoom,
.thumbnailbox.animation-zoom {
	overflow: hidden;
}
.lightbox-css.animation-zoom:hover,
.thumbnailbox.animation-zoom:hover {
    -webkit-transform: rotate(0deg) scale(1.2);
    -o-transform: rotate(0deg) scale(1.2);
    -moz-transform: rotate(0deg) scale(1.2);
    -ms-transform: rotate(0deg) scale(1.2);
    transform: rotate(0deg) scale(1.2);
}
.lightbox-css.animation-polaroid,
.thumbnailbox.animation-polaroid {
    position: relative;
	/*display: inline-block;*/
    z-index: 0;
    margin: 30px 0;
}
.lightbox-css.animation-polaroid,
.thumbnailbox.animation-polaroid {
    -webkit-transform: rotate(-3deg);
    -moz-transform: rotate(-3deg);
    -ms-transform: rotate(-3deg);
    -o-transform: rotate(-3deg);
    transform: rotate(-3deg);
    -moz-transition: all 0.1s ease-out;
    -o-transition: all 0.1s ease-out;
    -webkit-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
}
.lightbox-css.animation-polaroid:nth-of-type(2n),
.thumbnailbox.animation-polaroid:nth-of-type(2n) {
    -webkit-transform: rotate(3deg) scale(1.05);
    -moz-transform: rotate(3deg) scale(1.05);
    -ms-transform: rotate(3deg) scale(1.05);
    -o-transform: rotate(3deg) scale(1.05);
    transform: rotate(3deg) scale(1.05);
}
.lightbox-css.animation-polaroid:hover,
.thumbnailbox.animation-polaroid:hover {
    position: relative;
	z-index: 10;
	-webkit-transform: rotate(0deg) scale(1.2);
    -o-transform: rotate(0deg) scale(1.2);
    -moz-transform: rotate(0deg) scale(1.2);
    -ms-transform: rotate(0deg) scale(1.2);
    transform: rotate(0deg) scale(1.2);
}
.lightbox-css .lightbox,
.thumbnailbox.animation-polaroid .thumbnail
/*[class*="thumbnail"][class*="animation"]*/ {
    background: none;
	display: block;
	margin-bottom: -4px;
}
.lightbox-css.animation-polaroid .lightbox,
.thumbnailbox.animation-polaroid .thumbnail {
    position: relative;
    display: inline-block;
    padding: 10px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	text-decoration: none;
}
.lightbox-css.animation-polaroid .lightbox::before,
.lightbox-css.animation-polaroid .lightbox::after,
.thumbnailbox.animation-polaroid .thumbnail::before,
.thumbnailbox.animation-polaroid .thumbnail::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 8px;
    left: 10px;
    width: 50%;
    height: 20%;
    max-width: 300px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    -webkit-transform: skew(-15deg) rotate(-6deg);
    -moz-transform: skew(-15deg) rotate(-6deg);
    -ms-transform: skew(-15deg) rotate(-6deg);
    -o-transform: skew(-15deg) rotate(-6deg);
    transform: skew(-15deg) rotate(-6deg);
}
.lightbox-css.animation-polaroid .lightbox::after,
.thumbnailbox.animation-polaroid .thumbnail::after {
    left: auto;
    right: 10px;
    -webkit-transform: skew(15deg) rotate(6deg);
    -moz-transform: skew(15deg) rotate(6deg);
    -ms-transform: skew(15deg) rotate(6deg);
    -o-transform: skew(15deg) rotate(6deg);
    transform: skew(15deg) rotate(6deg);
}
.lightbox-css.animation-polaroid .lightbox .polaroid-title,
.thumbnailbox.animation-polaroid .thumbnail .polaroid-title
/*[class*="thumbnail"][class*="animation"] [class*="polaroid-title"]*/ {
    display: block;
    margin: 0;
    padding-top: 10px;
    text-align: center;
    color: #444;
    -webkit-transform-style: preserve-3d;
}
.lightbox-css.animation-default .lightbox .default-title,
.thumbnailbox.animation-default .thumbnail .default-title {
    position: absolute;
	filter: alpha(opacity=0);
	opacity: 0;
    top: 0px;
    left: 0px;
	width: 100%;
	height: 100%;
	color: #fff;
	text-align: center;
	padding-top: 20px;
	background: rgba(0,0,0,0.5);
	transition: opacity 0.5s ease-in-out;
}
.lightbox-css.animation-default,
.thumbnailbox.animation-default {
	position: relative;
	overflow: hidden;
}

.lightbox-css.animation-default .lightbox .default-title::after,
.thumbnailbox.animation-default .thumbnail .default-title::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/zoom-in.png');
	background-repeat: no-repeat;
background-position: 50%;
background-size: 60px auto;
}

.lightbox-css.animation-default:hover .lightbox .default-title,
.thumbnailbox.animation-default:hover .thumbnail .default-title {
    filter: alpha(opacity=100);
	opacity: 1;
}
.lightbox-target {
	position: fixed;
	background: rgba(0,0,0,.7);
	opacity: 0;
	-webkit-transition: opacity .5s ease-in-out;
	-moz-transition: opacity .5s ease-in-out;
	-o-transition: opacity .5s ease-in-out;
	transition: opacity .5s ease-in-out;
	overflow: hidden;
	z-index: 99999;
}

/* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */

.lightbox-target img {
	margin: auto;
	position: absolute;
	top: 0;
	left:0;
	right:0;
	bottom: 0;
	max-height: 0%;
	max-width: 0%;
	border: 3px solid white;
	box-shadow: 0px 0px 8px rgba(0,0,0,.3);
	box-sizing: border-box;
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
}

/* Styles the close link, adds the slide down transition */

a.lightbox-close {
	display: block;
	width:40px;
	height:40px;
	box-sizing: border-box;
	background: white;
	color: black;
	text-decoration: none;
	position: absolute;
	top: -80px;
	right: 8%;
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:before {
	content: "";
	display: block;
	height: 30px;
	width: 1px;
	background: black;
	position: absolute;
	left: 20px;
	top:6px;
	-webkit-transform:rotate(45deg);
	-moz-transform:rotate(45deg);
	-o-transform:rotate(45deg);
	transform:rotate(45deg);
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:after {
	content: "";
	display: block;
	height: 30px;
	width: 1px;
	background: black;
	position: absolute;
	left: 20px;
	top:6px;
	-webkit-transform:rotate(-45deg);
	-moz-transform:rotate(-45deg);
	-o-transform:rotate(-45deg);
	transform:rotate(-45deg);
}

.lightbox-title {
    width: 100%;
    position: absolute;
    padding: 10px;
    line-height: 50px;
    color: #fff;
    text-align: center;
    background: rgba(0,0,0,.5);
    font-size: 20px;
    bottom: -80px;
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: 1s ease-in-out;
}
.lightbox-target:target .lightbox-title {
    bottom: 0;
}

/* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */

.lightbox-target:target {
	opacity: 1;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

.lightbox-target:target img {
	max-height: 100%;
	max-width: 100%;
}

.lightbox-target:target a.lightbox-close {
	top: 4px;
}

/*Next*/
a.nextLight {
	display: table;
	box-sizing: border-box;
	background: transparent;
	text-decoration: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 8%;
	-webkit-transition: .35s ease-in-out;
	-moz-transition: .35s ease-in-out;
	-o-transition: .35s ease-in-out;
	transition: .35s ease-in-out;
}

a.nextLight::before{
	content: "";
	display: table-cell;
	opacity: 0.4;
	border-bottom: 20px solid transparent;
	border-top: 20px solid transparent;
	border-left: 20px solid #eaeaea;
}
a.nextLight:hover::before{
	opacity: 1;
	border-left-width: 24px;
	border-left-color: #fff;
}

/*Previous*/
a.prevLight {
	display: table;
	box-sizing: border-box;
	background: transparent;
	text-decoration: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 8%;
	-webkit-transition: .35s ease-in-out;
	-moz-transition: .35s ease-in-out;
	-o-transition: .35s ease-in-out;
	transition: .35s ease-in-out;
}

a.prevLight:before{
	content: "";
	display: table-cell;
	opacity: 0.4;
	border-bottom: 20px solid transparent;
	border-top: 20px solid transparent;
	border-right: 20px solid #eaeaea;
}
a.prevLight:hover::before{
	opacity: 1;
	border-right-width: 24px;
	border-right-color: #fff;
}