.fancybox-custom-caption {
  position: relative !important;
  background: rgba(0, 0, 0, 0.85);
  padding: 1.5rem;
  color: #fff;
  text-align: left;
  max-height: 40vh;
  overflow-y: auto;
}
.fancybox-custom-caption h3 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.fancybox-custom-caption p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .fancybox-custom-caption {
    padding: 1rem;
  }
  .fancybox-custom-caption h3 {
    margin-bottom: 0.5rem;
  }
}

/* Card styles */
.project-card__content {
  padding: 1.25rem;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.project-card__title {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
}
.project-card__description {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* Ensure Fancybox caption is always visible */
.fancybox__caption {
  position: relative !important;
  bottom: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
}

/* Improve touch area for mobile */
.project-card__image {
  display: block;
  position: relative;
  cursor: pointer;
}
.project-card__image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card__image:hover::after {
  opacity: 1;
}

/* Service card image link styles */
.service-card-two__image-link {
  display: block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.service-card-two__image-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card-two__image-link:hover::after {
  opacity: 1;
}
.service-card-two__image-link img {
  display: block;
  width: 100%;
  height: auto;
}