body {
	font-family: sans-serif;
	margin: 0;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

.hero, main {
	/*! animation: fade-in .5s; */
}

main, .usernav, nav ul, .hero-vertical {
	box-sizing: content-box;
	margin: 1rem auto;
	padding: 0 1rem;
	max-width: 48rem;
}

.title {
	text-decoration: none;
	color: #000;
	display: block;
}
.title:hover {
	text-decoration: underline;
}

.title h1 {
	margin: 0;
}

.title span {
	font-weight: bold;
	font-size: 1.25em;
}

main {
	margin-top: 1.5rem;
}

.usernav {
	/*! margin: 1rem 0; */
}

nav {
	padding: 1rem 0;
}

nav {
	position: sticky;
	top: 0;
	background: #fff;
	border-bottom: 1px solid #ccc;
	z-index: 2000;
}

.usernav + nav {
	background: #eee;
}

nav ul {
	list-style: none;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	whitespace: nowrap;
}

nav a {
	text-decoration: none;
	color: #000;
}

nav li.active {
	font-weight: bold;
}

nav a:hover {
	text-decoration: underline;
}


article h2 {
	font-weight: normal;
	font-size: 1.2rem;
	color: #c08;
}

article p {
	margin: .5em 0;
}


.post {
	border-bottom: 1px solid #ccc;
	margin-bottom: 2rem;
}

.post-head {
	display: flex;
	align-items: center;
}

.post-date {
	color: #666;
	font-style: italic;
	flex-grow: 1;
}

.post img {
	object-fit: cover;
	width: 15rem;
	height: 15rem;
	border-radius: .5rem;
}

@media screen and (max-width: 32.5rem) {
	.post img {
		width: calc(100vmin - 2rem);
		height: calc(100vmin - 2rem);
	}
}

.hero {
	display: block;
	position: relative;
	width: 100%;
	height: 75vw;
	max-height: 50vh;
}

/*.hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(transparent, #0008);
}*/

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero .title {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	box-sizing: content-box;
	max-width: 48rem;
	margin: auto;
	padding: 1rem;
	color: #fff;
	z-index: 1;
}

.hero .title svg {
	position: absolute;
	left: 1rem;
	height: 3.5rem;
	fill: currentColor;
}

.subtitle {
	font-style: italic;
	text-align: right;
	color: #510ac9;
	line-height: 2;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.hero-vertical {
	display: flex;
	margin: 0 auto;
}

.hero-vertical .hero-image {
	width: auto;
}

.hero-vertical .title {
	position: initial;
	color: #000;
}


#map {
	height: 24rem;
	border-radius: 1rem;
	margin: 1rem 0;
}




footer {
	padding: 1rem;
	background: #222;
	color: #fff;
}

footer a {
	color: inherit;
	text-decoration: none;
}
footer a:hover { text-decoration: underline }

footer > div {
	max-width: 48rem;
	margin: auto;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 2em;
	margin-bottom: .5rem;
}

.footer-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.5;
}

.footer-copyright {
	display: flex;
	align-items: end;
	justify-content: space-between;
}

footer .button {
	background: #444;
	color: #fff;
}
footer .button:hover {
	background: #555;
	text-decoration: none;
}
footer .button:active {
	background: #333;
}

footer .feather {
	height: 1em;
	vertical-align: middle;
	margin-right: .25em;
}







.media-upload {
	background-color: #eee;
	border-radius: 1rem;
	padding: .5rem;
	margin: 1rem 0;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
}

.gallery  .image-container {
	position: relative;
}

.gallery .image-container img {
	width: 12rem;
	height: 12rem;
	display: block;
	object-fit: cover;
	border-radius: .5rem;
}

.gallery .image-container .button {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
}
.gallery .image-container pre {
	background-color: #0006;
	color: #fff;
	position: absolute;
	margin: 0;
	bottom: 0;
	right: 0;
	left: 0;
	font-size: 1rem;
	padding: .5rem 1rem;
	border-radius: .5rem;
	user-select: all;
	overflow: auto;
}


input[type="file"] {
	font: inherit;
}
.media-upload ::file-selector-button {
	margin-right: 1rem;
}





.login input, input[type="text"] {
	margin: 0;
	padding: .5em 1em;
	border: none;
	background-color: #eee;
	font: inherit;
	border-radius: .5em;
	display: block;
	margin: 1em 0;
}



.write label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 24rem;
	margin: 1rem 0;
	font-weight: bold;
}

.write label input {
	margin: 0;
	font-weight: normal;
}

.write textarea {
	width: 100%;
	height: 12rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
	resize: vertical;
}

.write-gallery {
	background-color: #eee;
	margin-top: 1rem;
	padding: .5rem;
	border-radius: 1rem;
}
.write-gallery summary {
	font-weight: bold;
	padding: .5rem 1rem;
	user-select: none;
}


button, .button, ::file-selector-button {
	display: inline-block;
	font-family: inherit;
	font-weight: bold;
	font-size: inherit;
	margin: 0;
	border: none;
	background-color: #eee;
	color: #000;
	padding: .5em 1em;
	border-radius: .5em;
	text-decoration: none;
	cursor: default;
	flex-shrink: 0;
}
button:not(:first-child), .button:not(:first-child) {
	margin-left: .5em;
}
.button-primary {
	background-color: #38f;
	color: #fff;
}
.button-danger {
	background-color: #c00;
	color: #fff;
}

.button:hover, ::file-selector-button:hover { background-color: #ddd }
.button-primary:hover { background-color: #26c }
.button-danger:hover { background-color: #a00 }

.icon-button {
	padding: .5em;
	vertical-align: middle;
}
.icon-button svg {
	height: 1.5em;
	stroke-width: 1.25;
	display: block;
}


.button-container {
	display: flex;
	justify-content: end;
	flex-wrap: wrap;
}

.button-container .spacer {
	flex-grow: 1;
}



textarea {
	background-color: #eee;
	margin: 0;
	padding: 1em;
	border: none;
	border-radius: .5em;
	font-size: 1rem;
}







label.checkbox input[type="checkbox"] {
	display: none;
}

label.checkbox span {
  display: flex;
  padding: .5em 1em;
  border-radius: .5em;
  gap: .5em;
}

label.checkbox:hover span {
  background-color: #ddd;
}

label.checkbox span::before {
  content: '';
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  background-color: #fff;
  border-radius: .25em;
  flex-shrink: 0;
}

label.checkbox input:checked + span::before {
  background-color: #38f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3,6 5,9 9,3' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
