/**!
 * Plugin Name: WP Featherlight
 * Version:     0.3.0
 * Author:      WP Site Care
 * License:     GPL-2.0+
 */


/* Base Styles
--------------------------------------------- */

.featherlight {
	background: transparent;
	cursor: pointer;
	display: none;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	text-align: center;
	white-space: nowrap;
	z-index: 2147483647;
}

.featherlight * {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.featherlight:last-of-type {
	background: rgba(0, 0, 0, 0.9);
}

.featherlight:before {
	content: "";
	display: inline-block;
	height: 100%;
	margin-right: -0.25em;
	vertical-align: middle;
}

.featherlight .featherlight-content {
	background: #fff;
	border: 0;
	cursor: auto;
	display: inline-block;
	max-height: 80%;
	max-width: 90%;
	min-width: inherit;
	overflow: visible;
	padding: 0;
	position: relative;
	text-align: left;
	vertical-align: middle;
	white-space: normal;
}

@media screen and (min-width: 980px) {
	.featherlight .featherlight-content {
		max-height: 90%;
	}
}

.featherlight .featherlight-inner {
	display: block;
}

.featherlight .featherlight-close-icon {
	background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	-webkit-background-size: 100% auto;
	background-size: 100% auto;
	cursor: pointer;
	display: block;
	height: 30px;
	overflow: hidden;
	position: fixed;
	top: 25px;
	right: 25px;
	text-align: center;
	text-indent: 100%;
	white-space: nowrap;
	width: 30px;
	z-index: 9999;
}

.featherlight .featherlight-image {
	max-width: 100%;
}

.featherlight iframe {
	border: 0;
}

[data-featherlight] {
	cursor: pointer;
}

.featherlight-iframe .featherlight-content {
	border-bottom: 0;
	padding: 0;
}

.featherlight-content .caption {
	color: #fff;
	font-size: 16px;
	font-weight: lighter;
	max-width: 100%;
	overflow: hidden;
	position: absolute;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.featherlight-content .caption:hover,
.featherlight-content .caption:focus {
	overflow: visible;
	white-space: normal;
}


/* Animated Loader
--------------------------------------------- */

@-webkit-keyframes featherlightLoader {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes featherlightLoader {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

.featherlight-loading .featherlight-content {
	-webkit-animation: featherlightLoader 1s infinite linear;
	animation: featherlightLoader 1s infinite linear;
	background: transparent;
	border: 3px solid #909090;
	border-left-color: #fff;
	font-size: 10px;
}

.featherlight-loading .featherlight-content,
.featherlight-loading .featherlight-content:after {
	-webkit-border-radius: 50%;
	border-radius: 50%;
	height: 4em;
	width: 4em;
}

.featherlight-loading .featherlight-close,
.featherlight-loading .featherlight-inner {
	display: none;
}


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

.featherlight-next,
.featherlight-previous {
	background-repeat: no-repeat;
	-webkit-background-size: 100% auto;
	background-size: 100% auto;
	cursor: pointer;
	display: block;
	height: 60px;
	margin-top: -30px;
	opacity: 0.4;
	overflow: hidden;
	position: fixed;
	top: 50%;
	text-indent: 100%;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	white-space: nowrap;
	width: 60px;
}

.featherlight-next span,
.featherlight-previous span {
	display: none;
}

.featherlight-next:hover,
.featherlight-next:focus,
.featherlight-previous:hover,
.featherlight-previous:focus {
	opacity: 1;
}

/* rtl:ignore */
.featherlight-next {
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M8.59%2016.59L13.17%2012%208.59%207.41%2010%206l6%206-6%206-1.41-1.41z%22/%3E%0A%3C/svg%3E");
	background-position: 0 0;
	right: 10px;
}

/* rtl:ignore */
.featherlight-previous {
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M15.41%207.41L10.83%2012l4.58%204.59L14%2018l-6-6%206-6%201.41%201.41z%22/%3E%0A%3C/svg%3E");
	background-position: -5px 0;
	left: 10px;
}

.featherlight-loading .featherlight-previous,
.featherlight-loading .featherlight-next {
	display: none;
}
