/* Slider proyectos
----------------------------------*/

/* CONTAINER */
.slider-wrapper {
  overflow: hidden;
  padding: 20px;
}

.slider {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

/* SLIDES */
.slides {
  /*min-width: calc(25% - 15px);*/ /* 4 per row */
  min-width: 320px;
  width: 320px;
  height: 400px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  color: white;
  background: linear-gradient(to top, #000, transparent);
}

.overlay h3 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
}

.overlay p {
  margin: 5px 0 0;
  font-size: 14px;
}

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

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox::after {
  content: "✕";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .slides { min-width: calc(33.33% - 14px); }
}

@media (max-width: 768px) {
  .slides { min-width: calc(50% - 10px); }
}

@media (max-width: 480px) {
  .slides { min-width: 100%; }
}
