.slider {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  max-width: 100%; /* Slider maximális szélessége a képernyőhöz igazítva */
}

.slider ul {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slider ul li {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%; /* Diaelemek 100%-os szélessége a sliderhez igazítva */
  background: #ccc;
  display:flow-root;
}
@media only screen and (max-width: 1000px) {
  .slider>ul>li>div div:nth-child(1) img {
    max-width:50%!important;
  }
}
@media only screen and (max-width: 700px) {
  .slider>ul>li>div>div {
    display:flow-root!important;
  }
}
@media only screen and (max-width: 320px) {
  .slider>ul>li>div>div>img {
    display:none!important;
  }
}
.disable_controls>button{
  display: none !important;
}
.slider>button.control_prev, .slider>button.control_next {
  position: absolute;
  top: calc(50% - 15px);
  z-index: 2;
  display: block;
  width: 30px;
  height: 30px;
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 28px;
  opacity: 0.8;
  cursor: pointer;
  border-radius: 50px;
  border:none;
}

.slider>button.control_prev:hover, .slider>button.control_next:hover {
  opacity: 1;
  -webkit-transition: all 0.2s ease;
}
.slider>button.control_prev {
  left: 10px;
}
.slider>button.control_next {
  right: 10px;
}
.slider_type1{
  z-index: 1;
  display:flex;
  justify-content: center;
  align-items: center; 
  flex-direction: column; 
  background-color: rgba(0, 0, 0, 0.4);
  position: relative;
  height: 100%;
}
.slider_type2{
  z-index: 1;
  display:flex;
  justify-content: center;
  align-items: center; 
  flex-direction: column; 
  position: relative;
  height: 100%;
}