.nav_header {
	background-color: #0058bd;
}

html {
	--theme: #0058bd;
}

.content a, .sidebar a, .footer a {
	color: #0058bd;
}

html[data-mode="dim"] .content a,
html[data-mode="dim"] .sidebar a,
html[data-mode="dim"] .footer a {
	color: #7EB8FF;
}

@media (prefers-color-scheme: dark) {
	html:not([data-mode="lit"]) .content a,
	html:not([data-mode="lit"]) .sidebar a,
	html:not([data-mode="lit"]) .footer a {
		color: #7EB8FF;
	}
}

.nav_brand img {
	max-width: clamp(15rem, 40vw, 30rem);
}

.nav {
	max-width: none;
}

.img-half {
	max-width: 50%;
	height: auto;
}

/* Mobile: hamburger on the left */
@media screen and (max-width: 1300px) {
	.nav_brand {
		margin-left: 3rem;
	}

	.nav_close {
		left: -3.5rem;
		right: auto;
	}
}

/* All desktop screens: follow pushed right */
@media screen and (min-width: 1301px) {
	.nav_center {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}

	.follow {
		margin-left: auto;
	}
}

/* Medium desktop: move About Us next to dark mode toggle */
@media screen and (min-width: 1301px) and (max-width: 1599px) {
	.nav_body > :nth-last-child(3) {
		order: 10;
		margin-left: auto;
	}

	.follow {
		order: 11;
		margin-left: 0;
	}
}

/* Recent Pictures sidebar grid */
.sidebar_pictures {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.sidebar_pic_link {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 4px;
}

.sidebar_pic_link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.sidebar_pic_link:hover img {
	transform: scale(1.05);
}

/* Lightbox overlay */
.sidebar_lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.sidebar_lightbox_content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	text-align: center;
}

.sidebar_lightbox_content img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 4px;
}

.sidebar_lightbox_title {
	color: #fff;
	font-size: 1.1rem;
	margin-top: 0.75rem;
}

.sidebar_lightbox_close {
	position: absolute;
	top: -2rem;
	right: -1rem;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
}

.sidebar_lightbox_close:hover {
	color: #ccc;
}
