:root {
	--clr-gf-highlight:          #FF8800;
	--clr-gf-alert:              #D00000;

	--clr-gf-link-dead:          #8B0000;
	--clr-gf-link-inactive:      #008C8C;

	--clr-gf-status-indicator-0: #AAA;
	--clr-gf-status-indicator-1: #0A0;
}

/* Visibility */

.hide {
	display: none;
}

/* Font */

.big {
	font-size: 1.25em;
}

/* Prevent overflow of long strings (like URLs) */
.wrap {
	overflow-wrap: break-word;
}

/* Align */
.center {
	text-align: center;
}

/* Float */

.left {
	float: left;
	margin: 0 10px 0 0;
}

.right {
	float: right;
	margin: 0 0 0 10px;
}

.clear-left {
	clear: left;
}

.clear-right {
	clear: right;
}

.clear {
	clear: both;
}

/* Columns */

.flex {
	display: flex;
	gap: 1em;
}

.grid-cols-2,
.grid-cols-3,
.grid-cols-4,
.grid-cols-5,
.grid-cols-6,
.grid-cols-7,
.grid-cols-8,
.grid-cols-9,
.grid-cols-10,
.grid-cols-11,
.grid-cols-12 {
	display: grid;
	gap: 1em;
}

.grid-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
	grid-template-columns: repeat(5, 1fr);
}

.grid-cols-6 {
	grid-template-columns: repeat(6, 1fr);
}

.grid-cols-7 {
	grid-template-columns: repeat(7, 1fr);
}

.grid-cols-8 {
	grid-template-columns: repeat(8, 1fr);
}

.grid-cols-9 {
	grid-template-columns: repeat(9, 1fr);
}

.grid-cols-10 {
	grid-template-columns: repeat(10, 1fr);
}

.grid-cols-11 {
	grid-template-columns: repeat(11, 1fr);
}

.grid-cols-12 {
	grid-template-columns: repeat(12, 1fr);
}

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

.grid-cols-span-3 {
	grid-column: span 3;
}

.grid-cols-span-4 {
	grid-column: span 4;
}

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

.grid-cols-span-6 {
	grid-column: span 6;
}

.grid-cols-span-7 {
	grid-column: span 7;
}

.grid-cols-span-8 {
	grid-column: span 8;
}

.grid-cols-span-9 {
	grid-column: span 9;
}

.grid-cols-span-10 {
	grid-column: span 10;
}

.grid-cols-span-11 {
	grid-column: span 11;
}

.grid-cols-span-12 {
	grid-column: span 12;
}


/* Links */

a.external {
	background: transparent url('../images/link_extern.gif') 100% 50% no-repeat;
	padding-right: 14px;
}


/* Quotes */

blockquote p::before {
	content: open-quote;
}
blockquote p::after {
	content: close-quote;
}
blockquote footer::before {
	content: '—';
	margin-right: 0.75em;
}

/* Breadcrumbs */

.breadcrumb-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1ch;
}

.breadcrumb-item {
	display: flex;
	gap: 1ch;
}

/* Social Sharing */

.sharing {
	margin: 0 auto;
	text-align: right;
	float: right;
}

.sharing ul li {
	display: inline;
}

/* Thumbnails */

.thumbnail-container {
	display: flex;
	gap: 1em;
	align-items: flex-end;
}

/* Buttons */

.button-container {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
}

.button-container .link-button {
	border: 1px solid;
	padding: 1em;
}

/* Modals */

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100dvw;
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0, 0);
}
.modal:target {
	transform: scale(1, 1);
}

.modal-content {
	position: relative;
	overscroll-behavior: contain;
	width: fit-content;
	background-color: #FFF;
}

.modal-content img {
	max-width: 100%;
}

.modal-title {
	font-weight: bold;
}

.modal-close {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #000;
	text-decoration: none;
}
.modal-close::after {
	content: 'X';
	color: #FFF;
	font-weight: bold;
}

/* Status indicator */

.status-indicator::after {
	content: '';
	margin-left: 0.6ch; /* == 1.2ch / 2 */
	display: inline-block;
	width: 1.2ch;
	height: 1.2ch;
	border-radius: 50%;
}
.status-indicator[data-status="0"]::after {
	background-color: var(--clr-gf-status-indicator-0);
}
.status-indicator[data-status="1"]::after {
	background-color: var(--clr-gf-status-indicator-1);
}

