/* 12.03 Gallery CSS */
.justified-gallery {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.single-gallery {
  display: block;
  position: relative;
  overflow: hidden;
}

.single-gallery .thumbnail {
  position: relative;
}

.single-gallery .thumbnail::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  -webkit-transition: all .5s ease 0s;
  -o-transition: all .5s ease 0s;
  transition: all .5s ease 0s;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.single-gallery .thumbnail img {
  width: 100%;
}

.single-gallery .content {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 20px;
  -webkit-transition: all .5s ease 0s;
  -o-transition: all .5s ease 0s;
  transition: all .5s ease 0s;
  text-align: center;
  opacity: 0;
}

.single-gallery .content .title {
  font-size: 34px;
  line-height: 1.42;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0;
}

.single-gallery .content .description p {
  color: #FFFFFF;
  margin-bottom: 0;
}

.single-gallery:hover .thumbnail::before {
  opacity: 1;
}

.single-gallery:hover .content {
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  opacity: 1;
}