/* Reset CSS */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html,
body {
	background: linear-gradient(90deg, #9c2c00, #7a0000);
	padding: 15px;
}

h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #fff;
    padding-bottom: 2%;
}
h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #fff;
    padding-bottom: 2%;
}

img {
	max-width: 100%;
	height: auto;
	/* vertical-align: middle;
	display: inline-block; */
    pointer-events:none;
}

.grid-image {
	border-radius: 10px;
}

/* Main CSS */
.grid-wrapper > div {
	display: flex;
	justify-content: center;
	align-items: center;
}

a {
	width: 100%;
	height: 100%;
	vertical-align: middle;
	display: inline-block;
}

.grid-wrapper > div > a > img{
	width: 100%;
	height: 100%;
	object-fit:cover;
}

@media only screen and (min-width: 800px){
	.grid-wrapper {
		display: grid;
		grid-gap: 10px;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		grid-auto-rows: 200px;
		grid-auto-flow: dense;
	}
	.grid-wrapper .wide {
		grid-column: span 2;
	}
	.grid-wrapper .tall {
		grid-row: span 2;
	}
	.grid-wrapper .big {
		grid-column: span 2;
		grid-row: span 2;
	}
}

@media only screen and (max-width: 799px) and (orientation: portrait){
	.grid-wrapper {
		display: grid;
		grid-gap: 10px;
		/* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
		grid-auto-rows: 200px;
		grid-auto-flow: dense;
	}
}

.lightbox {
	/* Default to hidden */
	display: none;

	/* Overlay entire screen */
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	/* Translucent background */
	background: rgba(0, 0, 0, 0.8);	
}

.lightbox:target {
	display: flex;
	justify-content: center;
	align-items: center;
}

.lightbox span {
	/* Full width and height */
	display: block;
	width: 100%;
	max-height: 100%;

	/* Size and position background image */
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;

	position: relative;
	
}

.lightbox span > img {
	padding: 2em;
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: auto;
	height: auto;
	max-height: 100vh;
	max-width: auto;
}

.overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: center;
	font-size: medium;
	font-family:Arial, Helvetica, sans-serif;
	color: rgba(255, 255, 255, 0.75);
	margin-left: auto;
	margin-right: auto;
	background: rgba(10, 10, 10, 0.5);
	width: 100%;
	padding: .5rem;
	padding-bottom: 2.5em;

}
