.product-gallery {
  --product-gallery-max-height: 600px;
  --product-gallery-thumb-width: 80px;
  --product-gallery-thumb-height: 80px;
  --product-gallery-thumbs-height: 344px;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.product-gallery--thumbs-left {
  grid-template-columns: var(--product-gallery-thumb-width) minmax(0, 1fr);
}

.product-gallery--thumbs-bottom {
  grid-template-columns: minmax(0, 1fr);
}

.product-gallery__main,
.product-gallery__thumbs {
  min-width: 0;
  width: 100%;
}

.product-gallery__main {
  border: 1px solid var(--border-color, #dddddd);
}

.product-gallery__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 1px;
  position: relative;
}

.product-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--product-gallery-max-height);
  margin: 0 auto;
}

.product-gallery__image.object-fit-contain {
  object-fit: contain;
}

.product-gallery__image.object-fit-cover {
  object-fit: cover;
}

.product-gallery__thumbs {
  height: var(--product-gallery-thumbs-height);
}

.product-gallery--thumbs-bottom .product-gallery__thumbs {
  height: var(--product-gallery-thumb-height);
  order: 2;
}

.product-gallery__thumb {
  box-sizing: border-box;
  cursor: pointer;
  height: var(--product-gallery-thumb-height);
  opacity: .55;
}

.product-gallery__thumb.swiper-slide-thumb-active {
  opacity: 1;
}

.product-gallery__thumb-image {
  display: block;
  /* width: 100%; */
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--border-color, #dddddd);
}

.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
  color: #ffffff;
  text-shadow: var(--text-shadow, 0 1px 3px rgba(0, 0, 0, .55));
}

.product-gallery .didascalia {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, .75);
  text-align: center;
}

.product-gallery .didascalia .bg-testo {
  padding: .8rem;
}

.product-gallery .didascalia h3 {
  font-size: .9rem;
}

.product-gallery--single {
  display: block;
}

@media (max-width: 767.98px) {
  .product-gallery--thumbs-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery--thumbs-left .product-gallery__thumbs {
    height: var(--product-gallery-thumb-height);
    order: 2;
  }
}
