
:root {
	color-scheme: light dark;
	--text: #1a1a1a;
	--text-muted: #595959;
	--bg: #ffffff;
	--bg-muted: #f4f4f5;
	--border: #dcdcdc;
	--accent: #1a5276;
	--max-width: 1100px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #f0f0f0;
		--text-muted: #b3b3b3;
		--bg: #16171a;
		--bg-muted: #1f2023;
		--border: #3a3b3f;
		--accent: #7fb3d9;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.5;
}

a {
	color: var(--accent);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.site-header,
.site-main,
.site-footer {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1.25rem 1rem;
}

.site-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 1px solid var(--border);
}

.site-header a {
	text-decoration: none;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--text);
}

.site-footer {
	margin-top: 2rem;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.9rem;
}

.site-footer nav a {
	color: var(--text-muted);
}

h1, h2, h3 {
	line-height: 1.2;
}

.breadcrumb {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.breadcrumb a {
	color: var(--text-muted);
}

.empty-state {
	color: var(--text-muted);
	font-style: italic;
}


.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}

.photo-grid-item-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.photo-grid-item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: var(--bg-muted);
}

.photo-grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-grid-caption {
	display: block;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.photo-grid-caption:hover {
	text-decoration: underline;
}

/* Pure-CSS lightbox (requirements.md §B.2): hidden overlay revealed only when its id matches
   the URL fragment. No JavaScript involved — the overlay's own href="#" is what closes it,
   since clicking it navigates away from the :target'd fragment. */
.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 100;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.lightbox:target {
	display: flex;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
}

.folder-list {
	list-style: none;
	margin: 1.5rem 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.folder-list-item a {
	font-weight: 600;
	text-decoration: none;
	font-size: 1.05rem;
}

.folder-list-item a:hover {
	text-decoration: underline;
}

.folder-list-item p {
	margin: 0.15rem 0 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}


.photo-main {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.photo-lightbox-image {
	margin: 0 auto;
	border-radius: 4px;
	background: var(--bg-muted);
}

.photo-caption {
	font-size: 1.05rem;
	color: var(--text);
}

.photo-subject {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.exif-panel {
	border-top: 1px solid var(--border);
	padding-top: 1rem;
}

.exif-panel h2 {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--text-muted);
	margin: 0 0 0.75rem;
}

.exif-panel dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 1rem;
	row-gap: 0.4rem;
	margin: 0;
}

.exif-panel dt {
	font-weight: 600;
	color: var(--text-muted);
}

.exif-panel dd {
	margin: 0;
}


.about-page {
	max-width: 42rem;
}

.about-section {
	margin-bottom: 2rem;
}

.about-section h2 {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

.about-section p {
	color: var(--text);
	margin: 0 0 0.75rem;
}
