.gallery {
	margin-bottom: 0;
}

.gallery .images .image {
  position: relative;
  width: auto;
  height: 450px;
  overflow: hidden;
  display: none;
  border: 1px solid #41a62a;
}

.gallery .images .image.active {
  display: block;
}

.gallery .images .image .content {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.gallery .images .image .legende {
	display: none;
}

.gallery .images .image .legende p {
	margin-bottom: 0;
	line-height: 1.1;
	max-width: 95%;
}

.gallery .images .image .legende p .image-description {
	font-weight: 300;
}

.gallery .images .image .number {
	position: absolute;
	bottom: -1px;
	right: -1px;
	padding: 48px 10px 10px 0;
	width: 80px;
	height: 80px;
	color: #fff;
	text-align: right;
	font-weight: 300;
	font-size: 1.125em;
	background: transparent url(../../../img/bg-galerie-number.png) bottom right no-repeat;
}

.gallery .thumbs {
  display: inline-block;
  text-align: center;
}

@media (max-width: 768px) {
  .gallery .thumbs {
    height: 80px;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.gallery .thumbs .thumb {
  box-sizing: border-box;

  background: center no-repeat;
  background-size: contain;
  display: inline-block;
  position: relative;
	float: left;

  margin-top: 10px;

  border: 1px solid #41a62a;
  width: 96px;
  height: 96px;

  cursor: pointer;
}

/*
.gallery .thumbs .thumb:before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid transparent;
  position: absolute;
  left: 45px;
  top: -8px;
}
*/

@media (max-width: 768px) {
  .gallery .thumbs .thumb {
    width: 65px;
    height: 65px;
  }

  .gallery .thumbs .thumb:before {
    left: 25px;
  }
}

.gallery .thumbs .thumb.active {
  border-color: silver;
}

.gallery .thumbs .thumb.active:before {
  border-bottom-color: #000;
}


/* Large and up */
@media screen and (min-width: 64em) {
	.gallery .images .image .legende {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		color: #fff;
		padding: 10px 6px;
		background: rgba(151,191,13, .9) url(../../../img/zoom.png) 98% center no-repeat;
	}
	.svg .gallery .images .image .legende {
		background-image: url(../../../img/zoom.svg);
	}
	.gallery .images .image {
	  width: 450px;
	  height: 450px;
	  border: 4px solid #41a62a;
	}
	.gallery .thumbs .thumb {
		margin: 0 4px 8px 4px;
		border: 4px solid #41a62a;
	}
}