/* ---------- Gallery Cards ---------- */
.gallery-inner {
  margin-top: 90px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  color: #fff;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.gallery-overlay h5,
.gallery-overlay .gal-desc  {
  color: #fff;
}
.gallery-overlay {
  padding-bottom: 0;
}
.gallery-overlay h5 {
  font-size: 16px;
  font-weight: 500;
}
.gallery-overlay .gal-desc {
  font-size: 12px;
  line-height: 15px;
  margin-bottom: 0;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* ---------- Magnific Popup Override ---------- */
.mfp-figure {
  position: relative;
}

/* ---------- Popup Hover Caption ---------- */
.popup-hover-caption {
  position: absolute;
  top: 50%; 
  left: 20px; 
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  max-width: 280px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001; /* Higher than Magnific Popup */
  pointer-events: none; /* Prevent interference with popup controls */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hide default Magnific Popup caption */
.mfp-title {
  display: none !important;
}

/* Show caption when hovering popup image */
/* .mfp-figure:hover .popup-hover-caption {
  opacity: 1;
  visibility: visible;
}

.popup-hover-caption p {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
  word-wrap: break-word;
}


@media (max-width: 768px) {
  .gallery-card img {
    height: 180px;
  }
  
  .popup-hover-caption {
    max-width: 70%;
    min-width: 150px;
    font-size: 12px;
    left: 15px;
    padding: 10px 15px;
  }
  
  .popup-hover-caption p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .popup-hover-caption {
    max-width: 80%;
    left: 10px;
    padding: 8px 12px;
  }
} */