Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* new gallery (image two column) */
- @media(max-width: 575px) {
- .gallery-wrapper .gallery-lists .gallery-item {
- flex: 50%;
- padding: 5px;
- min-width: 50%;
- min-height: 50%;
- max-width: 50%;
- }
- .gallery-wrapper .gallery-lists .gallery-item a {
- position: relative;
- display: block;
- height: 100%;
- }
- .gallery-wrapper .gallery-lists .gallery-item .lazy-wrapper {
- position: relative;
- width: 100%;
- height: 100%;
- }
- .gallery-wrapper .gallery-lists .gallery-item .lazy-wrapper:before {
- content: "";
- width: 100%;
- height: 0;
- padding-bottom: 100%;
- display:block;
- background: #eee;
- z-index: -1
- }
- .gallery-wrapper .gallery-lists .gallery-item img {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- z-index: 2;
- object-fit: cover;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement