/* Grid de imágenes */
.ghc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Tarjeta individual */
.ghc-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Zoom en hover */
.ghc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-in-out;
}

.ghc-gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay con degradado */
.ghc-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.4) 60%,
    transparent 100%
  );
  box-sizing: border-box;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease-in-out;
}

.ghc-gallery-item:hover .ghc-caption-overlay {
  opacity: 1;
  transform: translateY(0);
}

.ghc-title {
  margin: 0 0 4px 0 !important;
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.ghc-subtitle {
  margin: 0 !important;
  color: #38bdf8 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

@media (max-width: 767px) {
  .ghc-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ghc-gallery-item {
    border-radius: 12px;
  }

  .ghc-caption-overlay,
  .ghc-gallery-item:hover .ghc-caption-overlay {
    padding: 32px 16px 16px;
    opacity: 1;
    transform: translateY(0);
  }

  .ghc-title {
    font-size: 1.1rem !important;
  }

  .ghc-subtitle {
    font-size: 0.85rem !important;
  }
}
