/* Modal general */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Oculto */
.hidden {
  display: none;
}

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

/* Contenedor blanco del modal */
.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 90%;
  width: 800px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* Título */
.modal-content h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;      /* necesario para los botones absolutos */
  overflow: hidden;
  width: 100%;
  height: 100%;            /* ajusta según prefieras */
  display: flex;
  align-items: center;     /* centra el contenido verticalmente */
  justify-content: center; /* opcional, para centrar imágenes si no llenan todo el ancho */
}

/* Contenedor de imágenes en fila */
.carousel-container {
  display: flex;
  transition: transform 0.3s ease-in-out;
  height: 100%;   /* ocupar toda la altura del wrapper */
  align-items: center; /* centra las imágenes verticalmente */
}

/* Imagen del carrusel */
.carousel-container img {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  max-height: 80vh;   /* no excede altura del wrapper */
  object-fit: contain;
}

/* Botones navegación */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
