text-over-img-grid.css

CSS stylesheet icon text-over-img-grid.css — CSS stylesheet, 1 KB (1593 bytes)

File contents

#core-content #content-body h2 {
    color: #fff;
    margin-bottom: 0px;
}

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

.item {
    display: inline-block;
    margin: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    position:relative;
    clear:none;
    overflow:hidden;
    margin-bottom: 0px;
    padding: 5px; 
    padding-bottom: 0px;
    border: 1px solid #ccc;
}

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

.item h2 {
  font-size: 2.5em;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: normal;
  letter-spacing: -.07em;
  color: #fff;
  text-shadow: 3px 3px 8px #000;
  display:block;
  position:absolute;
  width:100%;
  text-align:left;
  padding: 0px 10px 18px 10px;
  bottom: -11px;
  z-index:2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}

@media only screen and (max-width: 500px) {
    .masonry {
        -moz-column-count: 1;
        -webkit-column-count: 11;
        column-count: 1;
    }
}

@media only screen and (min-width: 501px) {
    .masonry {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}

@media only screen and (min-width: 1170px) {
    .masonry {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}