/* zdjecie leadowe */

.lead-gallery figure img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

/* miniatury */

.lead-gallery .lead-photo-miniatures {
  width: 100%;
  display: block;
  max-height: 174px;
  overflow: hidden;
  padding: 24px 12px;
}

.lead-gallery .lead-photo-miniatures li {
  width: 189px;
  float: left;
  display: block;
  margin: 0 12px 24px;
  overflow: hidden;
  height: 126px;
}

.lead-gallery .lead-photo-miniatures li img {
  max-width: 100%;
}

/* /miniatury */

.lead-gallery .lead-gallery-title {
  width: -webkit-calc(100% - 70px);
  width: -moz-calc(100% - 70px);
  width: calc(100% - 70px);
  float: left;
  line-height: 40px;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  white-space: nowrap;
}

.lead-gallery-title a,
.lead-gallery-photos a {
  color: #fff;
}

.lead-gallery .lead-gallery-photos {
  width: 70px;
  float: left;
  line-height: 40px;
  text-align: right;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.5);
  height: 40px;
  font-size: 18px;
}

/* /zdjęcie leadowe */

/* pojedyncze zdjecie */

.single-photo {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.single-photo figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.single-photo figure figcaption {
  color: #999;
  margin-left: 8px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
}

.single-photo figure figcaption span a {
  color: #1677ff;
  font-size: 12px;
  line-height: 16px;
}

.single-photo figure figcaption span {
  display: block;
  margin-left: 0;
  margin-top: 0;
}

/* /pojedyncze zdjecie */

/* share */

.gallery-share {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  transform: translateY(-100%);
}

.single-photo:hover .gallery-share {
  transform: translateY(0);
}

.gallery-share .social_box a,
.link_share {
  max-width: 100%;
}

.single-photo .gallery-share .socials_share.img_share {
  transition: all 0.3s ease-in-out;
}

.single-photo:hover .gallery-share .socials_share.img_share {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -o-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  transition: all 0.3s easy-in-out;
}

.gallery-share .socials_share .social_box {
  width: 100%;
}

.single-photo.with-frames img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-height: 442px;
  height: auto;
}

/* blok produkt */

.single__photo--productBlock .priceTitle,
.single__photo--productBlock .priceValue {
  display: inline-block;
}

@media screen and (max-width: 1040px) {
  article .lead-gallery ul {
    margin: 0;
    padding: 0;
  }
  .lead-gallery .lead-photo-miniatures {
    padding: 16px 0;
  }
  .lead-gallery .lead-photo-miniatures li {
    width: calc(33.33% - 16px);
    float: left;
    display: block;
    margin: 0 8px;
  }
  .lead-gallery a,
  .lead-gallery a:hover,
  .lead-gallery a:visited {
    font-size: 14px;
  }
  .liveTimeline .lead-gallery-more a {
    line-height: 50px;
  }
  .lead-gallery .lead-photo-miniatures li:nth-child(1),
  .lead-gallery .lead-photo-miniatures li:nth-child(2),
  .lead-gallery .lead-photo-miniatures li:nth-child(3) {
    display: block;
  }
  .single-photo.with-frames img {
    max-height: 400px;
  }
}

@media screen and (max-width: 540px) {
  .lead-gallery .lead-photo-miniatures {
    max-height: 80px;
  }
}

@media screen and (max-width: 480px) {
  .lead-gallery .lead-photo-miniatures {
    max-height: 70px;
  }
}

/* Ulokowanie przycisku "zobacz galerie" na srodku zdjęcia */

.open_article .lead-gallery {
  width: 664px;
}
