/* Vezolira v10.0.21: the previous fixed aspect-ratio/overflow clipped gallery thumbnails.
   This override affects only the product DETAIL page; category tiles remain unchanged. */
.detail-layout .detail-image {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  align-self: start;
}
.detail-layout .detail-image > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  max-height: 650px;
  object-fit: contain;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  background: #f4f7fb;
}
.detail-layout .detail-image > .thumb-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 280px;
  border: 1px solid #dce6f5;
  border-radius: 12px;
}
.detail-layout .detail-image > .v7-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
}
/* No-JavaScript fallback: show the stored gallery images below the primary image. */
.detail-layout .detail-image > .v7-gallery > img {
  display: block;
  height: auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid #dce6f5;
  border-radius: 9px;
  background: #f4f7fb;
}
.detail-layout .detail-image > .v7-gallery .v1021-gallery-thumb {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 3px;
  margin: 0;
  border: 2px solid #dce6f5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.detail-layout .detail-image > .v7-gallery .v1021-gallery-thumb.is-current,
.detail-layout .detail-image > .v7-gallery .v1021-gallery-thumb[aria-pressed="true"] {
  border-color: #1475d8;
  box-shadow: 0 0 0 2px rgba(20,117,216,.12);
}
.detail-layout .detail-image > .v7-gallery .v1021-gallery-thumb:focus-visible {
  outline: 3px solid #ff8914;
  outline-offset: 2px;
}
.detail-layout .detail-image > .v7-gallery .v1021-gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 0;
  border-radius: 6px;
  background: #f4f7fb;
}
.detail-layout .detail-image > .v1021-photo-count {
  margin: 8px 0 0;
  color: #68778d;
  font-size: 12px;
}
@media (max-width: 640px) {
  .detail-layout .detail-image > .v7-gallery { gap: 7px; }
  .detail-layout .detail-image > img { max-height: 490px; }
}
.detail-layout .detail-image > .v7-gallery[hidden] { display: none !important; }
