/* https://wiki.selfhtml.org/wiki/HTML/Tutorials/Bilder_im_Internet/Bilder_pr%C3%A4sentieren */


@import url(https://fonts.googleapis.com/css?family=Reenie+Beanie);

#galerie {
	box-sizing: border-box;
	background-size: 58px 58px;
	background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
	padding: 4em 6em;
} /* weitere Muster mit linear-gradient unter: http://lea.verou.me/css3patterns/   */

#galerie figure {
	background: #FFF;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	display: inline-block;
	height: 15em;
	margin: 0 0 1em 2em;
	overflow: hidden;
	padding: 0;
	width: 15em;
	transition: all 0.25s ease-in;
}

#galerie figure img {
	min-width: 15em;
	max-height: 15em;
}

#galerie figure:hover,
#galerie figure:focus  {
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
	margin: -1em 0px 0 20px;
	padding: 5px 5px 40px 5px;
	width: 15em;
	z-index: 2;
	transform: scale(2);
}

#galerie figcaption {
	color: #333;
	font: cursive 16px;
	font-family: "Reenie Beanie", cursive;
	position:relative;
	text-align: center;
	width: 15em;
}

#galerie figure:nth-child(3n-2):hover,
#galerie figure:nth-child(3n-2):focus  {
	transform: scale(2)  rotate(-2.5deg);
}

#galerie figure:nth-child(5n):hover,
#galerie figure:nth-child(5n):focus {
	transform: scale(2)  rotate(2.5deg);
}

#galerie:after {
	clear: both;
	content: " ";
	display: block;
}

@media only screen and (max-width: 75em) {
	body{
		width: 100%;
		margin: 2% 0;
		padding: 5%;
	}

	#galerie {
		width: 850px;
		margin: 100px auto;
	}
}

@media only screen and (max-width: 50em) {
	#galerie {
		width: 100%;
		margin: 100px auto;
	}
}
