/* ===== Galerie Projets BUILDEX — filtres + slider lisible ===== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.gallery-filters button {
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #333;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.gallery-filters button:hover {
  border-color: #c0392b;
  color: #c0392b;
}
.gallery-filters button.active {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.gallery-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.slider-frame {
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 65vh;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.slider-nav {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.slider-nav:hover {
  background: #c0392b;
  color: #fff;
  transform: scale(1.06);
}

.slider-meta {
  max-width: 900px;
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}
.slider-caption {
  font-weight: 700;
  color: #222;
}
.slider-counter {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .gallery-slider {
    gap: 8px;
  }
  .slider-nav {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .gallery-filters button {
    padding: 7px 14px;
    font-size: 13px;
  }
}
