/* Galería de fotos para la página de tour */
.tour-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.tour-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1;
  cursor: pointer;
  background: #f8f8f8;
  box-shadow: 0 4px 12px rgba(41, 68, 60, 0.08);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.tour-gallery-item:hover {
  box-shadow: 0 8px 24px rgba(41, 68, 60, 0.16);
  transform: translateY(-4px);
}

.tour-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tour-gallery-item:hover img {
  transform: scale(1.08);
}

.tour-gallery-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(199, 162, 76, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-gallery-item:hover .tour-gallery-item__overlay {
  opacity: 1;
}

.tour-gallery-item__overlay i {
  color: #fff;
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.tour-gallery-item:hover .tour-gallery-item__overlay i {
  transform: scale(1.1);
}

/* Personalización Fancybox */
.fancybox__container {
  z-index: 9999;
}

.fancybox__backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.fancybox__caption {
  background: rgba(41, 68, 60, 0.95);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.fancybox__nav {
  background: transparent;
}

.fancybox__button {
  color: #c7a24c;
  background: transparent;
}

.fancybox__button:hover {
  color: #fff;
  background: rgba(199, 162, 76, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .tour-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }

  .tour-gallery-item {
    aspect-ratio: 1;
  }

  .tour-gallery-item__overlay i {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .tour-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .tour-gallery-item {
    border-radius: 12px;
  }

  .tour-gallery-item__overlay i {
    font-size: 1.5rem;
  }
}

/* Animación de carga */
@keyframes gallery-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tour-gallery-item {
  animation: gallery-fade-in 0.4s ease-out;
}

.tour-gallery-item:nth-child(1) { animation-delay: 0.05s; }
.tour-gallery-item:nth-child(2) { animation-delay: 0.1s; }
.tour-gallery-item:nth-child(3) { animation-delay: 0.15s; }
.tour-gallery-item:nth-child(4) { animation-delay: 0.2s; }
.tour-gallery-item:nth-child(5) { animation-delay: 0.25s; }
.tour-gallery-item:nth-child(6) { animation-delay: 0.3s; }
.tour-gallery-item:nth-child(7) { animation-delay: 0.35s; }
.tour-gallery-item:nth-child(8) { animation-delay: 0.4s; }
.tour-gallery-item:nth-child(n+9) { animation-delay: 0.45s; }
