.horizontal-gallery-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; /* <-- EFECTO SUAVE */
  padding: 1rem 0;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.horizontal-gallery {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  padding: 0 1rem;
}

.horizontal-gallery .gallery-item {
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.horizontal-gallery .gallery-item img,
.horizontal-gallery .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#lightbox-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 9999;
}

#lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
}

#lightbox-overlay img,
#lightbox-overlay video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
