/* Make certain elements less chunky */
body > footer {
	padding: 0px !important;
}
body > nav > ul {
	margin-top: 0px !important;
	margin-bottom: 0px !important;
}
body > nav > ul > li > ul > li {
	margin-top: 4px !important;
	margin-bottom: 4px !important;
}
body > footer > p {
	margin-top: 8px !important;
	margin-bottom: 8px !important;
	color: rgb(from var(--text-color) r g b / 0.75);
	font-size: 0.9rem;
}

a.center, a.center img, img.center, img#avatar {
	display: block;
	margin: auto;
}
img {
	object-position: center center;
	object-fit: scale-down;
	max-width: 100%;
	max-height: calc(90vh - 150px);
}
img#avatar {
	max-width: 200px;
	max-height: 200px;
	padding-bottom: 2em;
}

.thumbs a, .thumbs ul, .thumbs li, .thumbs img {
	padding: 0px;
	display: inline;
	list-style-type: none;
}
.thumbs img {
	width: calc(20% - 8px);
}

details, summary {
	border: none;
	width: fit-content;
}

/* Main carousel */
.carousel {
	position: relative !important;
	overflow: hidden;
}
.carousel ul {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: scroll;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}
.carousel li {
	list-style: none;
	width: 100%;
	height: 100%;
	flex: 1 0 100%;
	scroll-snap-align: center;
}
.carousel li img {
	display: block;
	margin: auto;
}

/* Carousel buttons */
.carousel button {
	position: absolute;
	top: 0;
	bottom: 0;
	height: 3rem;
	width: 3rem;
	text-shadow: 0px 0px 8px black;
	border: none;
	border-radius: 9999px;
	font-size: 2rem;
	line-height: 3rem;
	padding: 0;
	margin: auto;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 100ms;
}
.carousel button:hover {
	opacity: 1.0;
	text-shadow: 0px 0px 8px #008080;
}
.carousel button, .carousel button:focus, .carousel button:hover {
	background-color: transparent !important;
}
.carousel button.inactive,
.carousel button.inactive:hover,
.carousel button.inactive:focus {
	color: rgb(from var(--text-color) r g b / 0.1);
	text-shadow: 0px 0px 8px rgb(from black r g b / 0.1);
}
.carousel button:first-child  { left: 4px; }
.carousel button:last-child  { right: 4px; }

/* Carousel scrollbar */
.carousel * {
	scrollbar-color: transparent transparent; /* thumb and track color */
	scrollbar-width: 0px;
}
.carousel *::-webkit-scrollbar {
	width: 0;
	height: 0;
}
.carousel *::-webkit-scrollbar-track {
	background: transparent;
}
.carousel *::-webkit-scrollbar-thumb {
	background: transparent;
	border: none;
}
