/*
 * FancyBox - jQuery Plugin
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 * 
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * 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.4 (11/11/2010)
 * 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
 */

body.sfp-open {
	overflow: hidden;
}

#sfp-fancybox {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1104;
	padding: var(--sfp_padding);
	display: flex;
	align-items: center;
	justify-content: center;
	display: none;
}

#sfp-fancybox[aria-hidden="false"] {
	display: flex;
}

#sfp-fancybox:before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: var(--sfp_background_color);
	opacity: var(--sfp_background_opacity);
}

#sfp-fancybox__close {
	position: absolute;
	right: 0;
	top: 0;
	width: 0;
	height: 0;
}

#sfp-fancybox__close:before {
	content: '';
	display: block;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	z-index: 2;
	display: var(--sfp_bg_close);
}

#sfp-fancybox__close:after {
	content: '';
	display: block;
	position: fixed;
	right: 10px;
	top: 10px;
	width: 50px;
	height: 50px;
	background-color: #FF0;
	z-index: 5;
	display: var(--sfp_show_close);
}

#sfp-fancybox__inner {
	max-width: 100%;
	max-height: 100%;
	flex: 0 1 auto;
	position: relative;
	z-index: 3;
	border-style: solid;
	border-width: var(--sfp_border_width);
	border-color: var(--sfp_border_color);
}

#sfp-fancybox__inner__content__img {
	max-width: calc(100vw - var(--sfp_padding) - var(--sfp_padding) - var(--sfp_border_width) - var(--sfp_border_width));
	max-height: calc(100vh - var(--sfp_padding) - var(--sfp_padding) - var(--sfp_border_width) - var(--sfp_border_width));
}

#sfp-fancybox__inner__left,
#sfp-fancybox__inner__right {
	display: block;
	width: 50px;
	height: 50px;
	position: fixed;
	top: 50%;
	left: 10px;
	margin-top: -25px;
	background-color: #0F0;
	z-index: 4;
}

#sfp-fancybox__inner__right {
	left: auto;
	right: 10px;
}

#sfp-fancybox.sfp-fancybox--gallery #sfp-fancybox__inner__number {
	position: fixed;
	bottom: 0;
	right: 0;
	left: 0;
	margin: 0 auto;
	width: auto;
	font-size: 20px;
	font-weight: 700;
	color: #FFFFFF;
	text-align: center;
	display: var(--sfp_show_number);
}