#slider {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  padding: 10px 0;
  margin: auto;
}
#slider .main {
  position: relative;
  width: 600px;
  height: 400px;
  border-radius: 15px;
  margin: 0 auto;
  z-index: 10;
}
#slider .main input {
  display: none;
}
#slider .main .nav {
  position: absolute;
  bottom: -60px;
  left: 0px;
  width: 100%;
  height: 60px;
  line-height: 60px;
  z-index: 100;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
}
#slider .main .nav .buttons {
  position: absolute;
  right: 0px;
  top: 10px;
}
#slider .main .nav .buttons label {
  position: relative;
  display: block;
  float: left;
  margin-right: 10px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: black;
  border-radius: 50%;
  border: 1px solid #777777;
  cursor: pointer;
  overflow: hidden;
}
#slider .main .nav .buttons label.active-label {
  border: 1px solid rgba(0, 75, 138, 0.8);
}
#slider .main .nav .buttons label > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: 0.75s;
  -moz-transition: 0.75s;
  -webkit-transition: 0.75s;
}
#slider .main .nav .buttons label > img.active-buttons {
  opacity: 1;
}
#slider .main .nav .buttons label:hover img {
  opacity: 0.8;
}
#slider .main .overlay {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 0 0 20px 20px;
}
#slider .main .images {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 8000px;
  transition: 0.75s;
  -moz-transition: 0.75s;
  -webkit-transition: 0.75s;
}
#slider .main .images .active-images {
  bottom: 0px;
  width: 600px;
  height: 400px;
  filter: blur(0) contrast(100%);
  box-shadow: 0px 0px 10px #202020;
  border-radius: 20px;
  z-index: 1;
}
#slider .main .images article {
  overflow: hidden;
  position: relative;
  bottom: -41px;
  float: left;
  width: 450px;
  height: 300px;
  background-color: #000000;
  filter: blur(1px) contrast(60%);
  transition: 0.75s;
  -moz-transition: 0.75s;
  -webkit-transition: 0.75s;
  z-index: -1;
}
#slider .main .images article img,
#slider .main .images article iframe {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#slider .main .btn_after,
#slider .main .btn_previous {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(270deg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: #f1efef;
  background-color: #333333;
  border-radius: 50%;
  border: none;
  padding: 0;
  z-index: 1000;
  transition: 0.3s;
}
#slider .main .btn_after:hover,
#slider .main .btn_previous:hover {
  background-color: #262729;
  color: #d4d4d4;
  width: 32px;
  height: 32px;
}
#slider .main .btn_after svg,
#slider .main .btn_previous svg {
  width: 100%;
  height: 100%;
}
#slider .main .btn_after {
  left: auto;
  right: -40px;
  transform: translate(50%, -50%) rotate(90deg);
}
#slider .main .btn_previous {
  left: -40px;
  transform: translate(-50%, -50%) rotate(270deg);
}
#slider .imagebg {
  position: absolute;
  top: 50px;
  left: 0px;
  border: 2px solid #a19f9f;
  border-left: 0px;
  border-right: 0px;
  width: 100%;
  height: 300px;
  background-color: #f7f7f7;
  z-index: 0;
}

@media (max-width: 768px) {
  #slider {
    padding: 5px 0;
    margin: 20px 0;
    margin-bottom: 60px;
  }
  #slider .main {
    width: 70vw;
    height: 260px;
    border-radius: 10px;
  }
  #slider .main:hover .nav {
    bottom: 0;
  }
  #slider .main .nav {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: -80px;
    height: 50px;
    line-height: 40px;
    border-radius: 20px;
  }
  #slider .main .nav .buttons {
    display: flex;
    bottom: 5px;
    right: auto;
    left: 5px;
  }
  #slider .main .nav .buttons label {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }
  #slider .main .nav .buttons label > img {
    width: 40px;
  }
  #slider .main .images .active-images {
    width: 70vw;
    height: 200px;
  }
  #slider .main .images article {
    bottom: -22px;
    width: 60vw;
    height: 150px;
  }
  #slider .main .btn_after,
#slider .main .btn_previous {
    width: 25px;
    height: 25px;
  }
  #slider .main .btn_after:hover,
#slider .main .btn_previous:hover {
    width: 28px;
    height: 28px;
  }
  #slider .main .btn_after {
    right: -30px;
  }
  #slider .main .btn_previous {
    left: -30px;
  }
  #slider .imagebg {
    top: 25px;
    height: 150px;
  }
}