#mainslide {
  margin: 0;
  background: #eee;
  display: flex;
  justify-content: center;
}

/* 1200px centered container */
.container {
  width: 1200px;
  margin: 100px 0;
  overflow: visible;
  position: relative;
}

/* Slider (scrollable) */
.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;

  margin-left: calc((100vw - 1200px) / 2 * -1);
  padding-left: calc((100vw - 1200px) / 2);

  margin-right: calc((100vw - 1200px) / 2 * -1); /* 👈 this one */
  padding-right: calc((100vw - 1200px) / 2);

  padding-bottom: 20px;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.slider::-webkit-scrollbar {
  display: none; /* Chrome */
}

.slider.dragging {
  cursor: grabbing;
}

.card {
  width: 250px;
  height: 200px;
  background: #4a90e2;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
