/*
 * FancyBox - jQuery Plugin
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 *
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * Modified 2012 Nikola Vidoni (mobile ready, CSS3 optimizations, dropped IE6-7 support for shadows & opacity)
 * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 *
 * Version: 1.3.6 (22/11/2012)
 * Requires: jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

#fancybox-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -22px;
	margin-left: -22px;
	width: 44px;
	height: 44px;
	background: url('controls.png') 0 -108px;
	opacity: 0.8;
	cursor: pointer;
	z-index: 1104;
	display: none;
}

#fancybox-loading div {
	width: 44px;
	height: 44px;
	background: url('loading.gif') center center no-repeat;
}

#fancybox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1100;
	display: none;
}

#fancybox-tmp {
	padding: 0;
	margin: 0;
	border: 0;
	overflow: auto;
	display: none;
}

#fancybox-wrap {
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px;
	z-index: 99999;
	outline: none;
	display: none;
}

#fancybox-outer {
	position: relative;
	width: 100%;
	height: 100%;
	background: #fff;
	-webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.50);
	-moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.50);
	box-shadow: 0px 0px 15px rgba(0,0,0,0.50);
	filter: progid: DXImageTransform.Microsoft.Blur (pixelradius = 15, enabled = "true")
}

#fancybox-content {
	width: 0;
	height: 0;
	padding: 0;
	outline: none;
	position: relative;
	overflow: hidden;
	z-index: 1102;
	border: 0px solid #fff;
}

#fancybox-hide-sel-frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	z-index: 1101;
}

#fancybox-close {
	position: absolute;
	top: 0;
	right: -18px;
	width: 36px;
	height: 36px;
	background: url('controls.png') 0 0 no-repeat;
	cursor: pointer;
	z-index: 1103;
	display: none;
}

#fancybox-error {
	color: #444;
	font: normal 12px/20px Arial, Helvetica, sans-serif;
	padding: 14px;
	margin: 0;
}

/* fills the box: _get_zoom_to sizes the box to the image's own proportions,
   scaling small images up, so the image follows it (max-* kept it small) */
#fancybox-img {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
}

#fancybox-frame {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

#fancybox-left, #fancybox-right {
	position: absolute;
	bottom: 0px;
	height: 100%;
	width: 35%;
	cursor: pointer;
	outline: none;
	z-index: 1102;
	display: none;
}

/* The theme's sitewide a:hover underline (border-bottom in css/app.css) drew lines under the
   close button and the arrows, and under the caption while hovering the picture, since the
   prev/next links are full-height overlays on it. */
#fancybox-wrap a:hover, #fancybox-wrap a:focus {
	border-bottom: 0;
}

#fancybox-left {
	left: 0px;
}

#fancybox-right {
	/*right: 0px;*/
	right: -40.5px;
}

#fancybox-left-ico, #fancybox-right-ico {
	position: absolute;
	top: 50%;
	/*left: -9999px;*/
	width: 36px;
	height: 36px;
	margin-top: -15px;
	cursor: pointer;
	z-index: 1102;
	display: block;
}

#fancybox-left-ico {
	background: url('controls.png') 0 -36px no-repeat;
	left: 10px;

}

#fancybox-right-ico {
	background: url('controls.png') 0 -72px no-repeat;
	right: 10px;
	/* the loading box starts right below this icon in the sprite (row 108); when the browser
	   scales the image its top edge bled in as a line under the arrow. Row 107 is transparent. */
	height: 35px;
}

/*#fancybox-left:hover span {
	left: 20px;
}

#fancybox-right:hover span {
	left: auto;
	right: 20px;
}*/

#fancybox-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	z-index: 1102;
}

.fancybox-title-inside {
	position: relative;
	padding-bottom: 10px;
	color: #333;
	text-align: center;
	background: #fff;
}

.fancybox-title-outside {
	padding-top: 10px;
	color: #fff;
}

.fancybox-title-over {
	position: absolute;
	bottom: 0;
	left: 0;
	color: #fff;
	text-align: left;
}

#fancybox-title-over {
	display: block;
	padding: 10px;
	background-color: #000;
	background-color: rgba(0,0,0,0.5);
}

.fancybox-title-float {
	position: absolute;
	bottom: -20px;
	padding: 6px 12px;
	width: auto;
	color: #fff;
	font-weight: bold;
	white-space: nowrap;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.7);
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}

/* mondo: on phones an image spans the page width (see _get_zoom_to), so the
   close button, which normally hangs outside the top-right corner, moves
   inside it. Same breakpoint as the script: below 768px. */
@media screen and (max-width: 767px) {
	/* the box is exactly the image: no shadow gutter to push it sideways */
	#fancybox-wrap {
		padding: 0;
	}
	#fancybox-close {
		top: 6px;
		right: 6px;
	}
	/* its -40.5px offset made up for the wrap padding dropped above */
	#fancybox-right {
		right: 0;
	}
}
