/* Product Slider Mobile Activation */
.productSlider:after {
  content: "";
  display: none;
}

@media (max-width: 1000px) {
  .productSlider:after {
    content: "flickity";
  }
}

figure.gallerySlider{
  display: block;
  /* Dots (bottom: -28px) and arrows (bottom: -50px) are absolutely positioned
     below the slider, so reserve room for them — otherwise they collide with
     the next block (most noticeable on mobile, where the figure margin is small). */
  margin-bottom: max(var(--grid-gap-md), 7rem);
}

/* "Show overflow" peek: the centered slider lets its neighbouring cells spill
   out of the column into the side gutters. To stop those cells from running
   past the viewport (which scrolls the whole page — unreliably masked by an
   ancestor overflow-x on iOS Safari), the slider is wrapped in a full-bleed
   clip layer. The wrapper re-creates the page grid so the figure keeps its
   exact system column width (content-centered / -full-width / -in-column),
   while clipping the peek at the real screen edges. */
.gallerySliderClip {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  /* min-width:0 stops the 100vw width from inflating the parent grid's
     tracks (default grid-item min-width is auto). */
  min-width: 0;
  /* Clip the side peek at the viewport edge. Bottom padding keeps the
     absolutely-positioned dots/arrows visible despite overflow: hidden. */
  overflow: hidden;
  padding: 0 var(--grid-gap-md) 6rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gap-sm);
}

/* Span all columns so the wrapper doesn't sit in (and distort) the default
   centered text track. Scoped to beat `.grid12 > *:not(figure)`. */
.grid12 > .gallerySliderClip {
  grid-column: 1 / -1;
  margin-bottom: var(--grid-gap-md);
}

/* Inside the clip wrapper, spacing below is handled by the wrapper itself. */
.gallerySliderClip .gallerySlider {
  margin-bottom: 0;
}

.overflowVisible .flickity-viewport {
  overflow: visible;
}

.gallery-cell {
  margin-right: var(--space-4);
}
@media (max-width: 1000px) {
  .gallery-cell {
    margin-right: var(--space-2);
  }
}

/* Flickity Page Dots Styling */

.flickity-page-dots {
  bottom: -28px;
  position: absolute;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-page-dots .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px;
  background: rgb(31, 45, 61);
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
  text-indent: -9999px; /* Hide any text content */
  overflow: hidden;
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;
}

/* Flickity Navigation Arrows Styling */
.flickity-button, .flickity-button:hover {
  background: none;
  border: none;
}

.flickity-prev-next-button {
  width: 30px;
  height: 30px;
  bottom: -50px;
  top: auto;
  z-index: 1000;
  background: transparent;
  transition: all 0.2s ease;
}

.flickity-prev-next-button:hover {
  opacity: 0.6;
}

.flickity-prev-next-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.flickity-prev-next-button .flickity-button-icon {
  fill: var(--text-color-primary);
  width: 12px;
  height: 12px;
}