
#images-box {
	/* The total width of the image-box, mainly for centering */
    width: 100%;
    text-align: center;
	margin: 0px auto;
}

.image-lightbox img {
	/* Inherit the width and height from the parent element */
	width: inherit;
	height: inherit;
	z-index: 3000;
}

.holder {
	/* The width and height, you can change these */
}

.image-lightbox {
	display: inline-block;
	margin: 0;
	padding: 15px;
	padding-bottom: 40px;
	/* Box shadow */
	box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
	background: #fff;
	border-radius: 5px;
	/* Position absolutely so we can zoom it out later */
	z-index: 200;
}

.image-lightbox.thumbnail {
    height: 166px;
    margin: 20px 20px 0 0;
}

.image-lightbox.thumbnail:hover {
    box-shadow: 0px 0px 10px rgba(0,0,0,0.7);
}

.image-lightbox.thumbnail img:hover {
    opacity: 0.7;
}

.image-lightbox .expand {
	width: inherit;
	height: inherit;
	z-index: 4000;
	background: rgba(0,0,0,0); /* Fixes an IE bug */
}

.image-fullscreen {
    display: none;
    margin: 0 auto;
    text-align: center;
    background-color: black;
    padding: 10px 0px;

    position: absolute;
    top: 0px;
    left: 0px;
    background: black;
}

.image-lightbox.fullscreen {
    position: relative;
    padding: 30px;
    padding-bottom: 80px;
}


@media only screen and (min-aspect-ratio: 4/3) {
    .image-lightbox.fullscreen.landscape img {
	width: auto;
	height: 100%
    }

    .image-lightbox.fullscreen.landscape {
	height: calc(100% - 110px);
	width: auto;
    }
}

@media only screen and (max-aspect-ratio: 4/3) {
    .image-lightbox.fullscreen.landscape img {
	width: calc(100% - 60px);
	height: auto%
    }

    .image-lightbox.fullscreen {
	height: auto;
	width: calc(100% - 320px);
    }
}


@media only screen and (min-aspect-ratio: 3/4) {
    .image-lightbox.fullscreen.portrait img {
	width: auto;
	height: 100%
    }

    .image-lightbox.fullscreen.portrait {
	height: calc(100% - 110px);
	width: auto;
    }
}

@media only screen and (max-aspect-ratio: 3/4) {
    .image-lightbox.fullscreen.portrait img {
	width: calc(100% - 60px);
	height: auto%
    }

    .image-lightbox.fullscreen {
	height: auto;
	width: calc(100% - 320px);
    }
}


.image-lightbox.fullscreen figcaption {
    margin: 0px auto;
    position: absolute;
    padding: 5px;
    bottom: 10px; left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, .6);
}

.image-lightbox span {
	display: none;
}


div[id^=image]:target {
    width: 100%;
    height: calc(100% - 20px);
    display: block;
    z-index: 5000;
}

div[id^=image]:target .close {
	display: block;
}


.image-fullscreen .close {
	position: absolute;
	width: 80px; height: 80px;
	margin-top: 10px;
	right: 0px; top: 0px;
}


.prev-button {
    position: absolute;
    width: 80px;
    top: 50%;
    left: 0;
}

.prev-button-image, .next-button-image, .close-button-image {
    transition: opacity 0.25s, margin 0.25s;
    opacity: 0.6;
}

.prev-button-image, .next-button-image {
    height:40px;
    width:auto;
}

.close-button-image {
    height:30px;
    width:auto;
}

.prev-button-image:hover {
    margin-right: 6px;
    opacity: 1.0;
}

.next-button-image:hover {
    margin-left: 6px;
    opacity: 1.0;
}

.close-button-image:hover {
    opacity: 1.0;
}



.next-button {
    position: absolute;
    width: 80px;
    height: 120px;
    display: block;
    top: 50%;
    right: 0;
}
