.box{ font-family: 'Balsamiq Sans', cursive; overflow: hidden; position: relative; transition: all 0.3s ease 0s; } .box:hover{ box-shadow: 0 0 0 4px #fff,0 0 15px rgba(0,0,0,0.2); } .box img{ width: 100%; height: auto; filter: grayscale(100%); transition: all 0.3s ease 0s; } .box:hover img{ filter: grayscale(0) blur(2px); } .box .box-content{ color: #333; background: rgba(255,255,255,0.75); text-align: center; width: 80%; padding: 20px 20px 10px; border-radius: 100px 150px/50px 30px; box-shadow: 0 0 10px rgba(0,0,0,0.2); opacity: 0; transform: translateX(-50%) translateY(-100%); position: absolute; top: 50%; left: 50%; z-index: 2; transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.775); } .box:hover .box-content{ opacity: 1; transform: translateX(-50%) translateY(-50%); } .box .title{ color: #0150c9; font-size: 26px; font-weight: 500; letter-spacing: 0.5px; text-transform: capitalize; margin: 0 0 3px; } .box .post{ font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 7px; display: block; } .box .icon{ padding: 0; margin: 0; list-style: none; } .box .icon li{ margin: 0 3px; display: inline-block; } .box .icon li a{ color: #fff; background-color: #0150c9; font-size: 13px; line-height: 31px; height: 30px; width: 30px; border-radius: 10px 50px/30px 10px; display: block; transition: all 0.3s ease 0s; } .box .icon li a:hover{ box-shadow: 3px 3px rgba(0,0,0,0.2); } @media only screen and (max-width:990px){ .box{ margin: 0 0 30px; } }