
/**/

figure.pic {
	display: block;
	max-width: 500px;
	margin: 0 auto;
	border: 1px solid #ddd;
}

figure.pic img {
	width: 100%;
	display: block;
	margin: 0 auto;
}

figure.pic figcaption {
	background: #ddd;
	padding: 10px;
}

/**/

.gallery {
	margin: 0 -10px;
}

.gallery figure {
	display: block;
	float: right;
	width: 33.33%;
	padding: 10px;
	border: 0;
}

.gallery figure img {
	display: block;
	width: 100%;
	border-top: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-left: 1px solid #ddd;

}

.gallery figure figcaption {
	background: #ddd;
	padding: 10px;
	border-bottom: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-left: 1px solid #ddd;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gallery .gpic {
	display: block;
	float: right;
	width: 33.33%;
}

.gallery .gpic img {
	display: block;
	width: 100%;
	padding: 10px;
}

/**/

@media(min-width: 768px) {
	#content table caption {
		/*
		padding: 5px;
		background: #007e3d;
		color: #fff;
		*/
		position: fixed;
		top: -9999px;
	}

	#content table {
		width: 100%;
		border-right: 1px solid #ddd;
		border-bottom: 1px solid #ddd;
		border-spacing: 0;
		border-collapse: collapse;
	}

	#content table td,
	#content table th {
		padding: 5px;
		border-top: 1px solid #ddd;
		border-left: 1px solid #ddd;
	}

	#content table th {
		background: #f1f1f1;
		text-align: right;
	}
}

@media(max-width: 768px) {
	#content table,
	#content table caption,
	#content table thead,
	#content table tbody,
	#content table tr,
	#content table th,
	#content table td	{
		display: block;
		width: 100%;
	}
	
	#content table {
		border-spacing: 0px !important;
		border-collapse: collapse !important;
		border: 0;
	}
	
	#content table thead {
		display: none;
	}
	
	#content table tr	{
		margin-bottom: 15px;
		border: 1px solid #ddd;
	}
	
	#content table th	{
		font-weight: bold;
		background: #f1f1f1;
		padding: 5px;
		border-style: none;
		border-bottom: 1px solid #ddd;
	}
	
	#content table td	{
		display: table;
		border-style: none;
		border-bottom: 1px solid #ddd;
	}
	
	#content table td .td-content{
		display: table-cell;
		padding: 5px;
	}
	
	#content table td:before {
		content: attr(data-caption);
		font-weight: bold;
		background: #f1f1f1;
		padding: 5px;
		display: table-cell;
		width: 33.33%;
	}
	
	#content table td:after {
		clear: both;
		display: block;
		content: '';
	}
}