*, ::after, ::before {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

a {
	text-decoration: none;
	color: black;
}

ul {
	height: 100%;
	list-style: none;
	font-size: 1.8em;
	font-weight: lighter;
}

@media (max-width: 2000px) {
	ul {
		font-size: 1.3em;
	}
}

@media (max-width: 1200px) {
	ul {
		font-size: 1em;
	}
}

@media (max-width: 1000px) {
	ul {
		font-size: 1em;
	}
}

@media (max-width: 900px) {
	ul {
		font-size: 0.8em;
	}
}


.grid {
	width: 80%;
	display: grid;
	grid-template-columns: repeat(auto-fit, 18%);
	gap: 2%;
	border: none;
	padding-left: 20%;
	padding-top: 20%;
}

.split {
	display: grid;
	grid-template-columns: 2fr 1fr;
}

.box {
	border: none;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	padding: 1%;
	grid-column: span 1;
}

.widebox {
	border: none;
	aspect-ratio: 2/ 1;
	display: flex;
	align-items: center;
	padding: 1%;
	grid-column: span 2;
	overflow: scroll;
}

.infobox {
	background-color: #adadad;
	padding: 1%;
	text-align: left;
	border: 8px solid white;
	font-size: large;
	color: white;
}

.tiny {
	font-size: 0.5em;
}

.small {
	font-size: 1em;
}

.medium {
	font-size: 1.2em;
}

.grid img, a {
	width: 100%;
}

@media screen and (max-width: 2000px) {
	.grid {
		padding-top: 10%;
	}
}

@media screen and (max-width: 800px) {
	.grid {
		width: 90%;
		padding-left: 6%;
		padding-top: 15%;
	}

	.box {
		grid-column: span 1;
	}

	.widebox {
		grid-column: span 2;
	}
}

@media screen and (max-width: 600px) {
	.desktop {
		display: none;
	}

	.widebox {
		grid-column: span 5;
	}
}

.gallery {
	line-height: 0;
	-webkit-column-count: 5;
	-webkit-column-gap: 0;
	-moz-column-count: 5;
	-moz-column-gap: 0;
	column-count: 5;
	column-gap: 0;
	row-gap: 0;
}

.gallery img {
	display: block;
	width: 100% !important;
	height: auto !important;
}

.gallery figure {
	position: relative;
	overflow: hidden;
	display: inline-block;
	flex-flow: column;
}

.gallery figcaption {
	background-color: black;
	color: white;
	border-radius: 3px;
	padding: 0;
	text-align: center;
	text-shadow: black;
	font: smaller sans-serif;
}

caption img {
	vertical-align: middle;
	padding: 0;
	margin: 0;
}


@media (max-width: 1200px) {
	.gallery {
		-moz-column-count: 4;
		-webkit-column-count: 4;
		column-count: 4;
	}
}

@media (max-width: 1000px) {
	.gallery {
		-moz-column-count: 3;
		-webkit-column-count: 3;
		column-count: 3;
	}
}

@media (max-width: 800px) {
	.gallery {
		-moz-column-count: 2;
		-webkit-column-count: 2;
		column-count: 2;
	}
}

@media (max-width: 400px) {
	.gallery {
		-moz-column-count: 1;
		-webkit-column-count: 1;
		column-count: 1;
	}
}

.popup {
	display: none;
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1em;
	background: rgba(0, 0, 0, 0.8);
}

.popup:target {
	display: block;
}

.popup img {
	object-fit: contain;
	display: block;
	max-height: 100%;
	width: auto;
}

.tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
	visibility: hidden;
	background-color: black;
	color: #fff;
	text-align: left;
	padding: 5px;
	border-radius: 6px;
	position: absolute;
	z-index: 10;
	bottom: 100%;
	right: 100%;
	width: 400px;
}

@media screen and (max-width: 800px) {
	.tooltip .tooltiptext {
		font-size: 0.5em;
		left: 00%;
		bottom: 50%;
	}
}

.tooltip:hover .tooltiptext {
	visibility: visible;
}

.tooltiptext a {
	color: antiquewhite;
}

.tooltiptext ul {
	list-style: disc;
}

body {
	font-family: 'Inter', sans-serif;
}

/* Style for the images to cover their container without distortion */
.gallery-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-image {
	transform: scale(1.05);
}

.lightbox-image-container {
	max-width: 90vw;
	max-height: 90vh;
}