masonry.css

CSS stylesheet icon masonry.css — CSS stylesheet, 1 KB (1933 bytes)

File contents

/* ------------------------------------------------------------------------------ Masonary text over image grid */


.masonry {
    column-count: 5;
    margin: 0;
    padding: 0;
    -moz-column-gap: .5em;
    -webkit-column-gap: .5em;
    column-gap: .5em;
    margin-bottom: -5px
}

.m-item {
    display: inline-block;
    width: 100%;
    height: auto;
    position:relative;
    clear:none;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border: 1px red;
    margin-bottom: 5px;
    overflow: hidden
}

.m-item img {
    width: 100%;
    position:relative;
    z-index:1;
    margin-bottom: 0px;
}

#content-body .m-item p { 
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .9;
  color: #fff;
  text-transform: capitalize;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  display:block;
  position:absolute;
  width:100%;
  text-align:left;
  padding: 10px 20px 10px 10px;
  margin: 0px;
  z-index:2;
  bottom: 0px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 1));
}

#content-body .m-item p .subline {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -.02em;
}

@media all and (max-width: 379px) {
.image-left {float: none; margin: 0;}
}

@media all and (max-width: 399px) {
    .masonry {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
    #gallery {padding: 0em 0em;}
    #gallery h2, #gallery h3, .discreet {padding: 20px 15px 20px 15px; margin: 0px;}
}

@media all and (min-width: 400px) and (max-width: 769px) {
    .masonry {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
    #gallery {padding: 0em .5em;}
    
}

@media all and (min-width: 770px) {
    .masonry {
        -moz-column-count: 5;
        -webkit-column-count: 5;
        column-count: 5;
    }
}