#gallery-container {
  font-size: 20px;
  margin: 0 auto;
  position: relative;
  width: 100% !important;
  text-align: center;
  overflow: hidden; 
}

#gallery-container:full-screen {
  max-width: 100% !important;
  width: 100%;
  height: 100% !important;
  overflow-y: auto !important;
  background-color: #8BD0CD
}

#gallery-container:-webkit-full-screen {
  max-width: 100% !important;
  width: 100%;
  height: 100% !important;
  overflow-y: auto !important;
  background-color: #8BD0CD
}

#gallery-container:-moz-full-screen {
  max-width: 100% !important;
  width: 100%;
  height: 100% !important;
  overflow-y: auto !important;
  background-color: #8BD0CD
}

#gallery-container:-ms-fullscreen {
  max-width: 100% !important;
  width: 100%;
  height: 100% !important;
  overflow-y: auto !important;
  background-color: #8BD0CD
}


#gallery-container:full-screen .controls,
#gallery-container:-webkit-full-screen .controls,
#gallery-container:-moz-full-screen .controls,
#gallery-container:-ms-fullscreen .controls
{
	top: 0.6em !important; /*Top spacing*/
}

.controls {
  text-align: center;
  font-size: 1em;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity .3s ease;
  transition: opacity .3s ease;
  position: absolute;
  top: 0; /*Top spacing*/
  left: 0;
  right: 0;
  z-index: 1000;
  margin-left: 1.6em; /* Centring control fix */
}

.control,
.grid,
.fs-toggle {
  width: .66em;
  height: .66em;
  text-align: center;
  line-height: .5em;
  cursor: pointer;
  display: inline-block;
  margin-right: 30px;
}

.showControls {
  opacity: 1;
  pointer-events: auto;
  -webkit-transition: opacity .6s 1s ease;
  transition: opacity .6s 1s ease
}

.hideControls {
  opacity: 0;
  pointer-events: none
}

.icon-grid,
.icon-arrow-left,
.icon-arrow-right,
.icon-fullscreen-exit,
.icon-fullscreen {
  display:inline-block;
  width: 20px;
  height: 20px;
  background-image: url(controls-light2.png);
  background-repeat: no-repeat;
  z-index: 1000;
}

.icon-grid {
  background-position: 0 0
}

.icon-arrow-left {
  background-position: -40px 0
}

.icon-arrow-right {
  background-position: -80px 0
}

.icon-fullscreen-exit {
  background-position: -120px 0
}

.icon-fullscreen {
  background-position: -160px 0
}
.fs-toggle {
  display: none;
}

#gallery-container ul,li
{
	list-style-type: none;
	list-style: none;
    list-style-position: inside;
    margin: 0;
    padding: 0;
}

.item {
	display: inline-block;
	cursor: pointer;
	width: 24%;
	height: auto;  
	margin: 0.5% 0.2% 0.5% 0.2%; 
	text-align: center;

	transition: all 150ms ease-in-out;
		-webkit-transition: all 150ms ease-in-out;
		-moz-transition: all 150ms ease-in-out;
		-ms-transition: all 150ms ease-in-out;
		-o-transition: all 150ms ease-in-out;
		
	filter: grayscale(80%);
		-webkit-filter: grayscale(80%); /* Chrome, Safari, Opera */
	
	overflow: hidden !important;
}

.items--small
{	
	margin: 0 auto;
	text-align: center;
}

@media screen and (max-width: 40em)
{
	.item
	{
		display: block;
		width: 96%;
		height: auto;		
		left: 2%;
		right: 2%;			
		margin: 1% auto;
		text-align: center;
	}
	.img-caption
	{
		display: none;
	}
}
.item:hover
{
	transition: all 150ms ease-in-out;
		-webkit-transition: all 150ms ease-in-out;
		-moz-transition: all 150ms ease-in-out;
		-ms-transition: all 150ms ease-in-out;
		-o-transition: all 150ms ease-in-out;
	
	box-shadow: 0 0 8px 0 rgba(0,0,0,0.9);
		-webkit-box-shadow: 0 0 8px 0 rgba(0,0,0,0.9);

	filter: grayscale(0%);
		-webkit-filter: grayscale(0%); /* Chrome, Safari, Opera */
		
	overflow: hidden !important;
}

.item img
{
	transition: all 200ms ease-in-out;
		-webkit-transition: all 200ms ease-in-out;
		-moz-transition: all 200ms ease-in-out;
		-ms-transition: all 200ms ease-in-out;
		-o-transition: all 200ms ease-in-out;
}

.item:hover img {
	transition: all 200ms ease-in-out;
		-webkit-transition: all 200ms ease-in-out;
		-moz-transition: all 200ms ease-in-out;
		-ms-transition: all 200ms ease-in-out;
		-o-transition: all 200ms ease-in-out;
	
	transform: scale(1.15) rotate(5deg);
		-moz-transform: scale(1.15) rotate(5deg);
		-webkit-transform: scale(1.15) rotate(5deg);
		
	overflow: hidden !important;
}

.item img,
.item--big img
{
  width: 100%;
  display:block;
}

.video-Wrapper
{
	min-width: 100% !important; 
    min-height: 100% !important;
	height: 100%;
    width: 100%;
	position: relative;
}

.video-Wrapper video
{ 
	position:absolute;
    top:0;
    left:0;
	width: 100%    !important;
	height: auto   !important;
	display:block;
 
}

.items--big {
	position: absolute;
	top: 2em;
	left: 0;
	right:0;
	width: 100%;
	height: 100%;
	pointer-events: none;	
}

.item--big {
  position: absolute;
  width: 80%;  
  height: auto;
  left: 10%;
  right: 10%;
  top: 1%; /* 3em */  
  opacity: 0;
  
  transform: scale(.8);
 	-webkit-transform: scale(.8);
  	-webkit-box-shadow: 0 0 20px 0 #000000;
  box-shadow: 0 0 20px 0 #000000;
}
.item--big .img-caption{
  
  margin: 0;
  list-style: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;    
  position:absolute;
  width:100%;  
  bottom:0;
  left:0;
  right:0;
  background-color: rgba(0,0,0,0.6);
  color:white;
  padding:10px;
  font-size:.8em;
  text-align:center;
  
}

/* More Navigation inside Picture */
@import url(fonts/fontAwesome.otf);

.item--big .img-caption-Left
{	
	margin: 0;	
	list-style: none;
	-moz-box-sizing: border-box;
	box-sizing: border-box;    
	position:absolute;
	width:10%;  
	height: 100%;
	left:0;
	background-color: transparant;
	z-index: 1001;	
}

.item--big .img-caption-Right
{	
	margin: 0;	
	list-style: none;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	position:absolute;
	width:10%;  
	height: 100%;
	right:0;
	background-color: transparant;	
	z-index: 1001;	
}

.item--big .control 
{		
	text-align: center;
	vertical-align: middle;	
	height: 92%;
	top: 0;
	line-height: inherit;
	z-index: 1001;
}

.item--big .img-caption-Left:after
{		
	display: block;
	position: absolute;
	width: 100%;		
	bottom: 50% !important;
	font-family: FontAwesome;
	content: '\f137';
	color: #FFFFFF;
	opacity: 0.2;	
	font-size: 1.2em;
	text-align:center !important;
	text-shadow: 0 0 5px #000000;
	
	-webkit-transition: all 150ms ease-in-out;
	-moz-transition: all 150ms ease-in-out;
	-ms-transition: all 150ms ease-in-out;
	-o-transition: all 150ms ease-in-out;
	transition: all 150ms ease-in-out;
}

.item--big .img-caption-Right:after
{	
	display: block;
	position: absolute;
	width: 100%;		
	bottom: 50% !important;
	font-family: FontAwesome;
	content: '\f138';
	color: #FFFFFF;	
	opacity: 0.2;
	font-size: 1.2em;
	text-align:center !important;
	text-shadow: 0 0 5px #000000;
		
	-webkit-transition: all 150ms ease-in-out;
	-moz-transition: all 150ms ease-in-out;
	-ms-transition: all 150ms ease-in-out;
	-o-transition: all 150ms ease-in-out;
	transition: all 150ms ease-in-out;
	
}

.item--big .img-caption-Left:hover:after,
.item--big .img-caption-Right:hover:after
{		
	font-size: 1.6em;
	opacity: 1;
	text-shadow: 0 0 8px #000000; 
	-webkit-transition: all 250ms ease-in-out;
	-moz-transition: all 250ms ease-in-out;
	-ms-transition: all 250ms ease-in-out;
	-o-transition: all 250ms ease-in-out;
	transition: all 250ms ease-in-out;
}

@media screen and (max-width: 40em)
{
	.item--big .img-caption-Left,
	.item--big .img-caption-Right
	{
		display: none;
	}
}

/****************************************************************************/

.fadeInScaleUp {
  -webkit-animation: fadeInScaleUp .3s ease-out .3s forwards;
  animation: fadeInScaleUp .3s ease-out .3s forwards;
  z-index: 3
}

.fadeOut {
  -webkit-animation: fadeOut .4s ease-out forwards;
  animation: fadeOut .4s ease-out forwards;
  z-index: 1
}

@keyframes fadeOut {
  from {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  to {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  to {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

@keyframes fadeInScaleUp {
  from {
    opacity: 0;
    -webkit-transform: scale(.8);
    transform: scale(.8)
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

@-webkit-keyframes fadeInScaleUp {
  from {
    opacity: 0;
    -webkit-transform: scale(.8);
    transform: scale(.8)
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

.scaleDownFadeOut {
  -webkit-animation: scaleDownFadeOut .3s ease-in forwards;
  animation: scaleDownFadeOut .3s ease-in forwards;
  pointer-events: none
}

@keyframes scaleDownFadeOut {
  0% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  99% {
    opacity: 0;
    -webkit-transform: scale(.5);
    transform: scale(.5)
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

@-webkit-keyframes scaleDownFadeOut {
  0% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  99% {
    opacity: 0;
    -webkit-transform: scale(.5);
    transform: scale(.5)
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

.scaleUpFadeIn {
  opacity: 0;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-animation: scaleUpFadeIn ease-in-out .4s forwards;
  animation: scaleUpFadeIn ease-in-out .4s forwards;
  -webkit-animation-duration: .4s;
  animation-duration: .4s
}

@keyframes scaleUpFadeIn {
  0% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  1% {
    opacity: 0;
    -webkit-transform: scale(.5);
    transform: scale(.5)
  }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

@-webkit-keyframes scaleUpFadeIn {
  0% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  1% {
    opacity: 0;
    -webkit-transform: scale(.5);
    transform: scale(.5)
  }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

.showLastSecond {
  opacity: 0;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-animation: showLastSecond ease-in-out .4s forwards;
  animation: showLastSecond ease-in-out .4s forwards;
  -webkit-animation-duration: .4s;
  animation-duration: .4s
}

@keyframes showLastSecond {
  0% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  1% {
    opacity: 0;
    -webkit-transform: scale(.5);
    transform: scale(.5)
  }

  99% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

@-webkit-keyframes showLastSecond {
  0% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  1% {
    opacity: 0;
    -webkit-transform: scale(.5);
    transform: scale(.5)
  }

  99% {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1)
  }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

@media screen and (max-width: 30em) {
  .item--big {
    width: 80%;
    right: 10%;
    left: 10%
  }
}
