/* Grid galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 2100;
}

/* Butoane navigare */
.lightbox .prev,
.lightbox .next {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 2rem;
  width: 50px;      /* pătrat */
  height: 80px;     /* pătrat */
  border-radius: 4px; /* colțuri rotunjite ușor */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  transition: background 0.3s ease;
  z-index: 2200; /* mai mare decât close ca să fie vizibil corect */
}

.lightbox .prev:hover,
.lightbox .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

/* Paginare */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a {
  padding: 8px 14px;
  border-radius: 6px;
  background: #f0f0f0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: background 0.3s;
}
.pagination a:hover { background: var(--blue); color: white; }
.pagination a.active { background: var(--yellow); color: var(--dark); }
