/* .imagegallery.design_standard ----------------------------------------------------------------------------------- */

.elm.imagegallery.design_standard .image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elm.imagegallery.design_standard .image a {
  text-decoration: none;
}

.elm.imagegallery.design_standard .image img {
  width: 100%;
  height: auto;
}

.elm.imagegallery.design_standard .text {
  text-align: center;
  font-size: 0.75rem;
  line-height: normal;
  margin: 5px 0;
}

.elm.imagegallery.design_standard .text:empty {
  display: none;
}

/* .imagegallery.design_quadratisch1, .imagegallery.design_quadratisch2 .imagegallery.design_rund ----------------------------------------------------------------------------------- */

.elm.imagegallery.design_rund .image_wrapper,
.elm.imagegallery.design_quadratisch1 .image_wrapper,
.elm.imagegallery.design_quadratisch2 .image_wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;  
}

.elm.imagegallery.design_rund .image,
.elm.imagegallery.design_rund .image > a,
.elm.imagegallery.design_quadratisch1 .image,
.elm.imagegallery.design_quadratisch1 .image > a,
.elm.imagegallery.design_quadratisch2 .image,
.elm.imagegallery.design_quadratisch2 .image > a {
  position: absolute;
  width:100%;
  height:100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-decoration: none;
  z-index: 0;
}

.elm.imagegallery.design_quadratisch1 .image,
.elm.imagegallery.design_quadratisch1 .image > a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.elm.imagegallery.design_quadratisch1 .image img {
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
}

.elm.imagegallery.design_rund .image img,
.elm.imagegallery.design_quadratisch2 .image img {
  width:100%;
  height:100%;
  object-fit: cover;
}

.elm.imagegallery.design_rund .image {
  overflow: hidden;
  border-radius: 50%;
}

.elm.imagegallery.design_rund .text,
.elm.imagegallery.design_quadratisch1 .text,
.elm.imagegallery.design_quadratisch2 .text {
  text-align: center;
  font-size: 0.75rem;
  line-height: normal;
  margin: 5px 0;
}

.elm.imagegallery.design_rund .text:empty,
.elm.imagegallery.design_quadratisch1 .text:empty,
.elm.imagegallery.design_quadratisch2 .text:empty {
  display: none;
}

/* .imagegallery.design_flexgallery ----------------------------------------------------------------------------------- */

.elm.imagegallery.design_flexgallery {
  overflow: hidden;
}
.elm.imagegallery.design_flexgallery .image_wrapper {
  float: left;
  margin: 4px;
  box-sizing: content-box;
  overflow: hidden;
  position: relative;
}

.elm.imagegallery.design_flexgallery .image,
.elm.imagegallery.design_flexgallery .image picture {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.elm.imagegallery.design_flexgallery .image a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  line-height: 0;
}

.elm.imagegallery.design_flexgallery .image img {
  display: block;
  width: auto;
  height: 100%;
  line-height: 0;
}

.elm.imagegallery.design_flexgallery .text:empty {
  display: none;
}

.elm.imagegallery.design_flexgallery .text {
  display: block;
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  color: #FFFFFF;
  font-size: 0.8rem;
  line-height: normal;
  padding: 5px;
  opacity: 0;
  text-align: center;
  -webkit-transition: all ease-out 0.3s;
  -moz-transition: all ease-out 0.3s;
  -o-transition: all ease-out 0.3s;
  transition: all ease-out 0.3s;
  background-color: #000000;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.8);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000)";
}

.elm.imagegallery.design_flexgallery .image_wrapper:hover .text {
  opacity: 1;
}