/* General *********************/
#feedback {
	clear: both;
	padding-top: 50px;
	font-size: 80%;
	margin-right: 10px;
}

#feedback img {
	vertical-align: baseline;
	margin-right: 5px;
}

.section-end {
	margin-bottom: 20px;
}

.section-end p:last-child,
.huge-section-end p:last-child {
	display: inline-block;
}

.huge-section-end {
	margin-bottom: 50px;
}

.related-content h2:first-child {
	margin-top: 20px;
}

h2 + h3 {
	margin-top: 0;
}

aside h3 {
	margin-top: 0;
}

main ul li {
	margin-bottom: 10px;
}

.block {
	display: block;
}

/* WET4 and Bootstrap changes *********************/
.wb-tabs [role=tabpanel] {
	overflow: hidden;
}

.wb-tabs details > * {
	margin-left: 0;
	margin-top: 12px;
}

details section:first-of-type h2 {
	margin-top: 20px;
}

.pagination {
	margin: 0;
}

.pagination > li > a {
	text-align: center;
	min-width: 50px;
}

.mfp-title span {
	display: block;
}

.mfp-title a {
	color: white;
}

.glyphicon-asterisk {
	color: #c0392b;
	margin-right: 5px;
}

/* Photo grids *********************/
.photo-block {
	margin: 20px 0;
}

.photo-single {
	margin-bottom: 20px;
}

.photo-single,
.photo-grid-2x2,
.photo-grid-3x3 {
	text-align: center;
}

.photo-single img,
.photo-grid-2x2 img,
.photo-grid-3x3 img {
	max-width: 100%;
	max-height: 300px;
}

.photo-small img {
	max-height: 250px;
}

.white-bg img {
	border: 1px solid #e3e3e3;
}

.photo-caption {
	display: block;
	margin-top: 10px;
	margin-bottom: 0;
}

.no-link a {
	color: #333;
	text-decoration: none;
}

/* Icons *********************/
[href^='mailto:'] {
	position: relative;
	margin-left: 20px;
}

[href^='mailto:']:before {
	color: #333;
	content: "\2709";
	font-family: "Glyphicons Halflings";
	font-size: 1em;
	position: absolute;
	left: -20px;
}

/* Lists *********************/
.list-important {
	position: relative;
	list-style-type: none;
}

.list-important:before {
	color: #c0392b;
	content:"\2a";
	font-family: "Glyphicons Halflings";
	font-size: 1em;
	position: absolute;
	left: -20px;
}

/* Life cycle *********************/
.life-cycle {
	width: 470px;
}

.life-cycle th {
	text-align: center;
}

/* Search *********************/
#search_results li {
	margin-bottom: 30px;
}

.search_url {
	color: #7f8c8d;
}

/* Diagrams *********************/
.diagrams a {
	display: block;
	margin-bottom: 15px;
}

/* Form *********************/
.error {
	display: block;
}

/* Custom media queries *********************/
@media (max-width: 480px) {
	/* Photo grids */
	.photo-grid-2x2 li,
	.photo-grid-3x3 li {
		width: 100%;
	}
}

@media (min-width: 480px) {
	/* General */
	.pull-right-xs {
		float: right;
		max-width: 300px;
	}

	/* Photo grids */
	.pull-right-xs .photo-single {
		margin-left: 15px;
	}

	.photo-grid-2x2 li:nth-child(2n+1),
	.photo-grid-3x3 li:nth-child(2n+1) {
		clear: left;
	}

	/* Diagrams */
	.diagrams a {
		display: inline-block;
		margin-bottom: 0;
	}
}

@media (min-width: 640px) {
	/* Photo grids */
	.photo-grid-3x3 li {
		width: 33.3333%;
	}

	.photo-grid-3x3 li:nth-child(2n+1) {
		clear: none;
	}

	.photo-grid-3x3 li:nth-child(3n+1) {
		clear: left;
	}
}