.customers ul.photos{ position: relative; padding: 10px 10px 0; } .customers ul.photos li{ display: none; position: absolute; top: 0; left: 0; } .customers ul.photos li.show{ display: block; position: relative; } .customers ul.photos li span{ display: block; position: relative; width: 100%; height: 0; padding-top: 75%; line-height: 0; background-color: #eee; } .customers ul.photos li span img{ display: block; position: absolute; top: 50%; left: 50%; height: 100%; transform: translate(-50%, -50%); } .customers ul.photos li .name{ text-align: center; margin: 5px 0 0; } .customers ul.photos li .name b{ display: inline-block; font-weight: normal; } .customers ul.thumbs{ margin: 0 -1%; padding: 10px; } .customers ul.thumbs li{ display: inline-block; vertical-align: top; width: 31.3%; margin: 0 1%; } .customers ul.thumbs li span{ cursor: pointer; display: block; position: relative; width: 100%; height: 0; padding-top: 75%; background-color: #eee; line-height: 0; } .customers ul.thumbs li span:before{ content: ''; display: block; position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; border: 2px solid #33bdba; box-sizing: border-box; transform: scale(0.8); opacity: 0; transition: all .3s; } .customers ul.thumbs li:hover span:before, .customers ul.thumbs li.selected span:before{ transform: scale(1); opacity: 1; } .customers ul.thumbs li span img{ display: block; position: absolute; top: 50%; left: 50%; height: 100%; transform: translate(-50%, -50%); } .customers ul.thumbs li .name{ font-size: 10px; margin: 5px 0 0; } .customers ul.thumbs li .name b{ font-weight: normal; } .customers ul.thumbs li .name strong{ display: block; font-weight: normal; margin: 5px 0 0; padding: 5px 0 0; border-top: 1px solid #ddd; } .customers p{ text-align:right; padding: 10px; } .customers p a{ text-decoration: underline; } .customers ul.list{ margin: 0 -1%; padding: 10px; } .customers ul.list li{ display: inline-block; vertical-align: top; width: 31.3%; margin: 0 1%; } .customers ul.list li a{ cursor: pointer; display: block; position: relative; width: 100%; height: 0; padding-top: 75%; background-color: #eee; line-height: 0; } .customers ul.list li .name{ font-size: 10px; margin: 5px 0 10px; } .customers ul.list li .name b{ font-weight: normal; } .customers ul.list li .name strong{ display: block; font-weight: normal; margin: 5px 0 0; padding: 5px 0 0; border-top: 1px solid #ddd; } .customers ul.list li a img{ display: block; position: absolute; top: 50%; left: 50%; height: 100%; transform: translate(-50%, -50%); } .pager{ position: relative; text-align: center; padding: 5px 10px; background-color: #9c844c; } .pager:first-of-type{ margin-bottom: 10px; } .pager a{ display: inline-block; position: absolute; top: 50%; padding: 5px; color: #fff; transform: translateY(-50%); border-radius: 3px; background-color: #AB9767; } .pager a:hover{ text-decoration: none; } .pager a.prev{ left: 10px; padding-right: 8px; } .pager a.next{ right: 10px; padding-left: 8px; } .pager div{ padding: 5px; } .btns{ text-align: center; margin: 5px 0 0; padding: 20px 0; border-top: 1px dashed #ccc; } .btns a{ display: inline-block; padding: 10px 30px; color: #fff; background-color: #AB9767; border: 1px solid #AB9767; border-radius: 3px; transition: all .3s; } .btns a:hover{ text-decoration: none; color: #AB9767; background-color: transparent; }