.artedi-slider {
  position: relative;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Track: sized by the first slide which stays in flow */
.artedi-slider-track {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Default: all slides absolute, layered on top of first */
.artedi-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* First slide is in flow to give the track its dimensions */
.artedi-slide:first-child {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: calc(100vh - 10rem);
}

.artedi-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Images fill their slide, object-fit prevents distortion and clipping */
.artedi-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Buttons - positioned outside the image */
.artedi-slider-btn {
  flex-shrink: 0;

  /* Kill native button styles */
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  outline: none;

  padding: 0.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.artedi-slider-btn:hover {
  opacity: 1;
}

.artedi-slider-btn:focus,
.artedi-slider-btn:active {
  background: transparent !important;
  box-shadow: none;
  outline: none;
}

/* Arrow icon style */
.artedi-slider-btn::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Left arrow */
.artedi-slider-btn.prev::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='15 18 9 12 15 6'/></svg>");
}

/* Right arrow */
.artedi-slider-btn.next::before {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='9 18 15 12 9 6'/></svg>");
}

/* "VERKAUFT!" badge — overlaid on the slide image */
.artedi-slide-sold {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: #ff6b6b;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  pointer-events: none;
}

/* Mobile: swipe only, hide buttons */
@media (max-width: 600px) {
  .artedi-slider-btn { display: none; }

  .artedi-slider {
    display: block;
  }
}
