@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth@8..144,87.5&display=swap');

/*html {
	overflow-y: scroll;
}*/

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.container {
	max-width: 800px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	line-height: 1;
	font-family: 'Roboto Flex', sans-serif;
}

a {
	color: gray;
}

a:not(.active) {
	text-decoration: underline;
	text-decoration-thickness: from-font !important;
	text-decoration-color: rgba(0,0,0,0.2);
}

a[href^='#']:not(.active) {
	text-decoration-style: dashed;
}

a:focus:not(.active), a:hover:not(.active) {
	text-decoration: underline !important;
	text-decoration-color: crimson !important;
	color: crimson !important;
}

a[href^='#']:focus:not(.active), a[href^='#']:hover:not(.active) {
	text-decoration: none !important;
}

img {
	max-width: 100%;
}

P {
	margin-bottom: 0.5rem;
}

p img {
	opacity: 0;
	transition-property: opacity;
	transition-duration: 0.5s;
}

p img.loaded {
	opacity: 1;
}

ul:not(.nav) li {
	margin-bottom: 0.8em;
	line-height: 1.2em;
}

p.photoset {
	position: relative;
	display: flex;
	max-width: 100%;
	flex-direction: row;
	align-items: stretch;
}

p.photoset img {
	max-width: 100%;
	height: auto;
}

p.photoset figure.image {
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	height: 100%;
}

p.photoset figure.image+figure.image {
	margin-left: 1rem;
}

body.lightbox-open {
	overflow: hidden;
	position: relative;
}

.lightbox {
	position: fixed;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
	text-align: center;
	padding: 2rem;
	z-index: 100;
}

.lightbox .picture {
	display: none;
	border-radius: 4px;
	margin: 2rem;
	max-width: 100%;
	max-height: 100%;
	filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
	overflow: hidden;
	border-radius: 4px;
}

.lightbox .picture img {
	object-fit: contain;
	display: block;
	width: 100%;
	height: 100%;
}

.lightbox .picture.current {
	display: block;
}


a.tag:not(:last-child):after {
	content: ",";
	display: inline-block;
	text-decoration: none;
}

.nav .nav-link {
	padding: 0.3rem 0.7rem;
}

.nav .nav-item .nav-link {
	margin-left: -0.7rem;
	white-space: nowrap;
}

.nav .nav-item {
	margin-right: 0.7rem;
}

.nav li:last-child .nav-link {
	margin-right: -0.7rem;
}

.nav a.active {
	position: relative;
}

.nav a.active {
	color: black;
	cursor: default;
	/* pointer-events: none; */
}

.nav a.active:before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	background-color: #eee;
	border-radius: 20px;
	width: 100%;
	height: 100%;
	z-index: -1;
}

figure.video {
	position: relative;
	padding-bottom: 56.25% !important;
	height: 0;
}

figure.video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

figure:not(:last-child) {
	margin-bottom: 1rem;
}


.columns {
	-webkit-column-count: 3;
	-moz-column-count: 3;
	column-count: 3;
}

.columns img {
	max-width: 12rem;
}

@media (max-width: 800px) {
	.columns {
		-webkit-column-count: 2;
		-moz-column-count: 2;
		column-count: 2;
	}
}

@media (max-width: 500px) {
	.columns {
		-webkit-column-count: 1;
		-moz-column-count: 1;
		column-count: 1;
	}
}

.columns ul.text-danger li:first-child {
	break-inside: avoid-column;
}

.icon {
	display: inline-block;
	position: relative;
	margin-right: .2em;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.link-icon {
	display: inline-flex;
	align-items: center;
}

.form-control:focus {
	border-color:  #ced4da !important;
}

body.dark {
	color: white;
	background-color: #333;
}

.grid-128 {
	display: grid;
	grid-template-columns: repeat(auto-fill, 141px);
	grid-auto-rows: 1fr;
	gap: 1rem;
}

.grid-128 .card img {
	height: 210px;
	object-fit: cover;
	display: block;
	width: 100%;
}

.grid-128 .card .card-text {
	display: flex;
	align-items: center;
	height: 100%;
	justify-content: center;
}

ul:not(.nav) li::marker, ol:not(.nav) li::marker {
	color: grey;
}

ul:not(.nav):not(.list-unstyled) li {
	list-style-type: square;
}

.text-success li::marker, li.text-success::marker {
	content: "👍 ";
}

.text-danger li::marker, li.text-danger::marker {
	content: "👎 ";
}

.text-warning li::marker, li.text-warning::marker {
	content: "🤏 ";
}
