/**
 * Featherlight – ultra slim jQuery lightbox
 * Version 1.0.4 - http://noelboss.github.io/featherlight/
 *
 * Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com)
 * MIT Licensed.
**/

.featherlight {
	display: none;

	/* dimensions: spanning the background from edge to edge */
	position:fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 9999;

	/* position: centering content */
	text-align: center;

	/* insures that the ::before pseudo element doesn't force wrap with fixed width content; */
	white-space: nowrap;

	/* styling */
	cursor: pointer;
	background: #333;
	/* IE8 "hack" for nested featherlights */
	background: rgba(0, 0, 0, 0);
}

/* support for nested featherlights. Does not work in IE8 (use JS to fix) */
.featherlight:last-of-type {
	background: rgba(0, 0, 0, 0.9);
}

.featherlight:before {
	/* position: trick to center content vertically */
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.25em;
}

.featherlight .featherlight-content {
/* make content container for positioned elements (close button) */
/* 		position: relative; */

	/* position: centering vertical and horizontal */
	text-align: center;
	vertical-align: middle;
	display: inline-block;

	/* dimensions: cut off images */
	overflow: auto;
	padding: 0 0 0;
	border-bottom: 0 solid transparent;

	/* dimensions: handling small or empty content */
	min-width:  30%;

	/* dimensions: handling large content */
	margin-left: 5%;
	margin-right: 5%;
	max-height: 70%;

	/* styling */
	cursor: auto;

	/* reset white-space wrapping */
	white-space: normal;
}

.featherlight .featherlight-content .caption {
	position: absolute;		
	padding: 1.5em 3em 2em 3em;
	bottom: 0; left: 0; right: 0;
	line-height: 140%;
	color: #fff;
	z-index: 99999;
	font-family: "Bliss Light", "Trebuchet MS", sans-serif;
	font-weight: 200;
	font-size: 1em;
	text-align: center;
	background: transparent;
	}

/* contains the content */
.featherlight .featherlight-inner {
	/* make sure its visible */
	display: block;
}

.featherlight .featherlight-close-icon {
	/* position: centering vertical and horizontal */
	position: absolute;
	z-index: 999999;
	top: 15px;
	right: 15px;

	/* dimensions: 25px x 25px */
	line-height: 25px;
	width: 25px;

	/* styling */
	cursor: pointer;
	text-align: center;
	font: Arial, sans-serif;
	background: #333; /* Set the background in case it overlaps the content */
	background: rgba(0, 0, 0, 0);
	color: #fff;
}


.featherlight .featherlight-image {
	/* styling */
	margin: 0 auto;
	max-width:100%;
	max-height:100%;
	width:auto;
/* 	width: 100%; */
}


.featherlight-iframe .featherlight-content {
	/* removed the border for image croping since iframe is edge to edge */
	border-bottom: 0;
	padding: 0;
}

.featherlight iframe {
	/* styling */
	border: none;
}

.featherlight .loading {
	font-size: 2em;
	color: #fff;
	text-align: center;
	}


/* handling phones and small screens */
@media only screen and (max-width: 1024px) {
	
	.featherlight .featherlight-content {
		/* dimensions: maximize lightbox with for small screens */
		margin-left: 10px;
		margin-right: 10px;
		max-height: 98%;
		padding: 0;
		}
	
	.featherlight .featherlight-close-icon {
		padding: 1em 1.5em 1em 1em; top: 0; right: 0;
		font-size: 2em;
		}
	
	.featherlight .featherlight-content .caption {
		position: absolute;		
		padding: 1.5em 1em 1em 1em;
		bottom: 0; left: 0; right: 0;
		line-height: 140%;
		color: #fff;
		z-index: 99999;
		font-family: "Crimson Text", Georgia, serif;
		font-weight: 400;
		font-size: 1em;
		text-align: left;
		background: transparent;
		}
	
}
