/* Original Slider: http://cssapps.de/foto-gal/fgal_css3_slide-left.html#1 */

/* ---------------------------------------------------------- */
/* Bildergalerie                                              */
/* ---------------------------------------------------------- */
/* gallery_container */
#gallery_container {
  width: auto;
  height: auto;
  margin: 20px 0 450px 0 ; /* 450px für absolut pos. #window */
  padding: 8px;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 10px #000 inset;
  border: 1px solid transparent;
}

/* thumb-gallery */
#gallery_thumbs {
  position: relative; /* für #window - Ausrichtung */
  width: auto;
  height: 224px;
  border-radius: 5px;
  }

#gallery_thumbs a {
   /* für Animation "shine" */
  display: block;
  float: left;
  width: 160px; /* + 2x 5px für :hover */
  height: 110px; /* + 2x 5px für :hover*/
  background: #ddd;
  border: 1px solid #444;
  border-radius: 5px;
  outline:none;
}
#gallery_thumbs a img {
  float: left;
  width: 158px; /* |info| 150px */
  height: 108px; /* |info| 100px --- mittig zentrieren in #gallery_thumbs a */
  /* |info| wg. Umstellung auf box-modell Werte geändert */
  padding: 5px 5px; /* vertikal zentrieren in #gallery_thumbs a */
}

#gallery_thumbs a:focus{background:#afa;box-shadow:0 0 10px #000 inset;}
#gallery_thumbs a:hover:not(:focus) {background:#666;box-shadow:0 0 10px #fff inset;}
/* für zukünftigen hover-Effekt */
#gallery_thumbs a:hover {
  background: blue !important;
}

/* Cinema - Pinguin */
#gallery_thumbs img.Cinema_Pinguin {
  position: absolute;
  top: 470px;
  right: 0;
  display: none;
}
/* Cinema - Stuhl */
#gallery_thumbs img.Cinema_Stuhl {
  position: absolute;
  top: 470px;
  left: 0;
  z-index: 2;
  display: none;
}
/* Cinema - Projektor */
#gallery_thumbs img.Cinema_Projektor {
  position: absolute;
  top: 400px;
  left: 0;
  z-index: 1;
  display: none;
}



/* große Bilder */
#window {
  display: block;
  position: absolute;
  top: 250px; /* Anordnung unterhalb von #gallery_thumbs */
  left: 0px; /* zentrieren bei max. Bildschirmbreite */
  width: 510px; /* orig 410px */
  height: 343px; /* orig 330px */
  overflow: hidden;
  border: 5px solid black;
  border-bottom: 7px solid black;
  box-shadow: 5px 5px 5px gray;
}
/* individueller background: Finchen */
div.Finchen {
  background-image: url(../Bilder/Pages/Bei-uns-zu-Gast/Bildergalerie-Einzelvogel/galerie-hintergrund-Finchen-520x352-min.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}
div.Kruemel {
  background-image: url(../Bilder/Pages/Bei-uns-zu-Gast/Bildergalerie-Einzelvogel/galerie-hintergrund-Kruemel-520x352-min.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}
div.Bella {
  background-image: url(../Bilder/Pages/Bei-uns-zu-Gast/Bildergalerie-Einzelvogel/galerie-hintergrund-Bella-520x352-min.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}
div.Hannes {
  background-image: url(../Bilder/Pages/Bei-uns-zu-Gast/Bildergalerie-Einzelvogel/galerie-hintergrund-Hannes-520x352-min.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

#window div {
  position: absolute;
  display: block;
  left: 570px; /* orig 450px | innerhalb des Galerie-Fensters */
  width: 500px; /* orig 400px | korreliert mit "left" */
  background: #000;
  opacity: 0;
  -webkit-animation:over_out 2s;
  -moz-animation:over_out 2s;
  -ms-animation:over_out 2s;
  -o-animation:over_out 2s;
  animation:over_out 2s;
  -webkit-transition:opacity 1s;
  -moz-transition:opacity 1s;
  -ms-transition:opacity 1s;
  -o-transition:opacity 1s;
  transition:opacity 1s;
  border: 5px solid black;
  box-shadow: 0 15px 25px -15px rgba(0,0,0,1);

}

#window div img.ls{
  display: block;
  width: 500px; /* orig 400px */
}
/*
#window div img.pt{
  display:block;
  height:300px;
  margin:0 auto;
}*/

a#pic0:focus ~ #window div#p0,
a#pic1:focus ~ #window div#p1,
a#pic2:focus ~ #window div#p2,
a#pic3:focus ~ #window div#p3,
a#pic4:focus ~ #window div#p4,
a#pic5:focus ~ #window div#p5,
a#pic6:focus ~ #window div#p6,
a#pic7:focus ~ #window div#p7,
a#pic8:focus ~ #window div#p8,
a#pic9:focus ~ #window div#p9
{
left: 0px;
  -webkit-animation:over 2s;
  -moz-animation:over 2s;
  -ms-animation:over 2s;
  -o-animation:over 2s;
  animation:over 2s;
}

a:focus ~ #window div {opacity:1;}

/*    -moz     */
@-moz-keyframes over{
0%   {left:570px; box-shadow:0 0 0 0 #fff;}
70%  {box-shadow: 0 0 0 0 #fff;}
100% {left:0px; box-shadow:0 15px 25px -15px rgba(0,0,0,1);}
}

@-moz-keyframes over_out{
0%    {left:0px;}
10%   {box-shadow:0 0 0 0 #fff;}
90%   {box-shadow:0 0 0 0 #fff;}
100%  {left:-570px;}
}

/*   -webkit-     */
@-webkit-keyframes over{
0% {left:570px;box-shadow:0 0 0 0 #fff;}
70%{box-shadow:0 0 0 0 #fff;}
100% {left:0px;box-shadow:0 15px 25px -15px rgba(0,0,0,1);}
}

@-webkit-keyframes over_out{
0%    {left:0px;}
10%   {box-shadow:0 0 0 0 #fff;}
90%   {box-shadow:0 0 0 0 #fff;}
100%  {left:-570px;}
}

/*   -o-     */
@-o-keyframes over{
0% {left:570px;box-shadow:0 0 0 0 #fff;}
70%{box-shadow:0 0 0 0 #fff;}
100% {left:0px;box-shadow:0 15px 25px -15px rgba(0,0,0,1);}
}

@-o-keyframes over_out{
0%    {left:0px;}
10%   {box-shadow:0 0 0 0 #fff;}
90%   {box-shadow:0 0 0 0 #fff;}
100%  {left:-570px;}
}

/*   -ms-     */
@-o-keyframes over{
0% {left:570px;box-shadow:0 0 0 0 #fff;}
70%{box-shadow:0 0 0 0 #fff;}
100% {left:0px;box-shadow:0 15px 25px -15px rgba(0,0,0,1);}
}

@-o-keyframes over_out{
0%    {left:0px;}
10%   {box-shadow:0 0 0 0 #fff;}
90%   {box-shadow:0 0 0 0 #fff;}
100%  {left:-570px;}
}

/* ------------- */
@keyframes over{
0% {left:570px;box-shadow:0 0 0 0 #fff;}
70%{box-shadow:0 0 0 0 #fff;}
100% {left:0px;box-shadow:0 15px 25px -15px rgba(0,0,0,1);}
}

@keyframes over_out{
0%    {left:0px;}
10%   {box-shadow:0 0 0 0 #fff;}
90%   {box-shadow:0 0 0 0 #fff;}
100%  {left:-570px;}
}

/* ------------------------------------------------------- */
/* jQuery Elemente definieren                              */
/* ------------------------------------------------------- */
img.curtain-left {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
img.curtain-right {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
}


/* ------------------------------------------------------- */
/* Animation "shine" bei #gallery_thumbs:hover             */
/* ------------------------------------------------------- */
#gallery_thumbs figure {
  position: relative;
  width: 160px;
	height: 110px;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

#gallery_thumbs figure::before {
	position: absolute;
	top: 0;
	left: -120%;
	z-index: 10;
	display: block;
	content: '';
	width: 160px;
	height: 110px;
	background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	-webkit-transform: skewX(-25deg);
	transform: skewX(-25deg);
}
#gallery_thumbs figure:hover::before {
	-webkit-animation: shine .75s;
	animation: shine .75s;
}
@-webkit-keyframes shine {
	100% {
		left: 125%;
	}
}
@keyframes shine {
	100% {
		left: 125%;
	}
}


/* ------------------------------------------------------- */
/* Media Query                                             */
/* ------------------------------------------------------- */
  /* Cinema - Pinguin */
/*@media screen and (max-width: 1024px) {
  #gallery_thumbs img.Cinema_Pinguin {
    display: none;
  }
}*/

@media only screen and (max-width: 37.5em) {
  #window { display: none; }

  #gallery_thumbs a {
    width: 98%;
    height: auto;
    margin-bottom: 15px;
    cursor: default;
  }

  #gallery_thumbs a:last-of-type {
    margin-bottom: 75px;
  }

  #gallery_thumbs img,
  #gallery_thumbs figure {
    width: 100% !important;
    height: auto !important;
  }

  #gallery_thumbs figure::before {
    display: none;
  }

  #gallery_container {
    box-shadow: none;
    background: none;
  }

}
