/* GENERAL */
.gallery-item {
  min-height: 260px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  /* transition: transform .4s ease; */
}

/* IMAGE TILE */
.gallery-item.image {
  background-size: cover;
  background-position: center;
}

.gallery-item.image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity .4s;
}

.gallery-item.image:hover::after {
  opacity: 1;
}

/* IMAGE ZOOM */
.gallery-item.image:hover {
  transform: scale(1.05);
}

/* HERO */
.hero {
  background: url("img/hero.jpg") center/cover no-repeat;
  color: #fff;
}

.hero-overlay {
  background: rgba(0,0,0,0.6);
  height: 100%;
  padding: 40px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
}

/* COLORS */
.light { background: #fff; }
.blue { background: #0b7bbf; color: #fff; }
.yellow { background: #f2b705; color: #fff; }

/* NUMBER */
.number {
  font-size: 48px;
  font-weight: 700;
  color: #999;
}

.number.white { color: #fff; }

/* BUTTON */
.btn-more {
  position: absolute;
  bottom: 20px;
  left: 25px;
  background: #5f2427;
  color: #fff;
  font-size: 12px;
  padding: 12px 28px;
  text-decoration: none;
}

/* HOVER TEXT EFFECT */
.gallery-item:hover h5 {
  text-decoration: none;
}

/* SCROLL ANIMATION */
/* .reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
} */
.image-with-hover-overlay {
  position: relative;
  display: block;
  overflow: hidden;
}

.image-with-hover-overlay img {
  width: 100%;
  transition: transform 0.4s ease;
}

/* Zoom */
.image-hover-zoom:hover img {
  transform: scale(1.1);
}

/* Overlay */
.image-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-with-hover-overlay:hover .image-hover-overlay {
  opacity: 1;
}

/* Overlay Content */
.overlay-content {
  position: absolute;
  inset: 0;
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* MOBILE FIX */
@media (max-width: 767px) {
  .image-hover-overlay {
    opacity: 1;
  }

  .overlay-content p {
    font-size: 14px;
  }
}
