.three-up-slider .slider-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-weight: 700;
  font-size: 50px;
  color: #D62828; 
  z-index: 10;
}


.three-up-slider {
  background-color: var(--surface-color);
  background-color: #FDF7EF;
  position: relative;
}

.three-up-slider {
  padding: 40px 0;
}

.three-up-slider .slider-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.three-up-slider .slider-view {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.three-up-slider .slider-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.4s ease;
  will-change: transform;
  padding-right: 0; /* JS will set peek padding */
  gap: 16px;
}

.three-up-slider .slide {
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f6;
}

.three-up-slider .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.three-up-slider .slider-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.three-up-slider .slider-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
  border: 0;
  box-shadow: 0 6px 18px rgba(8,15,20,0.08);
  cursor: pointer;
  border-radius: 6px;
}

.three-up-slider .slider-btn svg {
  width: 16px;
  height: 16px;
  fill: #000000;
}

/* Allow using image files inside the button (user-provided icons).
   Images won't block the button click and will scale neatly. */
.three-up-slider .slider-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  pointer-events: none; /* so clicks go to the button */
}

.three-up-slider .slider-btn {
  overflow: hidden; /* keep image inside the white square */
}

.three-up-slider .slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 767px) {
  .three-up-slider .slider-wrapper { max-width: 100%; padding: 0 12px; }
}
