﻿#gallery_popup {
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
#gallery_popup.active {
  opacity: 1;
  visibility: visible;
}
#gallery_popup.active #gallery_items {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-transform: scale(1, );
  -ms-transform: scale(1, );
  transform: scale(1, );
  opacity: 1;
}
#gallery_popup .g-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: arial;
  color: #ffffff;
  background-color: rgba(0,0,0,0.7);
  font-size: 40px;
  text-align: center;
  line-height: 40px;
  opacity: 0.5;
  z-index: 2;
  cursor: pointer;
  border-radius: 50%;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  width: 40px;
  height: 40px;
}
#gallery_popup .g-btn:hover {
  opacity: 1;
}
#gallery_popup .g-btn.g-next, #gallery_popup .g-btn.g-prev {
  line-height: 34px!important;
}
#gallery_popup .g-btn.g-next {
  margin-right: 50px;
  font-size: 35px;
}
#gallery_popup .g-btn.g-prev {
  margin-right: 100px;
  font-size: 35px;
}
@media (max-width: 768px) {
  #gallery_popup .g-btn {
    top: auto;
    bottom: 60px;
    right: auto;
    left: 50%;
    margin-left: 30px;
    margin-right: 0;
  }
  #gallery_popup .g-btn.g-next {
    margin-right: 0;
    margin-left: -20px;
  }
  #gallery_popup .g-btn.g-prev {
    margin-right: 0;
    margin-left: -70px;
  }
}
#gallery_popup #gallery_items {
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  right: 10px;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-transform: scale(1.1, );
  -ms-transform: scale(1.1, );
  transform: scale(1.1, );
  opacity: 0;
  -webkit-transition: all 0.3s ease-out 0.5s;
  transition: all 0.3s ease-out 0.5s;
  background-image: url("../img/grain.png");
  background-color: transparent;
}
@media (max-width: 768px) {
  #gallery_popup #gallery_items {
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
  }
}
#gallery_popup #gallery_items .gallery-item {
  opacity: 0;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-transform: scale(1.1, );
  -ms-transform: scale(1.1, );
  transform: scale(1.1, );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
#gallery_popup #gallery_items .gallery-item.active {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-transform: scale(1, );
  -ms-transform: scale(1, );
  transform: scale(1, );
}
#gallery_popup #gallery_items .gallery-item .picture {
  position: absolute;
  top: 40px;
  right: 40px;
  bottom: 40px;
  left: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
@media (max-width: 768px) {
  #gallery_popup #gallery_items .gallery-item .picture {
    top: 10px;
    bottom: 110px;
    left: 10px;
    right: 10px;
  }
}

.product-picture {
  border: none;
  box-shadow: none;
  border-radius: 2px;
}
}
.product-picture .start-gallery {
  display: block !important;
  margin-bottom: 0;
  margin-top: 10px;
}
table.product-picture .start-gallery {
  display: table;
}
tr.product-picture .start-gallery {
  display: table-row !important;
}
th.product-picture .start-gallery,
td.product-picture .start-gallery {
  display: table-cell !important;
}
@media (max-width: 767px) {
  .product-picture .start-gallery.hidden-xs,
  tr.product-picture .start-gallery.hidden-xs,
  th.product-picture .start-gallery.hidden-xs,
  td.product-picture .start-gallery.hidden-xs {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .product-picture .start-gallery.hidden-sm,
  tr.product-picture .start-gallery.hidden-sm,
  th.product-picture .start-gallery.hidden-sm,
  td.product-picture .start-gallery.hidden-sm {
    display: none !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .product-picture .start-gallery,
  tr.product-picture .start-gallery,
  th.product-picture .start-gallery,
  td.product-picture .start-gallery {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .product-picture .start-gallery.hidden-lg,
  tr.product-picture .start-gallery.hidden-lg,
  th.product-picture .start-gallery.hidden-lg,
  td.product-picture .start-gallery.hidden-lg {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .product-picture .start-gallery,
  tr.product-picture .start-gallery,
  th.product-picture .start-gallery,
  td.product-picture .start-gallery {
    display: none !important;
  }
}
.product-picture .start-gallery::before {
  content: "";
  clear: both;
  display: block;
}
.product-picture img {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
}
.product-picture > .row {
  margin: -5px;
  position: relative;
}
.product-picture > .row > .gallery-item {
  width: 20%;
  padding: 5px;
  display: block;
  float: left;
  position: relative;
  margin-right: 1em;
}
.product-picture > .row > .gallery-item.produkt-bild-main {
  width: 100%;
}
@media (max-width: 768px) {
  .product-picture > .row > .gallery-item.produkt-bild-main {
    float: none;
  }
}
.product-picture > .row > .gallery-item .picture {
  background-size: cover;
  background-position: center center;
  position: relative;
  display: block;
  padding-top: 100%;
  cursor: pointer;
}
/*.product-picture > .row > .gallery-item .picture::after {
  content: "";
  position: absolute;
  background-color: #1c2636;
  background-image: url('../img/sprites.png');
  background-size: 256px auto;
  background-position: -70px -128px;
  width: 30px;
  height: 30px;
  top: 10px;
  right: 10px;
  border-radius: 2px;
  opacity: 0;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}*/
@media (max-width: 768px) {
  .product-picture > .row > .gallery-item .picture::after {
    opacity: 1;
  }
}
.product-picture > .row > .gallery-item .picture:hover::after {
  opacity: 1;
}
.product-picture > .row > .gallery-item img {
  display: none;
  height: 100%;
  position: absolute;
  top: 5px;
  left: 5px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
@media (min-width: 1700px) {
  .product-picture > .row > .gallery-item {
    width: 20%;
  }
  .product-picture > .row > .gallery-item.produkt-bild-main {
    width: 100%;
  }
}
@media (max-width: 992px) {
  .product-picture > .row > .gallery-item {
    width: 20%;
  }
  .product-picture > .row > .gallery-item.produkt-bild-main {
    width: 40%;
  }
}
@media (max-width: 768px) {
  .product-picture > .row > .gallery-item {
    width: 30%;
    margin-bottom: 2em;
  }
  .product-picture > .row > .gallery-item.produkt-bild-main {
    width: 20%;
  }
}
/*
@media (max-width: 480px) {
  .product-picture > .row > .gallery-item {
    width: 25%;
    display: none;
  }
  */
  .product-picture > .row > .gallery-item.produkt-bild-main {
    width: 100%;
    display: block;
  }
}