@view-transition {
	navigation: auto;
}

html,
body {
	background: var(--background);
	font-size: var(--font-size-base);
	color: var(--text);
	line-height: 1.5;
	font-family: var(--font);
	padding: 0;
	margin: 0;
	
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

/* CATCH WHEN I MISS A LABEL OR ALT TEXT */
img:not([alt]),
svg:not([aria-label]) {
	border: 5px solid red;
}

svg[aria-hidden="true"] {
	border: none;
}

main {
	width: var(--width);
	margin: 32px auto 64px auto;
	max-width: 100%;
}

h1 {
	font-weight: 500;
	font-size: 2.25rem;
	color: var(--color-1);
	margin: 0 0 32px 0;
	padding: 0;
	text-align: center;
}

h2 {
	font-weight: 500;
	font-size: 2rem;
	color: var(--color-2);
	margin: 24px 0;
	padding: 0;
}

h3 {
	font-size: 1.75rem;
	color: var(--color-3);
	font-weight: 400;
	margin: 20px 0;
	padding: 0;
}

h4 {
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--color-1);
	margin: 12px 0;
}

h5 {
	font-size: 1.35rem;
	font-weight: 400;
	margin: 12px 0;
}

h6 {
	font-size: 1.25rem;
	font-weight: 400;
	margin: 12px 0;
}

@media (max-width: 820px) {
	h1 {
		font-size: 2.25rem;
		margin: 0 0 1.25rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	h3 {
		font-size: 1.65rem;
	}

	h4 {
		font-size: 1.5rem;
	}

	h5 {
		font-size: 1.35rem;
	}

	h6 {
		font-size: 1.25rem;
	}
}

h1:has(+ p.page-description) {
	margin-bottom: 4px;
}

h1 + p.page-description {
	margin-block-start: 0;
	text-align: center;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 600px) {
	h1 + p.page-description {
		width: 90%;
	}
}

p {
	line-height: 32px;
	margin-block-start: 24px;
	margin-block-end: 32px;
}

ul {
	margin: 0;
	padding: 0;
}

ul li {
	margin-bottom: 8px;
	margin-left: 24px;
}

ul li {
	list-style-type: '- ';
}

ul > p:empty {
	/* Annoyingly markdown occasionally puts these in */
	display: none;
}

a,
a:visited {
	color: var(--text);
	cursor: pointer;
	text-decoration-color: var(--color-1);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: var(--color-2);
	color: var(--color-1);
}

a img {
	border: none;
}

button {
	cursor: pointer;
}

.hidden {
	display: none;
}

.align-left {
	text-align: left;
}

.align-center {
	text-align: center;
}

.align-right {
	text-align: right;
}

.rainbow-bar {
	width: 100%;
	height: 16px;
	background: linear-gradient(90deg,
			rgba(255, 0, 0, 1) 0%,
			rgba(255, 154, 0, 1) 10%,
			rgba(208, 222, 33, 1) 20%,
			rgba(79, 220, 74, 1) 30%,
			rgba(63, 218, 216, 1) 40%,
			rgba(47, 201, 226, 1) 50%,
			rgba(28, 127, 238, 1) 60%,
			rgba(95, 21, 242, 1) 70%,
			rgba(186, 12, 248, 1) 80%,
			rgba(251, 7, 217, 1) 90%,
			rgba(255, 0, 0, 1) 100%);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

header {
	background-color: var(--color-1);
	position: relative;
	margin-bottom: 72px;
}

header img {
	position: absolute;
	top: 8px;
	border: 4px solid var(--color-1);
	border-radius: 50%;
}

header .content {
	width: var(--width);
	margin: 0 auto;
	display: flex;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
}

header .content .title {
	font-size: 1.5rem;
}

header .content .title a {
	text-decoration: none;
	color: var(--white);
	margin-left: 112px;
	text-transform: uppercase;
}

header .content .title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--color-2);
}

header nav {
	height: 100%;
}

header nav ul {
	margin: 0;
	padding: 0 16px;
	display: inline-flex;
	gap: 32px;
}

header nav ul li {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
}

header .content nav ul li a {
	text-decoration: none;
	color: var(--white);
	padding: 16px 0 10px;
	border-bottom: 6px solid var(--color-1);
	font-size: 1rem;
}

header .content nav ul li a:hover {
	text-decoration: none;
	border-color: var(--color-3);
}

@media (max-width: 900px) {
	header {
		height: auto;
		margin-bottom: 32px;
	}

	header img {
		display: none;
	}

	header .content {
		flex-direction: column;
		height: auto;
		gap: 0;
	}

	header .content .title {
		margin-top: 12px;
	}

	header .content .title a {
		margin-left: 0;
	}
}

footer {
	background-color: var(--color-1);
	padding: 32px 0;
	margin-top: auto;
}

footer .content {
	width: var(--width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

footer nav {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 16px;
}

footer nav ul {
	margin: 0;
	display: inline-flex;
	gap: 32px;
	justify-content: center;
	align-items: center;
}


footer .content nav ul li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

footer .content nav ul li a {
	color: var(--white);
}

footer div.content nav ul li a:hover {
	text-decoration: underline;
	text-decoration-color: var(--color-2);
}

footer .content ul.social-links li a {
	display:block;
	height: 24px;
}

footer svg {
	height: 24px;
	fill: var(--white);
}

footer a:hover svg {
	fill: var(--color-2);
}

footer .site-info {
	font-size: 0.8rem;
	color: var(--white);
	text-align: center;
	margin-top: 16px;
}

.light-dark-toggle {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

@media (max-width: 600px) {
	.light-dark-toggle {
		justify-content: center;
	}
}

.light-dark-toggle button {
	border-radius: 50px;
	border: 2px solid var(--white);
	background-color: transparent;
	padding: 8px 16px;
 	line-height: 12px;
 	font-size: 0.8rem;
 	color: var(--white);
}

.light-dark-toggle button:hover {
	border-color: var(--color-3);
	background-color: var(--primary-50);
	color: var(--color-1);
}

.light-dark-toggle button svg {
	width: 16px;
	height: 16px;
	fill: var(--color-5);
}

.light-dark-toggle button:hover svg {
	fill: var(--color-1);
}

.light-dark-toggle button span.switch {
	display: flex;
	gap: 16px;
	align-items: center;
}

.light-dark-toggle button[data-current-mode="light"] span.switch-light-mode,
.light-dark-toggle button[data-current-mode="dark"] span.switch-dark-mode {
	display: none;
}


.light-dark-toggle button[data-current-mode="light"] span.switch-dark-mode,
.light-dark-toggle button[data-current-mode="dark"] span.switch-light-mode {
	display: flex;
}

section.photoset-list ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

section.photoset-list ul li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

section.photoset-list ul li a {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: block;
}

section.photoset-list ul li a img {
	border-radius: 10px;
	width: 100%;
	display: block;
}

section.photoset-list ul li a .overlay {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: auto;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  background: rgb(0, 0, 0, 0.4);
  padding: 16px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

section.photoset-list ul li a .overlay h2 {
	font-size: 3rem;
	margin: 0 0 8px 0;
  	font-weight: 700;
	color: var(--white);
}

section.photoset-list ul li a:hover h2 {
	color: var(--primary-100);
}

@media (max-width: 500px) {
	section.photoset-list ul li a .overlay h2 {
		font-size: 1.8rem;
	}
}

section.homepage-image {
	margin-bottom: 32px;
}

section.photoset-header {
	background: var(--color-1);
	color: var(--white);
	border-radius: 10px;
}

section.photoset-header .image {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: block;
}

section.photoset-header .image img {
	border-radius: 10px;
	width: 100%;
	display: block;
}

section.photoset-header .image .overlay {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: auto;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  background: rgb(0, 0, 0, 0.4);
  padding: 8px 16px;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

section.photoset-header .image .overlay h1 {
	font-size: 3rem;
	margin: 0;
  	font-weight: 700;
	color: var(--white);
}

section.photoset-header .metadata {
	display: flex;
	justify-content: center;
	gap: 64px;
	align-items: center;
	padding: 8px 16px;
	width: 100%;
}

@media (max-width: 500px) {
	section.photoset-header .metadata {
		gap: 32px;
	}

	section.photoset-header .image .overlay h1 {
		font-size: 1.8rem;
	}
}

section.album-description {
	width: calc(var(--width) - 15%);
	margin: 48px auto;
}

section.album-description p {
	margin-block-start: 0;
}

section.photos button.image {
	padding: 0;
	border: none;
	background: transparent;
}

section.photos {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

section.photos .row {
	display: flex;
	gap: 8px;
}

section.photos .row img {
	min-width: 0;
}

section.photos .row:first-of-type img {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

section.photos .row:last-of-type img {
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

section.photos p.photo-note,
section.photos div.photo-note {
	width: calc(var(--width) - 32px);
	margin: 16px auto;
}

section.photos div.photo-note p:first-of-type {
	margin-top: 0;
}

section.photos div.photo-note p:last-of-type {
	margin-bottom: 0;
}

.back-section {
	margin-top: 32px;
	text-align: center;
}

.photo-modal {
	position: relative;
	padding: 0;
	z-index: var(--z-index-dialog);
}

.photo-modal::backdrop {
	background: rgba(0, 0, 0, .5);
}

.photo-modal .close-section {
	position: absolute;
	top: 0;
	right: 0;
	height: 60px;
	width: 60px;
	border-bottom-left-radius: 24px;
	background: var(--primary-50);
}

.photo-modal button.close-photo-modal {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	padding: 0;
	z-index: calc(var(--z-index-dialog) + 10);
	fill: var(--primary-500);
}

.photo-modal button.close-photo-modal:hover svg {
	fill: var(--primary-300);
}

.photo-modal button.close-photo-modal svg {
	width: 32px;
	height: 32px;
}

.photo-modal button.close-photo-modal img {
	width: 100%;
}