.carousel {
    position: relative;
    width:100%;
    padding:0px 40px;
    margin:0px auto;
    text-align: center;
    box-sizing: border-box;
  }
  .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  .carousel-item ul {
    width: 100%;
    height: 460px;
    max-width: 1024px;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
  }
  .carousel-item ul li{
    padding: 0;
    list-style: none;
    height: 220px;
    flex-grow: 1;
    box-sizing: border-box;
    width: calc(26% - 10px);
    margin: 5px;
    justify-content: space-between;
    animation: fadeIn 0.5s ease-in;
    -webkit-animation: fadeIn 0.5s ease-in;
    animation-fill-mode: both;
    -webkit-animation-fill-mode: both;
  }
  .carousel-item ul li:nth-child(1),  .carousel-item ul li:nth-child(3),  .carousel-item ul li:nth-child(5) {
    width:calc(32% - 10px);
  }
  .carousel-item ul li.double-grow-item:last-child {
    flex-grow:initial;
    width: calc(32% - 10px);
}

  .carousel-item ul li:nth-child(1) { animation-delay: .5s }
  .carousel-item ul li:nth-child(2) { animation-delay: 1s }
  .carousel-item ul li:nth-child(3) { animation-delay: 1.5s }
  .carousel-item ul li:nth-child(4) { animation-delay: 2s }
  .carousel-item ul li:nth-child(5) { animation-delay: 2.5s }
  .carousel-item ul li:nth-child(6) { animation-delay: 3s }

  .carousel-item ul li.less-items {
    flex-grow:initial;
  }
  .carousel-item ul li img {
    vertical-align: middle;
    width: 100%;
    height:100%!important;
    object-fit:cover;
    object-position:center;
  }
  .carousel-item {
    display:none;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0 auto;
  }
  .carousel-item.active,.carousel-item-next,.carousel-item-prev {
    display: block;
    transition:transform .6s ease,-webkit-transform .6s ease;
  }
  .carousel-item-next, .carousel-item-prev {
    position: absolute;
    top: 0;
  }
  .carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right {
    transform: translateX(0);
    @supports (transform-style: preserve-3d) {
      transform: translate3d(0, 0, 0);
    }
  }
  .carousel-item-next, .active.carousel-item-right {
    transform: translateX(100%);
    @supports (transform-style: preserve-3d) {
      transform: translate3d(100%, 0, 0);
    }
  }
  .carousel-item-prev, .active.carousel-item-left {
    transform: translateX(-100%);
    @supports (transform-style: preserve-3d) {
      transform: translate3d(-100%, 0, 0);
    }
  }
  .carousel-fade {
    .carousel-item {
      opacity: 0;
      transition-duration: .6s;
      transition-property: opacity;
    }
    .carousel-item.active,
    .carousel-item-next.carousel-item-left,
    .carousel-item-prev.carousel-item-right {
      opacity: 1;
    }
    .active.carousel-item-left,
    .active.carousel-item-right {
      opacity: 0;
    }
    .carousel-item-next,
    .carousel-item-prev,
    .carousel-item.active,
    .active.carousel-item-left,
    .active.carousel-item-prev {
      transform: translateX(0);
      @supports (transform-style: preserve-3d) {
        transform: translate3d(0, 0, 0);
      }
    }
  }
  .carousel-indicators {
    position:absolute;
    right:0;
    bottom:10px;
    left:0;
    z-index:15;
    display:flex;
    justify-content: center;
    list-style:none;
  }
  .carousel-indicators li {
    position: relative;
    background: #707070;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    top: 22px;
    margin:0px 3px;
    cursor:pointer;
    text-indent:-999px;
  }
  .carousel-indicators li.active {
    background:#002475;
  }
  .carousel-control-next, .carousel-control-prev {
    position: absolute;
    top:0;
    bottom:0;
    display: flex;
    align-items: center;
    justify-content: center;
    width:32px;
    color:#fff;
    text-align: center;
    opacity:.5;
  }
  .carousel-control-prev {
    left:0;
    opacity: 1;
  }
  .carousel-control-next {
    right: 0;
    opacity: 1;
  }
  .carousel-control-prev-icon ,.carousel-control-next-icon  {
    opacity:0.7;
  }
  .carousel-control-prev-icon:hover ,.carousel-control-next-icon:hover {
    opacity:1;
  }
  .carousel-control-prev-icon ,.carousel-control-next-icon {
    display: inline-block;
    background: url('/qql/slot/u145/style/icons/left-arrow.png') no-repeat;
    width: 32px;
    height: 32px;
    background-size: contain!important;
  }
  .carousel-control-next-icon {
    display: inline-block;
    background: url('/qql/slot/u145/style/icons/right-arrow.png') no-repeat;
    width: 32px;
    height: 32px;
    background-size: contain!important;
  }
  img.mfp-img {max-width:800px!important;}

  @keyframes fadeIn { 
    0% {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
  }
  @-webkit-keyframes fadeIn {
    0% {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

  @media only screen and (max-device-width:1024px), only screen and (max-width:1024px){
    .carousel {padding:0 30px;}
  .carousel-control-prev-icon, .carousel-control-next-icon {width:20px; height:20px;}
}
@media only screen and (max-device-width:850px), only screen and (max-width:850px){
  img.mfp-img {max-width:100%!important;}
}

@media only screen and (max-device-width:768px), only screen and (max-width:768px){
  .carousel-item ul li.double-grow-item:last-child  {flex-grow:1;}
  .carousel-item ul li,.carousel-item ul li:nth-child(3) {height:160px;  width: calc(40% - 10px)}
  .carousel-item ul li:nth-child(1), .carousel-item ul li:nth-child(4), .carousel-item ul li:nth-child(5),.carousel-item ul li.double-grow-item:last-child  {
    width: calc(50% - 10px);
  }
  .carousel-item ul {height:auto; min-height:320px;}
}
@media only screen and (max-device-width:450px), only screen and (max-width:450px){
  .carousel-item ul li,.carousel-item ul li:nth-child(3) {height:120px; }
}