﻿/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
	padding: 0;
	margin: 0;
	border: 0;
	outline: none;
	vertical-align: top;
}

.fancybox-wrap {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 8020;
}

.fancybox-skin {
	position: relative;
	background: #f9f9f9;
	color: #444;
	text-shadow: none;
	-webkit-border-radius: 4px;
	   -moz-border-radius: 4px;
	        border-radius: 4px;
}

.fancybox-opened {
	z-index: 8030;
}

.fancybox-opened .fancybox-skin {
	-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	   -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fancybox-outer, .fancybox-inner {
	position: relative;
}

.fancybox-inner {
	overflow: hidden;
}

.fancybox-type-iframe .fancybox-inner {
	-webkit-overflow-scrolling: touch;
}

.fancybox-error {
	color: #444;
	font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
	margin: 0;
	padding: 15px;
	white-space: nowrap;
}

.fancybox-image, .fancybox-iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.fancybox-image {
	max-width: 100%;
	max-height: 100%;
}

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
	background-image: url('/interface/fancybox_sprite.png');
}

#fancybox-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -22px;
	margin-left: -22px;
	background-position: 0 -108px;
	opacity: 0.8;
	cursor: pointer;
	z-index: 8060;
}

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

.fancybox-close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	z-index: 8040;
}

.fancybox-nav {
	position: absolute;
	top: 0;
	width: 40px;
	height: 100%;
	cursor: pointer;
	text-decoration: none;
	background: transparent url('/interface/blank.gif'); /* helps IE */
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	z-index: 8040;
}

.fancybox-prev {
	left: 0;
}

.fancybox-next {
	right: 0;
}

.fancybox-nav span {
	position: absolute;
	top: 50%;
	width: 36px;
	height: 34px;
	margin-top: -18px;
	cursor: pointer;
	z-index: 8040;
	visibility: hidden;
}

.fancybox-prev span {
	left: 10px;
	background-position: 0 -36px;
}

.fancybox-next span {
	right: 10px;
	background-position: 0 -72px;
}

.fancybox-nav:hover span {
	visibility: visible;
}

.fancybox-tmp {
	position: absolute;
	top: -99999px;
	left: -99999px;
	visibility: hidden;
	max-width: 99999px;
	max-height: 99999px;
	overflow: visible !important;
}

/* Overlay helper */

.fancybox-lock {
    overflow: hidden !important;
    width: auto;
}

.fancybox-lock body {
    overflow: hidden !important;
}

.fancybox-lock-test {
    overflow-y: hidden !important;
}

.fancybox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	display: none;
	z-index: 8010;
	background: url('/interface/fancybox_overlay.png');
}

.fancybox-overlay-fixed {
	position: fixed;
	bottom: 0;
	right: 0;
}

.fancybox-lock .fancybox-overlay {
	overflow: auto;
	overflow-y: scroll;
}

/* Title helper */

.fancybox-title {
	visibility: hidden;
	font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
	position: relative;
	text-shadow: none;
	z-index: 8050;
}

.fancybox-opened .fancybox-title {
	visibility: visible;
}

.fancybox-title-float-wrap {
	position: absolute;
	bottom: 0;
	right: 50%;
	margin-bottom: -35px;
	z-index: 8050;
	text-align: center;
}

.fancybox-title-float-wrap .child {
	display: inline-block;
	margin-right: -100%;
	padding: 2px 20px;
	background: transparent; /* Fallback for web browsers that doesn't support RGBa */
	background: rgba(0, 0, 0, 0.8);
	-webkit-border-radius: 15px;
	   -moz-border-radius: 15px;
	        border-radius: 15px;
	text-shadow: 0 1px 2px #222;
	color: #FFF;
	font-weight: bold;
	line-height: 24px;
	white-space: nowrap;
}

.fancybox-title-outside-wrap {
	position: relative;
	margin-top: 10px;
	color: #fff;
}

.fancybox-title-inside-wrap {
	padding-top: 10px;
}

.fancybox-title-over-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	color: #fff;
	padding: 10px;
	background: #000;
	background: rgba(0, 0, 0, .8);
}

/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
	   only screen and (min--moz-device-pixel-ratio: 1.5),
	   only screen and (min-device-pixel-ratio: 1.5){

	#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
		background-image: url('/interface/fancybox_sprite2x.png');
		background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
	}

	#fancybox-loading div {
		background-image: url('/interface/fancybox_loading2x.gif');
		background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
	}
}


.gallery-holder * {
  box-sizing: border-box;
}

.gallery-holder:before, .gallery-holder:after {
  box-sizing: border-box;
}

html {
  font-family: 'Helvetica-Neue', sans-serif;
  padding-bottom: 30px;
}

.gallery-holder {
  border-top: none;
  padding: 20px 0;
}

#contentArea .gallery-holder.column-overflow {
  margin-right: -257px;
}
.gallery-holder:before, .gallery-holder:after {
  content: " ";
  display: table;
}
.gallery-holder:after {
  clear: both;
}
.gallery-holder {
  *zoom: 1;
}
.gallery-holder .tools {
  width: 50px;
  float: right;
  margin-top: -24px;
  margin-right: 5px;
  z-index: 1;
}
.gallery-holder .tools:before, .gallery-holder .tools:after {
  content: " ";
  display: table;
}
.gallery-holder .tools:after {
  clear: both;
}
.gallery-holder .tools {
  *zoom: 1;
}
.gallery-holder .tools .tool {
  float: left;
  border: 1px solid #eee;
  background: #eee;
  border-bottom: none;
  cursor: pointer;
}
.gallery-holder .tools .tool-active {
  background: #fff;
}
.gallery-holder .tools .tool:first-child { border-right: 0; }
.gallery-holder .tools .tool:hover {
  background: #f6f6f6;
}

#contentArea .gallery-holder h3 {
  margin-bottom: 10px;
}

.gallery {
  margin: 0;
  padding: 5px;
  width: 100%;
  border: 1px solid #eee;
}
.gallery li {
  list-style: none;
  position: relative;
}
.gallery li .title {
  pointer-events:none;
}

@media (min-width: 768px) {
  .grid.col-2 .gallery-item:nth-last-child(1):nth-child(1), .grid.col-2 .gallery-item:nth-last-child(1):nth-child(1) ~ .gallery-item { width: calc((100%/1) - 6px); }
  .grid.col-2 .gallery-item:nth-last-child(n+2):nth-child(1), .grid.col-2 .gallery-item:nth-last-child(n+2):nth-child(1) ~ .gallery-item { width: calc((100%/2) - 6px); }

  .grid.col-3 .gallery-item:nth-last-child(1):nth-child(1), .grid.col-3 .gallery-item:nth-last-child(1):nth-child(1) ~ .gallery-item { width: calc((100%/1) - 6px); }
  .grid.col-3 .gallery-item:nth-last-child(2):nth-child(1), .grid.col-3 .gallery-item:nth-last-child(2):nth-child(1) ~ .gallery-item { width: calc((100%/2) - 6px); }
  .grid.col-3 .gallery-item:nth-last-child(n+3):nth-child(1), .grid.col-3 .gallery-item:nth-last-child(n+3):nth-child(1) ~ .gallery-item { width: calc((100%/3) - 6px); }

  .grid.col-4 .gallery-item:nth-last-child(1):nth-child(1), .grid.col-4 .gallery-item:nth-last-child(1):nth-child(1) ~ .gallery-item { width: calc((100%/1) - 6px); }
  .grid.col-4 .gallery-item:nth-last-child(2):nth-child(1), .grid.col-4 .gallery-item:nth-last-child(2):nth-child(1) ~ .gallery-item { width: calc((100%/2) - 6px); }
  .grid.col-4 .gallery-item:nth-last-child(3):nth-child(1), .grid.col-4 .gallery-item:nth-last-child(3):nth-child(1) ~ .gallery-item { width: calc((100%/3) - 6px); }
  .grid.col-4 .gallery-item:nth-last-child(n+4):nth-child(1), .grid.col-4 .gallery-item:nth-last-child(n+4):nth-child(1) ~ .gallery-item { width: calc((100%/4) - 6px); }

  .grid.col-5 .gallery-item:nth-last-child(1):nth-child(1), .grid.col-5 .gallery-item:nth-last-child(1):nth-child(1) ~ .gallery-item { width: calc((100%/1) - 6px); }
  .grid.col-5 .gallery-item:nth-last-child(2):nth-child(1), .grid.col-5 .gallery-item:nth-last-child(2):nth-child(1) ~ .gallery-item { width: calc((100%/2) - 6px); }
  .grid.col-5 .gallery-item:nth-last-child(3):nth-child(1), .grid.col-5 .gallery-item:nth-last-child(3):nth-child(1) ~ .gallery-item { width: calc((100%/3) - 6px); }
  .grid.col-5 .gallery-item:nth-last-child(4):nth-child(1), .grid.col-5 .gallery-item:nth-last-child(4):nth-child(1) ~ .gallery-item { width: calc((100%/4) - 6px); }
  .grid.col-5 .gallery-item:nth-last-child(n+5):nth-child(1), .grid.col-5 .gallery-item:nth-last-child(n+4):nth-child(1) ~ .gallery-item { width: calc((100%/5) - 6px); }

  .grid.col-6 .gallery-item:nth-last-child(1):nth-child(1), .grid.col-6 .gallery-item:nth-last-child(1):nth-child(1) ~ .gallery-item { width: calc((100%/1) - 6px); }
  .grid.col-6 .gallery-item:nth-last-child(2):nth-child(1), .grid.col-6 .gallery-item:nth-last-child(2):nth-child(1) ~ .gallery-item { width: calc((100%/2) - 6px); }
  .grid.col-6 .gallery-item:nth-last-child(3):nth-child(1), .grid.col-6 .gallery-item:nth-last-child(3):nth-child(1) ~ .gallery-item { width: calc((100%/3) - 6px); }
  .grid.col-6 .gallery-item:nth-last-child(4):nth-child(1), .grid.col-6 .gallery-item:nth-last-child(4):nth-child(1) ~ .gallery-item { width: calc((100%/4) - 6px); }
  .grid.col-6 .gallery-item:nth-last-child(5):nth-child(1), .grid.col-6 .gallery-item:nth-last-child(5):nth-child(1) ~ .gallery-item { width: calc((100%/5) - 6px); }
  .grid.col-6 .gallery-item:nth-last-child(n+6):nth-child(1), .grid.col-6 .gallery-item:nth-last-child(n+6):nth-child(1) ~ .gallery-item { width: calc((100%/6) - 6px); }
}

.grid .gallery-item {
  display: block;
  float: left;
  margin: 3px;
}

.gallery.grid:before, .gallery.grid:after {
  content: " ";
  display: table;
}
.gallery.grid:after {
  clear: both;
}
.gallery.grid {
  *zoom: 1;
}

.gallery.grid li {
  background-size: cover;
  background-position: center,center;
	max-height: 130px;
	min-height:130px;
	padding:0;
    overflow:hidden;
}
.gallery.grid li a {
  display: block;
  position: relative;
  overflow: hidden;
}
.gallery.grid li a img {
  	opacity: 0;
  	height: auto;
  	min-width: 100%;
	width:100%;
}
.gallery.grid li .title {
  padding: 10px;
  font-weight: 700;
  display: block;
  position: absolute;
  font-size: 11px;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);
  bottom: -10px;
  opacity: 0;
  transition: all .25s ease-in-out;
  -moz-transition: all .25s ease-in-out;
  -webkit-transition: all .25s ease-in-out;
}
.gallery.grid li:hover .title {
  opacity: 1;
  bottom: 0;
}

.gallery.list li {
  	width: 100%;
  	height: 100px;
  	border-bottom: 1px solid #eee;
  	padding: 5px;
  	margin-bottom: 5px;
	background-size:130px auto;
	background-repeat:no-repeat;
	background-position:left,center;
}
.gallery.list li img {
  	height: 100%;
  	float: left;
  	margin-right: 5px;
	opacity:0;
    max-width: 120px;
    min-width: 120px;
}
.gallery.list li .title {
    height: auto;
    color: black;
    text-decoration: none;
    float: left;
    margin-left: 20px;
    width: 65%;
    width: calc(100% - 200px);
}
.gallery.list li:last-child {
  border: none;
}
.gallery.list li:hover {
  background-color: #eee;
}

.gallery.list li a {
  	display: block;
	height:100%;
	width:30%;
	float:left;
	max-width: 120px;
}
.fancybox-nav {
  height: 80% !important;
  margin-top: 5%;
  margin-bottom: 5%;
}
