#carousel {
    position: relative;
    height: 400px;
    /* top: 50%; */
    /* transform: translateY(-50%); */
    overflow: hidden;
  }
  #carousel div {
    position: absolute;
    transition: transform 400ms, left 400ms, opacity 400ms, z-index 0s;
    opacity: 1;
  }
  #carousel div img {
    width: 450px;
    transition: width 400ms;
     -webkit-user-drag: none;
  }
  #carousel div.hideLeft {
    left: 0%;
    opacity: 0;
    transform: translateY(50%) translateX(-50%);
  }
  #carousel div.hideLeft img {
    width: 300px;
  }
  #carousel div.hideRight {
    left: 100%;
    opacity: 0;
    transform: translateY(50%) translateX(-50%);
  }
  #carousel div.hideRight img {
    width: 300px;
  }
  #carousel div.prev {
    z-index: 5;
    left: 30%;
    transform: translateY(50px) translateX(-50%);
  }
  #carousel img:hover {
    cursor: pointer;
  }
  #carousel div.prev img {
    width: 350px;
  }
  #carousel div.prevLeftSecond {
    z-index: 4;
    left: 15%;
    transform: translateY(50%) translateX(-50%);
    opacity: 0.7;
  }
  #carousel div.prevLeftSecond img {
    width: 300px;
  }
  #carousel div.selected {
    z-index: 10;
    left: 50%;
    top: 15%;
    transform: translateY(-15%) translateX(-50%);
    transform-origin: center;
  }
  #carousel div.next {
    z-index: 5;
    left: 70%;
    transform: translateY(50px) translateX(-50%);
  }
  #carousel div.next img {
    width: 350px;
  }
  #carousel div.nextRightSecond {
    z-index: 4;
    left: 85%;
    transform: translateY(50%) translateX(-50%);
    opacity: 0.7;
  }
  #carousel div.nextRightSecond img {
    width: 300px;
  }

@media (max-width: 767px) {

    #carousel div {
        position: absolute;
        transition: all 400ms, left 400ms, opacity 400ms, z-index 0s;
        opacity: 1;
      }
    #carousel div.selected {
        z-index: 10;
        left: 50%;
        top: 15%;
        transform: translateY(-15%) translateX(-50%);
        transition: all 400ms;
    }
    #carousel div img {
        width: 300px;
        transition: width 400ms;
         -webkit-user-drag: none;
    }
    #carousel div.next img {
      width: 250px;
    }
    #carousel div.prev img {
      width: 250px;
    }
}