/* Grunddefinitionen */


#galerie2 {
	box-sizing: border-box;
	background-color: green;
	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/   */

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

#galerie2 figure img {
	width: 14em;
	height: 25em;
}

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

#galerie2 figcaption {
	color: #333;
	font: cursive 10px/150%;
	font-family: "Reenie Beanie", cursive;
	position: relative;
	text-align: center;
	width: 14em;
}

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

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

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

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

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