/*! ============================================================================= */
/*! Portfolio showcases (used on front pages). */
/*! ============================================================================= */
.vc-portfolio-categories__inner-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: -7px;
}

.vc-portfolio-categories__cat {
  flex: 1 0 25%;
  min-width: 0;
  padding: 7px;
}

@media (max-width: 991.98px) {
  .vc-portfolio-categories__cat {
    flex-basis: 50%;
  }
}

@media (max-width: 767.98px) {
  .vc-portfolio-categories__cat {
    flex-basis: 100%;
  }
}

/*! ================================= special styles for first design */
.vc-portfolio-category-s1 {
  position: relative;
  overflow: hidden;
  height: 267px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.vc-portfolio-category-s1__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 10;
  will-change: transform, opacity;
  transform: scale(1) translateZ(0);
  transition: opacity 300ms, transform 300ms;
}

.vc-portfolio-category-s1__image img {
  -o-object-fit: cover;
     object-fit: cover;
  font-family: 'object-fit: cover;';
  width: 100%;
  height: 100%;
}

.vc-portfolio-category-s1__roman-number {
  position: relative;
  z-index: 15;
  width: 70%;
  text-align: center;
  font-size: 72px;
  line-height: 1;
  color: inherit;
  margin-bottom: 23px;
  padding-bottom: 23px;
  border-bottom: 1px solid currentColor;
  opacity: 0.5;
  font-style: normal;
}

.vc-portfolio-category-s1__roman-number > span {
  font-style: inherit;
}

.vc-portfolio-category-s1__title {
  position: relative;
  z-index: 15;
  color: inherit;
  letter-spacing: 2px;
  text-align: center;
  font-style: normal;
}

.vc-portfolio-category-s1__link {
  text-indent: -9999px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
}

.vc-portfolio-category-s1:hover .vc-portfolio-category-s1__image {
  opacity: 1;
  transform: scale(1.02) translateZ(0);
}

/*! ================================= special styles for second design */
.vc-portfolio-category-s2 {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 360px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.vc-portfolio-category-s2__image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1 1;
  min-height: 0;
  min-width: 0;
  transition: opacity 250ms;
}

.vc-portfolio-category-s2__image img {
  max-width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.vc-portfolio-category-s2__caption {
  flex: 0 0 40%;
  padding-top: 20px;
  transition: opacity 250ms;
}

.vc-portfolio-category-s2__title {
  font-size: 24px;
  color: #000000;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1;
  margin: 0 0 5px;
}

.vc-portfolio-category-s2__visible-link {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
}

.vc-portfolio-category-s2__overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: transparent;
  text-indent: -9999px;
}

.vc-portfolio-category-s2:hover .vc-portfolio-category-s2__image,
.vc-portfolio-category-s2:hover .vc-portfolio-category-s2__caption {
  opacity: 0.6;
}
