.bildrahmen {
	width: 30.333%;
	height: auto;
	display: block;
	background: linear-gradient(to bottom, rgb(216, 216, 216), rgb(243, 243, 243),  rgb(216, 216, 216));
	border: 1px solid #ABABAB;
	border-radius: 10px;
	padding: 0.5%;
	cursor: pointer;
	margin: 1%;
	float: left;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

.bild {
    padding-bottom: 56.25%;
    display: block;
    height: inherit;
    background-size: 100% auto !important;
    background-position: center !important;
    border-radius: 5px;
}

#vorschau {
	display: none;
	position: fixed;
	background-attachment: scroll;
	top: 0;
	width: 100%;
	height: 100%;
	padding-bottom: 55px;
	padding-top: 55px;
	background: rgba(255,255,255,0.9);
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

#schliessen {
	display: block;
	position: relative;
	width: 300px;
	height: 80px;
	float: right;
	text-align: right;
	margin-top: -60px;
	font-size: 30px;
	padding-top: 20px;
	padding-bottom: 20px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	z-index: 5;
	cursor: pointer;
}

#schliessen:hover {
	text-decoration: underline;
}

#schliessen img {
	float: right;
	margin-left: 1em;
	margin-top: 5px;
	margin-right: 20px;
	width: auto;
	height: 30px;
}

#zurueck {
	display: block;
	height: 100%;
	width: 50%;
	background: url('../images/gallery/next.png');
	background-repeat: no-repeat;
	background-position: 95% 50%;
	background-size: 8% auto;
	left: 0;
	top: 0;
	position: absolute;
	transform: rotate(180deg);
	z-index: 2;
	cursor: pointer;
}

#zurueck:hover {
	background-size: 9% auto;
}

#vor {
	display: block;
	width: 50%;
	height: 100%;
	background: url('../images/gallery/next.png');
	background-repeat: no-repeat;
	background-position: 95% 50%;
	background-size: 8% auto;
	right: 0;
	top: 0;
	position: absolute;
	z-index: 2;
	cursor: pointer;
}

#vor:hover {
	background-size: 9% auto;
}

.betrachter {
	display: block;
	width: 80%;
	height: 100%;
	margin-left: 10%;
	margin-right: 10%;
	vertical-align: middle;
	background-repeat: no-repeat !important;
	background-position: center !important;
	position: absolute;
	top: 0;
}

.landscape {
	background-size: 100% auto !important;
}

.portrait {
	background-size: auto 85% !important;
}