/*
 * This is the media stylesheet.
 * Defines how images, videos, etc. are presented on a page.
 * Author: Sebastien Marchal / Brock U
 */


/* Images in body
----------------------- */

#content img.size-medium,
#content img.size-large,
#content img.size-full {
	max-width: 100%;
	height: auto;
	}


/* Image in Body Caption
----------------------- */

#container div.wp-caption p.wp-caption-text,
#content-featured-image small.caption {
	padding: 10px 0 10px 0; margin-bottom: 5px;
	display: inline-block;
	font-family: "Bliss Light", "Trebuchet MS", sans-serif;
	font-weight: 200;
	font-size: .8em;
	color: #787878;
	text-align: left !important;
	line-height: 140%;
	border-bottom: 1px solid #f0f0f0;
	}
	
/* small.caption { display: block; clear: both; } */

/* First image in Post
----------------------- */
.entry-content.oldpost .wp-caption:first-child,
.entry-content.oldpost .wp-caption:first-of-type {
	margin: 0 0 20px 0; padding: 0;
	width: 100% !important;
	text-align: left;
	display: none;
	}
	.entry-content .wp-caption:first-child img {
		width: 100%; height: auto;
		}
.entry-content.oldpost .wp-caption:first-child,
.entry-content.oldpost p:first-child img { display: none; }


/* Images
----------------------- */

.alignnone,
img.alignnone {
	margin: 10px 0;
	display: block;
	clear: both;
	max-width: 100%;
	}
.aligncenter,
img.aligncenter {
	margin: 10px auto 30px auto;
	text-align: left;
	display: block;
	clear: both;
	max-width: 100%;
	}
.alignleft,
img.alignleft {
	margin: 10px 20px 10px 0;
	float: left;
	display: block;
	max-width: 100%;
	}
.alignright,
img.alignright {
	margin: 10px 0 10px 20px;
	float: right;
	display: block;
	max-width: 100%;
	}

.alignnone img,
.aligncenter img,
.alignleft img,
.alignright img {
	max-width: 100%;
	height: auto;
}


/* Gallery
----------------------- */

#content .gallery {
	margin: 0 auto 18px;
	}
#content .gallery .gallery-item {
	float: left;
	margin: 0 10px 10px 0;
	text-align: center;
	width: 30%;
	}
#content .gallery img {
	border: none;
	display: block;
	}
#content .gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
	}
#content .gallery dl {
	margin: 0;
	}
#content .gallery img {
	border: none;
	width: 100%;
	height: auto !important;
	}
#content .gallery br+br {
	display: none;
	}
#content .attachment img { /* single attachment images should be centered */
	display: block;
	margin: 0 auto;
	}


/* Other media
----------------------- */
#content iframe { max-width: 100%; }

/* responsive video */
.flexvideo {
	margin-bottom: 2em;
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	}
.flexvideo iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	}

