.gallery {
  overflow: hidden;
  background-color: #333;
  border: 4px solid #000;
  float: left;
  position: relative;
  margin-bottom: 15px;
  width: 100%;
  height: auto;
}
@media (min-width: 37.5em) {
  .gallery {
    width: 46%;
    height: 165px;
    margin-right: 7px;
    margin-left: 7px;
  }
}
@media (min-width: 61.5em) {
  .gallery {
    width: 31%;
    height: 160px;
    margin-right: 7px;
    margin-left: 7px;
  }
}

.gallery p {
  margin: 0;
}

.gallery.end {
  margin-right: 0;
}

.gallery .thmb {
  overflow: hidden;
  background: #fff;
}
@media (min-width: 37.5em) {
  .gallery .thmb {
    height: 135px;
  }
}
@media (min-width: 61.5em) {
  .gallery .thmb {
    height: 135px;
  }
}

.gallery .thmb img {
  float: none;
  margin: 0;
  padding: 0;
  border: none;
  display: block;
  width: 100%;
  height: auto;
  min-width: 100%;
  max-width: 100%;
  line-height: 0;
  padding: 0;
  margin: 0;
}

.gallery .title {
  margin-top: 2px;
  background-color: #333;
  position: absolute;
  bottom: 0;
  margin-bottom: 0;
  padding: 5px;
  border-top: 1px solid #313131;
  display: block;
  width: 100%;
}

.gallery .title a {
  color: #ccc;
  text-decoration: none;
}

.gallery .title a:hover {
  background-color: transparent;
  text-decoration: none;
  color: #fff;
}

.photo {
  position: relative;
  width: 200px;
  height: 120px;
  overflow: hidden;
  float: left;
  margin-right: 35px;
  margin-bottom: 35px;
  background: #222;
}

@media (min-width: 61.5em) {
  .photo.end {
    margin-right: 0;
  }
}

.photo a {
  display: block;
}

.photo img {
  float: none;
  margin: 0;
  padding: 0;
}

.photo .title {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #000;
  color: #fffeff;
  padding: 5px;
  display: block;
  width: 100%;
  margin: 0;
}

/* =Accent color
---------------------------------------------------------------------
*/
a {
  color: #5d7b9d;
}

/* =Override
---------------------------------------------------------------------
*/
.content {
  position: relative;
}
