/* The original theme relied on the Kometia CDN pre-cropping thumbnails to a fixed box
   (?w=350&h=350&fit=crop). Self-hosted images are full-resolution originals, so we crop
   them here with object-fit instead, to keep the same grid look. */
.thumbnail .thumbnail-img,
.collections-list .thumbnail-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.thumbnail .thumbnail-img img,
.collections-list .thumbnail-img img {
  height: 100%;
  object-fit: cover;
}

/* Product gallery: click-to-zoom lightbox and an active-thumbnail indicator, replacing the
   Kometia theme's own JS (app.js) for the same behavior, since that bundle isn't shipped. */
#sp-img-full {
  cursor: zoom-in;
  position: relative;
}
#slider-sp-img-thumbs .item {
  cursor: pointer;
  opacity: 0.6;
}
#slider-sp-img-thumbs .item.active {
  opacity: 1;
  outline: 2px solid #f44d0d;
}
.product-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  cursor: zoom-out;
}
.product-lightbox[hidden] {
  display: none;
}
.product-lightbox:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
}
