/* SUSHI MAX v5.31.6: light product image without the legacy black frame.
   Only product detail pages load this stylesheet. The source image is unchanged. */
.product-page .gallery-main {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1.08 / 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 24px;
  background: transparent !important;
  box-shadow: none !important;
}

/* A light halo, not a solid rectangle: the page itself remains visible. */
.product-page .gallery-main::before {
  content: "";
  position: absolute;
  inset: 7% 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,.65) 0%,
    rgba(255,246,235,.34) 50%,
    rgba(255,246,235,0) 77%);
}

/* Fade the actual image edges, including images with a white background.
   Preserve the original proportions and do not crop the sushi. */
.product-page .gallery-main > img {
  position: relative;
  display: block !important;
  flex: 0 1 auto;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  border: 0 !important;
  background: transparent !important;
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 83%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at center, #000 83%, transparent 100%);
}

/* The photo placeholder must remain readable when a photo is missing. */
.product-page .gallery-main .product-big-placeholder {
  width: 100%;
  min-height: 280px;
  color: #825d46;
}

/* Thumbnails should follow the same light palette, without dark tiles. */
.product-page .gallery-thumbs button {
  background: #fffaf5 !important;
  border: 1px solid #ead5c7 !important;
}
.product-page .gallery-thumbs button.active {
  border: 2px solid #ff6a27 !important;
}

@media (max-width: 780px) {
  .product-page .gallery-main {
    aspect-ratio: 1.12 / 1;
    border-radius: 18px;
  }
}
