@font-face {
	font-family: "Merriweather";
	src:
		url(/assets/fonts/Merriweather.woff2) format("woff2"),
		url(/assets/fonts/Merriweather.ttf) format("truetype");
}

:root {
	--sgi: #472b91;
	--camera: #37b6bf;
	--goose: #2859c6;
	--kodak: #fab710;
	--panasonic: #003fc1;
	--commie: #f60000;
	--capitalism: #369d73;
}

html {
	font: 100%/1.5 "Merriweather";
	overflow-y: scroll;
	text-size-adjust: none;
}

body {
	max-width: 50vw;
	margin: 0 auto;
}

nav {
	margin-top: 0.3125em;
	text-align: center;
}

nav a {
	margin-right: 0.3125em;
	text-decoration: none;
}

h2 {
	margin-top: 0.625rem !important;
}

iframe {
	border: none;
}

footer {
	text-align: center;
}

a:has(img) {
	text-decoration: none;
}

a img {
	image-rendering: crisp-edges;
}

/* Gallery */
.gallery img {
	width: 7.5rem;
	height: 10.625rem;
	object-fit: cover;
}

/* Thanks, seirdy.one */
.narrow {
	contain: inline-size layout paint;
	padding: 0.5em;
	margin: auto;
	max-width: 40em;
}

/* Thanks, anarchan.net */
h2,
h3,
h4,
p {
	margin: 0.3125rem;
	white-space: pre-line;
	overflow-wrap: break-word;
}

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

img:hover {
	transition: all 0.2s;
	transform: translate(-2px, -2px);
}

ul {
	padding-left: 1rem;
	margin: 0;
}

ul li {
	list-style: none;
	margin: 0.3125rem;
	line-height: 1.5;
}

ul li::before {
	content: "— ";
}

/* Status.cafe */
#statuscafe {
	padding: 0.5em;
}

#statuscafe-username {
	margin-bottom: 0.5em;
	font-size: 1.2em;
}

#statuscafe-username a {
	text-decoration: none !important;
}

#statuscafe-content {
	margin: 0 1em 0.5em 1em;
}

/* Viewer */
.viewer {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
	padding: 20px;
}

.viewer img {
	width: 100%;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid black;
}

/* MODAL */
.modal {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal.hidden {
	display: none;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

/* CONTENT BOX */
.modal-content {
	position: relative;
	z-index: 2;
	width: 50vw;
	max-width: 50em;
	display: flex;
	gap: 1rem;
	padding: 1rem;
	background: white;
	color: black;
	border: 2px solid black;
}

/* INFO PANE */
.info-pane {
	width: 40%;
}

.info-pane ul {
	padding-left: 0;
}

.info-pane li {
	list-style: none;
}

/* CAROUSEL */
.carousel {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 60%;
}

.carousel img {
	width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border: 2px solid black;
}

.carousel button {
	font-size: 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
}
