html, body { height: 100%; margin: 0; }

.slider, .slider .imgs {
  width: 970px;
  height: 387px;
  max-height: 387px;
  position: relative;
  align-items: center;
  
}

.slider {
  height: 387px;
  max-height: 387pxpx;
}

.slider .imgs {
  display: flex;
  overflow: hidden;
}

.slider .img {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  left: 100%;
  /* animation duration can't be greater than variable interval in JS! */
  /* check JS for other settings */
  animation: .6s cubic-bezier(0.645, 0.045, 0.355, 1) 0s left;
  animation-fill-mode: forwards;
  background-size: cover !important;
  background-position: 50% !important;
}

/* Change images here */
.slider .img:nth-of-type(1) { background: url("https://www.efehotel.com/slider/01.jpg"); }
.slider .img:nth-of-type(2) { background: url("https://www.efehotel.com/slider/02.jpg"); }
.slider .img:nth-of-type(3) { background: url("https://www.efehotel.com/slider/03.jpg"); }
.slider .img:nth-of-type(4) { background: url("https://www.efehotel.com/slider/04.jpg"); }

.slider .img span {
  padding: 220px 20px;
  background: rgba(0, 0, 0, .8);
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  color: #f0f0f0;
  font-size: 14px;
  font-family: sans-serif;
}

.dots {
  position: absolute;
  bottom: -18px;
  left: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.dot {
  width: 8px;
  height: 8px;
  background: gray;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
}

.active-dot {
  background: #3f3f3f;
  cursor: default;
}

@keyframes leftNext {
  from { left: 100%; }
  to { left: 0; }
}

@keyframes leftCurr {
  from { left: 0; }
  to { left: -100%; }
}

@keyframes rightNext {
  from { left: -100%; }
  to { left: 0; }
}

@keyframes rightCurr {
  from { left: 0; }
  to { left: 100%; }
}