body {
  font-family: 'Titillium Web', sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
}

/* Contenedor principal */
.items-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; /* separa los cuadros */
  width: 100%;
  max-width: 1200px; /* 👈 limita el ancho total del grid */
  margin: 0 auto;
  box-sizing: border-box;
  justify-items: center;
}

.content-scroll-area {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: hidden; /* Evita que se salga del borde */
  padding: 40px 0;
}

/* Cada item */
.item {
  width: 100%;
  display: flex;
  flex-direction: column;
}


/* Imagen del item */
.item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}


/* Hover */

.item img:hover {
  transform: scale(1.05);
}

/* Texto debajo */
.item-text {
  margin-top: 10px;
  text-align: center;
}

.item-text h3 {
  font-weight: 600;
  margin: 4px 0;
  font-size: 18px;
}

.item-text p {
  font-weight: 400;
  font-size: 15px;
  color: #666;
}

/* ----------------- LIGHTBOX ----------------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev, .next {
  color: white;
  font-size: 50px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  padding: 10px;
}

.prev { left: 30px; }
.next { right: 30px; }

.prev:hover, .next:hover {
  color: #ddd;
}
@media (max-width: 768px) {
  .items-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
