#company{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#company li{
    width: 20%;
    overflow: hidden;
    background: #000;
    position: relative;
    min-height: 450px;
    transition: all ease .5s;
}
#company li > img{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    opacity: .8;    width: 100%;
    height: 420px;
}
#company li > a{
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    transition: all ease .5s;
}
#company li > a img{
    width: 40px;
}
#company li > a h3{
    color: #fff;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    line-height: 1;
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
#company li > a p{
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: #fff;
    font-family: arial;
    opacity: .4;
    margin: 0;
    line-height: 1;
    margin-bottom: 19px;
    font-size: 13px;
}
#company li > a span{
    color: #fff;
    background: rgba(0,84,173,1);
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    opacity: 0;
    transition: all ease .5s;
}
#company li:hover > a{
    padding-bottom: 30px;
}
#company li:hover > a span{
    opacity: 1;
}
#company li.active1{
    width: 40%;
}


@media only screen and (max-width: 768px){
#company {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
#company li {
    width: 100%;
    overflow: hidden;
    background: #000;
    position: relative;
    min-height: 190px;
    transition: all ease .5s;
}
#company li.active1 {
    width: 100%;
}
#company li > a p {
    margin-bottom: 0px;
    font-size: 13px;
}
  }