* {
	box-sizing: border-box
}

html {
	font-size: 100%
}

body {
	font-family: "Open Sans", Helvetica;
	background: linear-gradient(rgba(20, 26, 35, .55), rgba(20, 26, 35, .55)), url(https://toddbongo.de/img/minecraft.jpg) no-repeat center center fixed
}

figcaption {
	padding-top: 3px;
	color: #fff
}

/* Grid gallery options
	Start*/
.gallery-grid {
	display: -ms-grid;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-gap: 1.5rem;
	justify-items: center;
	margin: 0;
	padding: 1rem
}

.gallery-frame {
	padding: .5rem;
	font-size: 1.2rem;
	text-align: center;
	background-color: rgba(51, 51, 51, .7);
	color: #d9d9d9;
	margin: auto
}

.gallery-img {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	transition: opacity .25s ease-in-out
}

.gallery-img:hover {
	opacity: 1;
	cursor: pointer
}
/* Grid gallery options
	End*/

/* Full size gallery options
	Start*/
div.cssbox {
	display: inline-block
}

span.cssbox_full {
	z-index: 999999;
	position: fixed;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, .8);
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
	cursor: default;
	transition: opacity .5s linear
}

span.cssbox_full img {
	position: fixed;
	background-color: #fff;
	margin: 0;
	padding: 0;
	max-height: 90%;
	max-width: 90%;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 20px #000
}

a.cssbox_close,
a.cssbox_next,
a.cssbox_prev {
	z-index: 999999;
	position: fixed;
	text-decoration: none;
	visibility: hidden;
	color: #fff;
	font-size: 36px
}

a.cssbox_close {
	top: 1%;
	right: 1%
}

a.cssbox_close::after {
	content: '\00d7'
}

a.cssbox_next,
a.cssbox_prev {
	top: 50%;
	transform: translate(0, -50%)
}

a.cssbox_prev {
	left: 5%
}

a.cssbox_next {
	right: 5%
}

a:target~a.cssbox_close,
a:target~a.cssbox_next,
a:target~a.cssbox_prev {
	visibility: visible
}

a:target>img.gallery-img+span.cssbox_full {
	visibility: visible;
	opacity: 1;
	pointer-events: initial
}

/* Full size gallery options
	End*/
