html {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

body {
  overflow-x: hidden;
  margin: 0;
  background: #E8EAF6;
  min-height: 100vh;
}

img {
  width: 100%;
  display: block;
}

.slide-wrap {
  margin-bottom: 30px;
  background: #ced3ec;
  overflow: hidden;
}

.slide {
  margin: 0 auto;
  width: 70%;
  max-width: 700px;
  position: relative;
  -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.1), 0 0 3px rgba(0, 0, 0, 0.15), 0 0 2px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 30px rgba(0, 0, 0, 0.1), 0 0 3px rgba(0, 0, 0, 0.15), 0 0 2px rgba(0, 0, 0, 0.2);
}

.slide__inner {
  background: #ddd;
}
.slide__inner--active {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.slide-nav-wrap {
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: auto;
}

.slide-nav {
  cursor: -webkit-grab;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -ms-touch-action: none;
      touch-action: none;
  white-space: nowrap;
  position: relative;
  background-color: #311B92;
  border: 6px solid #311B92;
  border-radius: 100vmax;
  line-height: 0;
  margin: 0 auto;
}
.slide-nav:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.slide-nav__current {
  will-change: transform;
  background: #2196F3;
  border-radius: 50%;
  position: absolute;
  z-index: 1;
}

.slide-nav__indicator {
  background: #3F51B5;
  display: inline-block;
  border-radius: 50%;
  position: absolute;
  z-index: 0;
  -webkit-transform: scale(0.5);
          transform: scale(0.5);
  position: relative;
}

.slide__slide-preview {
  pointer-events: none;
  -webkit-transition: opacity 0.2s cubic-bezier(0.4, 0, 0, 1);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0, 1);
}
.slide__slide-preview:not(.slide__slide-preview--active) {
  opacity: 0;
}

.slide-preview__content {
  background: white;
  border-radius: 4px;
  width: 35vmin;
  max-width: 200px;
  overflow: hidden;
  opacity: 1;
  border: 4px solid #311B92;
  will-change: transform;
  position: absolute;
}

.slide-preview__triangle {
  will-change: transform;
  position: absolute;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 4.6153846154px solid #311B92;
  border-bottom: 0;
}
