@media only screen and (min-width: 769px){ #company{ width: 100%; display: flex!important; justify-content: flex-start; }} #company li.li1{ width: 20%; overflow: hidden; background: #f8f8f8; position: relative; min-height: 520px; transition: all ease .5s; } #company li.li2{ width: 20%; overflow: hidden; background: #fff; position: relative; min-height: 520px; transition: all ease .5s; } #company li.li3{ width: 20%; overflow: hidden; background: #f8f8f8; position: relative; min-height: 520px; transition: all ease .5s; } #company li.li4{ width: 20%; overflow: hidden; background: #fff; position: relative; min-height: 520px; transition: all ease .5s; } #company li.li5{ width: 20%; overflow: hidden; background: #f8f8f8; position: relative; min-height: 520px; transition: all ease .5s; } #company li.li6{ width: 20%; overflow: hidden; background: #f8f8f8; position: relative; min-height: 520px; transition: all ease .5s; } #company li.li7{ width: 20%; overflow: hidden; background: #f8f8f8; position: relative; min-height: 520px; transition: all ease .5s; } #company li > img{ position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: 0; } #company li > a{ position: absolute; bottom: 5%; left: 20px; right: 20px; transition: all ease .5s; } #company li > a img{ width: 100%; margin-bottom:28%; } #company li > a h3{ color: #333; font-size: 24px; margin-top: 15px; margin-bottom: 32%; 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: #737373; font-family: arial; opacity: 1; font-family: "d9a2bcff-1f69-4ade-8fc6-7ee359a8b527"; margin: 0; line-height: 1; margin-bottom: 0%; font-size: 18px; font-weight: 100; text-transform: uppercase; } #company li > a span{ padding: 10px 26px; border-radius: 2px; font-size: 15px; position: absolute; bottom: 0; opacity: 0; transition: all ease .5s; border: 1px solid #e5310c; color:#e5310c; background:rgba(0,0,0,0); border-radius: 30px; transition: 0.5s; } #company li > a span:hover{ color: #fff; background: #e5310c; border: 1px solid #e5310c; } #company li:hover > a{ padding-bottom: 0px; } #company li:hover > a span{ opacity: 1; } #company li.active1{ width: 60%; opacity: 1; } #company li.active1 img{ opacity: 1; } h1.title { /* top: 5%; */ bottom: 100px; padding-bottom: 30%; text-align: right; color: #e0e0e0; font-size: 96px; font-family: "oswald"!important; font-weight: normal; display: none; } #company li.active1 a h3{ margin-bottom: 60px; } #company li.active1 h1.title{ opacity: 0; } #company li.active1 a img{ opacity: 0; } #company li.active1 a { position: absolute; bottom: 8%; left: 20px; right: 20px; transition: all ease .5s; } @media only screen and (max-width: 768px){ #company{ width: 100%; display: block!important; justify-content: space-between!important; } }