#main-content > header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 2em;
}


@media (max-width: 736px) {
	#main-content > header {
		flex-wrap: wrap;
	}
}

#main-content > header .titlerow {
	display: flex;
	min-width: 0;
	margin-bottom: 0.8em;
	align-items: center;
}

#main-content > header a.back {
	font-size: 1.5em;
	flex: none;
}

#main-content > header h2 {
	min-width: 0;
	margin: 0 0 0 0.5em;
}

@media (max-width: 736px) {
	#main-content > header > div:first-of-type {
		width: 100%;
		margin-top: 1.5em;
	}
}

#main-content > header .buttons {
	flex: none;
}

@media (max-width: 736px) {
	#main-content > header .buttons {
		margin-top: 1em;
	}
}

#main-content > header .buttons button,
#main-content > header .buttons a {
	margin-left: 0.5em;
}

#main-content > header .buttons .lock:not(.locked) i.on,
#main-content > header .buttons .lock.locked i.off {
	display: none;
}

#main-content > header .buttons .subscribe:not(.active) i.on,
#main-content > header .buttons .subscribe.active i.off {
	display: none;
}

#quick-reply {
	margin-top: 4em;
}

#quick-reply .layout-formrow {
	margin-left: 0;
	margin-right: 0;
}

#quick-reply input,
#quick-reply textarea {
	width: 100%;
	margin-bottom: 0.5em;
}

#post-body {
	min-height: 10em;
	resize: vertical;
}

.post-holder {
	position: relative;
}

ul.post-images {
	list-style: none;
	margin: 0 1em 1.5em;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8.7em, 1fr));
	grid-gap: 1em;
}

ul.post-images li {
	padding-top: 100%;
	border: 1px solid #888;
	position: relative;
}

ul.post-images img {
	display: block;
	position: absolute;
	top: 3px;
	left: 3px;
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	bottom: 3px;
	object-fit: contain;
	cursor: pointer;
}
