/* Additions to the original theme (style.css is kept as it was on WordPress). */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
#content img { max-width: 100%; height: auto; }
#content video, #content iframe, #content embed, #content object, #content .wp-video { max-width: 100%; }
#content table { max-width: 100%; }
.commentlist li > p:last-child { margin-bottom: 0; }

/* Narrow screens: same look, one column. */
@media (max-width: 920px) {
	#header {
		position: static;
		height: auto;
	}
	#header-contents {
		width: auto;
		padding: 0 16px;
	}
	#header-contents::after {
		content: "";
		display: table;
		clear: both;
	}
	#header .logo {
		position: static;
		float: none;
		display: inline-block;
		margin: 0 -6px;
		padding: 0 6px;
		font-size: 32px;
		line-height: 68px;
	}
	#header .logo-small, #header .page-title {
		display: none !important;
	}
	#header .utility {
		float: none;
		margin: 0 -16px;
		padding: 0 16px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	#header .utility ul {
		display: flex;
		white-space: nowrap;
	}
	#header .utility li {
		float: none;
		flex: none;
	}
	#header .utility li:first-child a {
		border-left: none;
	}
	#page {
		top: 0;
		width: auto;
		max-width: 600px;
		padding: 24px 16px 20px;
	}
	#asideNav {
		position: static;
		width: auto;
		margin-top: 0;
	}
	#content pre {
		padding: 12px 14px;
		font-size: 13px;
	}
	.commentlist li {
		padding: 12px 0;
	}
}
@media (max-width: 480px) {
	#header .logo {
		font-size: 26px;
		line-height: 58px;
	}
	#header .utility a {
		font-size: 13px;
		padding: 0 12px;
	}
	h1 {
		font-size: 1.6em;
	}
}
