/*! ============================================================================= */
/*! Special stylings for instagram latest posts widget. */
/*! ============================================================================= */
.vc-instagram-widget__title {
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px;
}

.vc-instagram-widget__title a {
  text-decoration: none;
}

.vc-instagram-widget .instagram-pics {
  list-style: none;
  margin: -6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.vc-instagram-widget .instagram-pics > li {
  position: relative;
  flex: 1 1;
  min-width: 0;
  padding: 6px;
}

.vc-instagram-widget .instagram-pics > li:before {
  content: '';
  display: block;
  padding-top: 100%;
}

@media (max-width: 991.98px) {
  .vc-instagram-widget .instagram-pics > li {
    flex: 0 0 50%;
  }
}

@media (max-width: 767.98px) {
  .vc-instagram-widget .instagram-pics > li {
    flex: 0 0 100%;
  }
}

.vc-instagram-widget .instagram-pics > li > a {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 20;
  text-indent: -9999px;
  color: transparent;
}

.vc-instagram-widget .instagram-pics > li .hover-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #ffffff;
  opacity: 0;
  transition: opacity 250ms;
  will-change: opacity;
}

.vc-instagram-widget .instagram-pics > li .hover-overlay__icon {
  will-change: opacity;
  opacity: 0;
  transition: opacity 250ms;
}

.vc-instagram-widget .instagram-pics > li .hover-overlay__icon > svg {
  height: 26px;
  width: auto;
  fill: currentColor;
  stroke: currentColor;
}

.vc-instagram-widget .instagram-pics > li .hover-overlay__text {
  will-change: transform, opacity;
  transform: translateY(5px) translateZ(0);
  opacity: 0;
  transition: transform 250ms, opacity 250ms;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 2px;
}

.vc-instagram-widget .instagram-pics > li:hover .hover-overlay {
  opacity: 1;
}

.vc-instagram-widget .instagram-pics > li:hover .hover-overlay__icon {
  opacity: 1;
}

.vc-instagram-widget .instagram-pics > li:hover .hover-overlay__text {
  transform: translateY(0) translateZ(0);
  opacity: 1;
}

.vc-instagram-widget .instagram-pics img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  z-index: 5;
  -o-object-fit: cover;
     object-fit: cover;
}
