/*
 * Additions to the old look, for things that did not exist in 2009 (block images, embeds,
 * screen readers) and for phones. On a computer screen the page looks as it did.
 */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

#contentleft img,
#contentleft iframe,
#contentleft video,
#contentleft embed,
#contentleft object {
	max-width: 100%;
}

#contentleft img {
	height: auto;
}

#contentleft figure {
	margin: 0 0 10px 0;
}

#contentleft figure.alignright,
#contentleft .alignright {
	margin-left: 10px;
}

#contentleft figure.alignleft,
#contentleft .alignleft {
	margin-right: 10px;
}

#contentleft figcaption {
	font-size: 11px;
	line-height: 15px;
	text-align: center;
}

#content p.dsc-navigazione {
	text-align: center;
	padding: 10px 0 20px 0;
}

.comment-toolbar {
	font-size: 12px;
}

/* Phones and small windows: one column, nothing wider than the screen. */
@media (max-width: 980px) {
	#header,
	#navbar,
	#content,
	#footer {
		width: auto;
	}

	#header {
		height: auto;
		overflow: hidden;
	}

	#header .headerleft {
		float: none;
	}

	#header img {
		display: block;
		max-width: 100%;
		height: auto;
	}

	#navbar {
		height: auto;
		overflow: hidden;
		padding-bottom: 6px;
	}

	.navbarleft,
	.navbarright {
		float: none;
		width: auto;
		text-align: center;
	}

	.navbarright li {
		display: inline-block;
		margin: 3px 0;
	}

	#content {
		display: flex;
		flex-direction: column;
	}

	#contentleft {
		order: 1;
		float: none;
		width: auto;
		padding: 0 12px 10px 12px;
	}

	#l_sidebar {
		order: 2;
	}

	#r_sidebar {
		order: 3;
	}

	#l_sidebar,
	#r_sidebar {
		float: none;
		width: auto;
		margin: 10px 12px 0 12px;
		text-align: center;
	}

	#l_sidebar .alignright {
		float: none;
		display: inline-block;
	}

	#l_sidebar ul li a {
		display: inline-block;
		border-bottom: 0;
	}

	#content p {
		line-height: 1.5;
	}

	#commentblock {
		width: auto;
		padding: 15px 12px 10px 12px;
	}

	.commenttext,
	.commenttext-admin {
		width: auto;
	}

	#commentform textarea,
	#commentform input[type="text"],
	#commentform input[type="email"],
	#commentform input[type="url"] {
		max-width: 100%;
		box-sizing: border-box;
	}
}
