/* --------------------------------------------- */
/* Author: http://codecanyon.net/user/CodingJack */
/* --------------------------------------------- */


/* ----------------------------------------------------------- */
/*                COLORS, FONTS and GRAPHICS                   */
/* ----------------------------------------------------------- */


/* adjust main modal background color and opacity here */
.jackbox-modal {
	
	font: 12px Arial, Helvetica, sans-serif;
	color: #666;
	line-height: 18px;
	background: rgba(0, 0, 0, 0.9);
	box-sizing: content-box;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	
}

/* headers for descriptions and custom html */
.jackbox-modal h2,
.jackbox-modal h3 {
	
	font: 24px "Mako", sans-serif;
	font-weight: normal;
	color: #444;
	
}

/* the item titles shown beneath the content */
.jackbox-title-text {
	
	font: 14px "Mako", sans-serif;
	color: #222;
	
}

/* small thumb tooltip container */
.jackbox-thumb-tip {
	
	background: rgba(0, 0, 0, 0.75);
	
}

/* small thumb tooltip text */
.jackbox-thumb-tip-text {

	text-transform: uppercase;
	color: #FFF;
	
}

/* item descriptions (info) background-color */
.jackbox-description-text {
	
	background-color: #FFF;
	text-align: left;
	
}

/* custom html's background-color and border */
.jackbox-html > div {
	
	background-color: #F5F5F5;
	border: 1px solid #E5E5E5;
	text-align: left;
	
}

/* main content container */
.jackbox-holder {
	background-color: transparent;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	
}

.jackbox-container {
	background: #000;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

/* large prev/next buttons located on the far sides of the modal */
.jackbox-panel,
.jackbox-button,
.jackbox-thumb-left,
.jackbox-thumb-right {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)" !important;
    filter: alpha(opacity=75) !important;
	opacity: 0.75 !important;
	
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	-ms-transition: opacity 0.4s;
	transition: opacity 0.4s;
}	


.jackbox-panel:hover,
.jackbox-button:hover,
.jackbox-thumb-left:hover,
.jackbox-thumb-right:hover {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;
    filter: alpha(opacity=100) !important;
	opacity: 1 !important;
}

.jackbox-social-toggle {
	position: absolute;
	display: none !important;
	top: 0px;
	left: 0px;
	background-position: -51px 0px;
}

/* large prev button */
.jackbox-panel-left {
	background-image: url(../img/graphics/panel_left.png);
}

/* large next button */
.jackbox-panel-right {
	background-image: url(../img/graphics/panel_right.png);	
}

/* prev, next, info, close and toggle-thumbs buttons */
.jackbox-button {
	width: 17px;
	height: 17px;
	background-repeat: no-repeat;
	background-image: url(../img/graphics/jackbox-sprite.png);
}

/* previous button */
.jackbox-arrow-left {
	background-position: 0px 0px;
}

/* next button */
.jackbox-arrow-right {
	background-position: -17px 0px;
}

/* info button */
.jackbox-info {
	background-position: -200px -200px;
	display: none;
}

/* show thumbnails (+) */
.jackbox-show-thumbs {
	background-position: -200px -200px;
	display: none;
}

/* hide thumbnails (-) */
.jackbox-hide-thumbs {
	background-position: -200px -200px;
	display: none;
}

/* close button */
.jackbox-close {
	background-position: -34px 0px;
}

/* fullscreen button */
.jackbox-fs {
	background-position: -68px 0px;
}

.jackbox-ns {
	background-position: -85px 0px;
}

/* thumb strip background color and opacity */
.jackbox-thumb-panel {
	
}

/* the thumb panel's left arrow */
.jackbox-thumb-left {
	background-position: 0px 0px;
	margin: -9px 0 0 -27px;
	width: 17px;
	height: 17px;
	background-repeat: no-repeat;
	background-image: url(../img/graphics/jackbox-sprite.png);
}

/* the thumb panel's right arrow */
.jackbox-thumb-right {
	background-position: -17px 0px;
	margin: -9px 0 0 15px;
	width: 17px;
	height: 17px;
	background-repeat: no-repeat;
	background-image: url(../img/graphics/jackbox-sprite.png);
}

.jackbox-pre-outside {
	padding: 5px;
}

/* graphic placed inside preloader to create gradient effect */
.jackbox-pre-inside {
	background: url(../../images/ajax-white.gif) no-repeat center; /* fallback gif preloader */
}

@media 
  (min--moz-device-pixel-ratio: 2),
  (-o-min-device-pixel-ratio: 2/1), 
  (-webkit-min-device-pixel-ratio: 2), 
  (min-device-pixel-ratio: 2) {
		.jackbox-pre-inside {
		    background-image: url("../../images/retina/ajax-white@2.gif");
		    background-size: 16px 16px;
		}
}


/* ----------------------------------------------------------- */
/*                   LAYOUT and POSITIONING                    */
/* ----------------------------------------------------------- */

/* This is necessary for the hover effects to work */
.jackbox {

	position: relative;
	display: inline-block;
	
}

/* the main modal */
.jackbox-modal {

	position: fixed;
	left: 0;
	top: 0;
	
	width: 100%;
	height: 100%;
	
	display: none;
	z-index: 9999;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	
}

/* h2 header spacing for custom html */
.jackbox-modal h2 {
	
	margin: 0 0 12px -2px;
	
}

/* h3 header spacing for descrptions/info */
.jackbox-modal h3 {
	
	margin: 0 0 8px -2px;
	
}

/* custom html unordered list */
.jackbox-modal ul {

	margin: 0;
	padding: 0;
	
}

/* custom html unordered list items */
.jackbox-modal li {

	margin: 0 0 10px 0;
	padding: 0;
	
}

/* normalize custom html padding */
.jackbox-modal li:last-child {

	margin-bottom: -10px;
	
}

/* custom html content container */
.jackbox-html > div {
	
	padding: 16px 20px 16px 20px;
	box-sizing: border-box;

}

/* custom html content paragraphs */
.jackbox-html > div p {
	
	margin: 5px 0 0 0;
	color: #808080;
	
}

/* the title text container */
.jackbox-title-text {
	
	position: absolute;
	left: 0px;
	top: 7px;
	color: #CECECE;
	text-transform: uppercase;
	width: 100%;
	overflow: hidden;
	text-align: center;
	white-space: nowrap;
	z-index: 0;
	
}

/* description text container */
.jackbox-info-text {
	
	display: inline-block;
	overflow-y: auto;
	z-index: 999;
	width: 100%;
	
	position: absolute;
	top: 0;
	left: 0;
	
}

/* description text inner container */
.jackbox-description-text {
	
	padding: 14px 17px 19px 17px;
	
}

/* hide content initially */
.jackbox-html,
.jackbox-wrapper,
.jackbox-content,
.jackbox-description,
.jackbox-hidden-items {

	display: none;
	
}

/* Allow overflow for html divs */
.jackbox-html {

	overflow-y: auto;
	
}

/* https://developer.mozilla.org/en-US/docs/CSS/Image-rendering */
.jackbox-modal img {

	image-rendering: optimizeQuality;
	
}

/* the main content container */
.jackbox-holder {
	
	position: absolute;
	left: 50%;
	top: 50%;
	
	width: 100%;
	height: 100%;
	overflow: hidden;
	
	opacity: 0;
	padding: 33px 6px 34px 6px;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	
}

/* the main media container */
.jackbox-container {
	
	width: 100%;
	height: 100%;
	
	position: relative;
	overflow: hidden;
	
	z-index: 0;
	text-align: center;

}

/* gets applied to the media itself (image/iframe) */
.jackbox-content {
	
	margin: 0 auto;
		
}

/* when non-native fullscreen video is activated, gets applied to html/body tags */
.jackbox-overflow {
	
	overflow: hidden !important;
	
}

/* main thumbstrip container */
.jackbox-thumb-holder {
	
	position: absolute;
	width: 100%;
	bottom: 0;
	left: 0;
	
}

/* inner thumbstrip container */
.jackbox-thumb-panel {
	
	position: absolute;
	left: 50%;
	
	overflow: hidden;
	white-space: nowrap;
	padding: 2px 2px 0 2px;
	
}

/* final thumbstrip container */
.jackbox-thumb-strip {
	
	position: relative;
	
}

/* thumbnail container */
.jackbox-thumb {
	
	overflow: hidden;
	position: absolute;
	top: 0;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	background: #000000 url(../../images/ajax-white.gif) no-repeat center;
}

@media 
  (min--moz-device-pixel-ratio: 2),
  (-o-min-device-pixel-ratio: 2/1), 
  (-webkit-min-device-pixel-ratio: 2), 
  (min-device-pixel-ratio: 2) {
		.jackbox-thumb {
		    background-image: url("../..images/retina/ajax-white@2.gif");
		    background-size: 16px 16px;
		}
}

.jackbox-thumb.jb-thumb-loaded { 
	background: #000000;
}

.jackbox-thumb-inner {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(255,255,255,0.1);
	z-index: 1;
	cursor: pointer;
}

.jackbox-content-image-border {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(255,255,255,0.1);
	z-index: 1;
}		

/* thumbnail image */
.jackbox-thumb img {
	
	cursor: pointer;
	
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
	opacity: 0;
	
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	-ms-transition: opacity 0.4s;
	transition: opacity 0.4s;
	
}

/* gets added when the thumbnail loads */
.jb-thumb-fadein img {
	
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: alpha(opacity=50);
	opacity: 0.5;
	
}

/* thumbnail mouse over */
.jackbox-thumb:hover img {
	
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    filter: alpha(opacity=75);
	opacity: 0.75;
	
}

/* gets applied to an active thumb item */
.jb-thumb-active img {
	
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
	opacity: 1;
	
}

/* removes the pointer cursor for an active thumbnail */
.jb-thumb-active img {
	
	cursor: auto;
	
}

/* the thumbstrip arrows */
.jackbox-thumb-left,
.jackbox-thumb-right {
	
	cursor: pointer;
	position: absolute;
	display: none;
	
}

/* the content header */
.jackbox-top {
	
	position: absolute;
	top: 7px;
	left: 5px;
	
}

/* cross-browser fix for background */
.jackbox-top:after {
	
	content: "";
	position: absolute;
	top: 26px;
	left: 1px;
	width: 100%;
	height: 1px;
	background-color: transparent;
	display: block;
	z-index: 999;
	
}

/* the content footer */
.jackbox-bottom {
	
	position: relative;
	white-space: nowrap;
	z-index: 99;
	
}

/* the social widget */
.jackbox-social {
	position: absolute;
	top: -2px;
	left: 0px;
}

/* the header's button container (the close button) */
.jackbox-top-icons {
	
	position: absolute;
	right: -1px;
	
}

/* the footer's button container */
.jackbox-bottom-icons {
	
	position: absolute;
	right: 0px;
	top: 7px;
	
}

/* the prev/next button container */
.jackbox-controls {
	
	position: absolute;
	left: 0;
	top: 7px;
	z-index: 1;
	
}

/* gets applied to header/footer buttons */
.jackbox-button {
	
	cursor: pointer;
	display: inline-block;
	
}

/* the next item button */
.jackbox-arrow-right {
	
	margin-left: 6px;
	
}

/* show/hide, fullscreen/normalscreen buttons */
.jackbox-button-margin {

	margin-left: 6px;
	
}

/* toggle the fullscreen buttons while in fullscreen */
:-webkit-full-screen .jackbox-fs {
	
	display: none !important; 
  
}

/* toggle the fullscreen buttons while in fullscreen */
:-moz-full-screen .jackbox-fs {

	display: none !important; 
	
}

/* toggle the fullscreen buttons while in fullscreen */
:-webkit-full-screen .jackbox-ns {
	
	display: inline-block !important; 
  
}

:-moz-full-screen .jackbox-ns {

	display: inline-block !important; 
	
}

/* large prev/next buttons located on the far sides of the modal */
.jackbox-panel {
	display: block;
	cursor: pointer;
	visibility: hidden;
	
	background-position: center center;
	background-repeat: no-repeat;
	
	width: 58px;
	height: 100%;
	
	position: absolute;
	top: 0;
}

/* large prev button */
.jackbox-panel-left {

	left: 0;
	
}

/* large next button */
.jackbox-panel-right {

	right: 0;
	
}

/* the main preloader container */
.jackbox-preloader {
	
	position: fixed;
	left: 50%;
	top: 50%;
	visibility: hidden;
	
	width: 20px;
	height: 20px;
		
	margin: -15px 0 0 -15px;
	z-index: 9999;
	
}

/* only gets added when the preloader is shown */
.jackbox-spin-preloader {
	visibility: visible;
}

.jackbox-pre-outside {
	width: 20px;
	height: 20px;
	
	display: inline-block;
	position: relative;
	
	top: -25%;
	left: -25%;
}

.jackbox-pre-inside {
	width: 20px;
	height: 20px;
	
	display: inline-block;
	position: absolute;
	top: 5px;
	left: 5px;
}

/* small thumb tooltip container */
.jackbox-thumb-tip {
	
	display: block;
	position: fixed;
	overflow: hidden;
	
	opacity: 0;
	z-index: 9999;
	visibility: hidden;
	pointer-events: none;
	padding: 5px 10px 5px 10px;
	
	-webkit-transition: all 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	-moz-transition: all 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	-o-transition: all 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	-ms-transition: all 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	transition: all 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	
}

/* small thumb tooltip text */
.jackbox-thumb-tip-text {

	white-space: nowrap;
	display: inline-block;
	text-transform: uppercase;
	
	-webkit-transition: width 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	-moz-transition: width 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	-o-transition: width 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	-ms-transition: width 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	transition: width 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000);
	
}



  .jackbox-controls {
		display: none;
  }
  
  .jackbox-button-thumbs {
     display: none !important;
  }	

/* ----------------------------------------------------------- */
/*                         SMARTPHONE                          */
/* ----------------------------------------------------------- */

@media screen and (max-width: 768px) {
	
	.jackbox-panel,
	.jackbox-thumb-holder {
		
		display: none !important;
		
	}
	
	.jackbox-show-thumbs,
	.jackbox-hide-thumbs {
	
		width: 0;
		margin-left: 0;
		overflow: hidden;
		
	}
	
	.jackbox-controls {
		display: block;
	}	
	
}

/* ----------------------------------------------------------- */
/*                        RETINA ICONS                         */
/* ----------------------------------------------------------- */

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) { 
	
	/* previous button */
	.jackbox-arrow-left,
	.jackbox-arrow-right,
	.jackbox-close,
	.jackbox-fs,
	.jackbox-ns,
	.jackbox-thumb-left,
	.jackbox-thumb-right,
	.jackbox-social-toggle   {
		background-image: url(../img/graphics/retina/jackbox-sprite.png);
		background-size: 102px 17px;
	}
	
	/* large prev button */
	.jackbox-panel-left {
		background-image: url(../img/graphics/retina/panel_left.png);
		background-size: 30px 50px;
	}
	
	/* large next button */
	.jackbox-panel-right {
		background-image: url(../img/graphics/retina/panel_right.png);	
		background-size: 30px 50px;
	}


}