/* Scope only this template */
.sg-template-label-below .sg-item {
  display: block;
  text-align: center;
  margin: 5px;
  position: relative;
}

.sg-template-label-below .sg-item-image {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Remove blackout overlay only */
.sg-template-label-below .sg-item-overlay {
  display: none !important;
}

/* Keep the search icon */
.sg-template-label-below .sg-item-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  pointer-events: none; /* lets clicks go through */
}

/* Animate search icon on hover */
.sg-template-label-below .sg-item-content .fa {
  transform: scale(0);
  transition: transform .4s, opacity .4s;
  font-size: 30px;
  opacity: 0;
}
.sg-template-label-below .sg-item:hover .sg-item-content .fa {
  transform: scale(1);
  opacity: 1;
}

/* Caption below image */
.sg-template-label-below .sg-caption {
  margin: 8px 5px 14px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
  color: inherit;
  opacity: 0.95;
  word-wrap: break-word;
}

