.accordion-slider {
  max-width: 1110px;
  width: 100%;
  margin: 10px auto;
  margin-top:15px;
  margin-bottom:0px;
  display: table;
  table-layout: fixed;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: 5px;  
  
}
.accordion-slider:hover li {
  width: 10%;
}
.accordion-slider li {
  transition: all 500ms ease;
  width: 20%;
  display: table-cell;
  height: 250px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.8);
  position: relative;
}
.accordion-slider li:nth-child(1) {
  background: #fff url(img/1.jpg) 0 0 no-repeat;
  background-size: cover;
}
.accordion-slider li:nth-child(2) {
  background: #fff url(img/new2.jpg) 0 0 no-repeat;
  background-size: cover;
}
.accordion-slider li:nth-child(3) {
  background: #fff url(img/3.jpg) 0 0 no-repeat;
  background-size: cover;
}
.accordion-slider li:nth-child(4) {
  background: #fff url(img/5.jpg) 0 0 no-repeat;
  background-size: cover;
}
.accordion-slider li:nth-child(5) {
  background: #fff url(img/5.jpg) 0 0 no-repeat;
  background-size: cover;
}
.accordion-slider li:hover {
  width: 50%;
}
.accordion-slider li:hover h3 {
  background: rgba(255, 90, 0, 1);
}
.accordion-slider .item {
  background: rgba(0, 0, 0, 0.2);
  min-width: 150px;
  position: absolute;
  right: 0;
  left: 0;
  height: 100%;
  color: #ccc;
  padding: 0 10px;
  text-decoration: none;
}
.accordion-slider .item h3 {
  transition: all 1000ms ease;
  background: rgba(255, 90, 0, 0.8);
  padding: 10px 0;
  font-size: 16px;
  font-weight:bold;
  position: absolute;
  right: 0;
  left: 0;
  text-align: center;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .accordion-slider:hover li,
  .accordion-slider li,
  .accordion-slider li:hover {
    display: table;
    width: 100%;
  }

  .accordion-slider li {
    height: 100px;
  }
}