* {
	margin: 0;
	padding: 0;
}

html {
	line-height: 1.5;
	font-family: sans-serif;
	background-color: #000;
}

.modlink, .modlink:visited, .modlink:active {
	color: var(--link-accent);
	text-decoration: none;
}

.modlink:hover {
	text-decoration: underline;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *                            site header styles                             *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#site-header {
	background-color: #1a0e0e;
	color: #eee;
	position: sticky;
	top: 0;
	z-index: 999;
}

#site-header .menu {
	line-height: 2;
	font-size: 125%;
	text-align: center;
	list-style-type: none;
}

.socials ul {
	display: flex;
	flex-flow: row nowrap;
	gap: 3em;
	justify-content: center;
	list-style-type: none;
	padding: 1.5em 0;
}

.socials li {
	list-style-type: none;
}

#menu-toggle, #site-header .menu, #site-header .socials {
	display: none;
}

#menu-toggle:checked ~ nav {
	display: block;
}

.socials img {
	width: 2em;
}

/* LOGO ANIMATIONS */

#site-header svg {
	height: 2.5em;
	display: block;
	margin: auto;
	width: 20ch;
	padding: 0.5em 0em;
}

@keyframes logo-bulk-fade {
	0% { opacity: 1; }
	15%, 100% { opacity: 0; }
}

@keyframes logo-R-move {
	0%, { transform: translateX(0); }
	15% { transform: translateX(-5%); }
	20%, 100% { transform: translateX(25%); }
}

@keyframes svg-shrink {
	20%, 100% {
		height: 1em;
	}
}

#site-header svg {
	max-width: 80%;
	animation: svg-shrink linear both;
	animation-timeline: scroll(block root);
	animation-range: 0px 30vh;
}

#logo-R {
	position: relative;
	animation: logo-R-move linear both;
	animation-timeline: scroll(block root);
	animation-range: 0px 30vh;
}

#logo-bulk {
	animation: logo-bulk-fade linear both;
	animation-timeline: scroll(block root);
	animation-range: 0px 40vh;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *                              gallery styles                               *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#gallery-main {
	display: grid;
	grid-template-columns: repeat(auto-fit, 350px);
	flex-grow: 1;
}

figure img {
	max-width: 30em;
}

figure {
	position: relative;
	width: fit-content;
	height: fit-content;
	margin: 2em;
}

figure:hover figcaption {
	height: fit-content;
}

figcaption {
	box-sizing: border-box;
	height: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	height: 0;
	background: rgba(0,0,0,0.5);
	color: #eee;
	overflow: hidden;
	width: 100%;
}

figcaption div {
	line-height: 1;
	margin: 0.75em;
}

figcaption p:first-child {
	font-weight: bold;
	text-align: center;
	font-size: 150%;
}

@media only screen and (min-width: 45em) {
	body {
		display: flex;
	}

	#site-header {
		max-width: 30ch;
		height: 100vh;
	}

	#site-header .menu, #site-header .socials {
		display: block;
	}
}
