.has-hero-gallery { position: relative; }
.has-hero-gallery > .hero-gallery-native { visibility: hidden; }
.fd-gallery.has-hero-gallery > .hero-gallery-native { display: none; }
.hero-gallery {
  position: absolute;
  z-index: 3;
  inset: 0;
  direction: ltr;
}
.hero-gallery-inline { position: relative; aspect-ratio: 1; }
.hero-gallery-viewport {
  position: relative;
  display: flex;
  width: 100%;
  height: calc(100% - 48px);
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.hero-gallery-viewport::-webkit-scrollbar { display: none; }
.hero-gallery .hero-gallery-slide {
  display: grid;
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
}
.hero-gallery .hero-gallery-slide > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.hero-gallery-controls {
  position: absolute;
  z-index: 1;
  bottom: 4px;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  gap: 2px;
  padding: 2px 7px;
  border: 1px solid #cdd4c6;
  border-radius: 40px;
  background: #fffdf9ed;
  color: #273b2c;
  box-shadow: 0 4px 16px #2439241a;
}
.hero-gallery-controls[hidden] { display: none; }
.hero-gallery-controls button {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hero-gallery-controls .hero-gallery-arrow { width: 36px; font: 25px/1 system-ui; }
.hero-gallery-arrow:disabled { opacity: .32; cursor: default; }
.hero-gallery-dots { display: flex; }
.hero-gallery-controls .hero-gallery-dot { width: 22px; }
.hero-gallery-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1px solid #627658;
  border-radius: 50%;
}
.hero-gallery-dot[aria-current="true"]::before { background: #455e3c; }
.hero-gallery-counter { min-width: 39px; font: 700 11px/1 system-ui; text-align: center; white-space: nowrap; }
.hero-gallery button:focus-visible, .hero-gallery-viewport:focus-visible { outline: 2px solid #425e38; outline-offset: -2px; }
.scratcher-visual.has-hero-gallery .hero-gallery-controls { bottom: 44px; }
.scratcher-visual.has-hero-gallery .hero-gallery-viewport { height: calc(100% - 88px); }
.scratcher-visual.has-hero-gallery .scratcher-dimensions { z-index: 4; }
.scratcher-visual.has-hero-gallery:not([data-active-hero-image="0"]) .scratcher-dimensions { visibility: hidden; }
.product-visual.has-hero-gallery .granule-bubble { pointer-events: none; }
.product-visual.has-hero-gallery:not([data-active-hero-image="0"]) .granule-bubble { visibility: hidden; }
.hero-gallery-zoom { padding: 20px; border: 0; border-radius: 18px; background: #fffdf9; color: #23352d; }
.hero-gallery-zoom::backdrop { background: #172b22cc; }
.hero-gallery-zoom img { display: block; width: min(82vw, 850px); height: min(76vh, 780px); object-fit: contain; }
.hero-gallery-zoom-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  border: 1px solid #d2d9cc; border-radius: 50%; background: #fffdf9; color: inherit; font-size: 24px; cursor: pointer;
}
