.grid-service {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.grid-service img {
  height: 100%;
}

.services-title {
  color: #d4af37;
  padding-bottom: 2rem;
}

.ac-media-hover {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  margin: 0rem 0rem 2rem 0rem;
}

.ac-media-hover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0.5 !important;
  transition: opacity 0.8s ease-in-out;
}

.ac-media-hover img.active {
  display: block;
  opacity: 1;
}

/* Overlay text */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 40%;
  z-index: 10;
}

.overlay-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #acaaaa;
}

.overlay-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.overlay-text a {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #d4af37;
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}

.overlay-text a:hover {
  background: #d4af37;
  color: #ffffff;
}

.catClass {
  text-align: center;
}
.ac-media-hover video {
    opacity: 0.5 !important;
    transition: opacity 0.8s ease-in-out;
}

/* All mobile devices */
@media screen and (max-width: 767px) {
  .overlay-text {
    max-width: 70%;
  }
}