/* Object page gallery (Swiper). Scoped under .object-item__img so it only
   affects the object view, never the product galleries. */

.object-item__img .object-gallery {
  position: relative;
}

/* Main image ---------------------------------------------------------- */
.object-item__img .object-gallery__main {
  position: relative;
  overflow: hidden;
}

.object-item__img .object-gallery__main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.object-item__img .object-gallery__main .swiper-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  /* Cap tall (portrait) images so they don't dominate the viewport;
     landscape shots fill the column width naturally. */
  max-height: 70vh;
  margin: 0 auto;
  object-fit: contain;
}

/* Thumbnails ---------------------------------------------------------- */
.object-item__img .object-gallery__thumbs {
  margin-top: 10px;
}

.object-item__img .object-gallery__thumbs .swiper-wrapper {
  justify-content: center;
}

.object-item__img .object-gallery__thumbs .swiper-slide {
  width: auto;
  height: 72px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.object-item__img .object-gallery__thumbs .swiper-slide img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: cover;
}

.object-item__img .object-gallery__thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

@media (max-width: 767px) {
  .object-item__img .object-gallery__main .swiper-slide img {
    max-height: 60vh;
  }
}
