.custom-slider-wrapper {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  background: rgba(255,255,255,0.7);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 32px 0 48px 0;
  overflow: visible;
}

.glider {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  gap: 32px;
  padding: 0 32px;
}

.glider .slide {
  flex: 0 0 80%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow 0.5s, opacity 0.5s;
  opacity: 0.95;
}

.glider .slide.active {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  opacity: 1;
}

.glider img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #f6f6f6;
  transition: box-shadow 0.3s, transform 0.3s;
}

.glider-prev,
.glider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  color: #222;
  border: none;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
}
.glider-prev:hover,
.glider-next:hover {
  background: rgba(255,255,255,0.7);
  color: #0073e6;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.glider-prev { left: 12px; }
.glider-next { right: 12px; }

.dots {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  gap: 16px;
}
.dots button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  opacity: 0.5;
  transition: background 0.3s, opacity 0.3s, transform 0.3s;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.dots .active {
  background: #0073e6;
  opacity: 1;
  transform: scale(1.2);
}
@media (max-width: 900px) {
  .custom-slider-wrapper {
    max-width: 98vw;
    padding: 16px 0 32px 0;
  }
  .glider .slide {
    flex-basis: 98vw;
    max-width: 98vw;
  }
  .glider {
    gap: 12px;
    padding: 0 8px;
  }
}
