/* Portfolio overrides: tags and thumbnail refinements */

/* Grid thumbnails: subtle polish to keep visuals professional */
.portfolio .portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  aspect-ratio: 1 / 1; /* ensure compact square thumbnails */
}

.portfolio .portfolio-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tag badges below each item and inside modal */
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: .5rem;
}

.badge-tag {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  font-size: .75rem;
  border-radius: 999px;
  line-height: 1.1;
}

.badge-tag:hover {
  background: #eef2f7;
  border-color: #d1d5db;
}

.portfolio-modal .badge-tag {
  font-size: .8rem;
  padding: 5px 12px;
}

/* Portfolio titles shown above images with ellipsis */
.portfolio-title {
  font-weight: 600;
  font-size: .95rem;
  color: #2c3e50;
  margin-bottom: .35rem;
  display: block;
  max-width: 100%;
  line-height: 1.25;
  min-height: 1.25em; /* keep consistent height across cards */
  white-space: nowrap !important; /* enforce single line */
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Carousel spacing tweaks */
.portfolio .carousel .row.g-4 {
  margin-left: 0;
  margin-right: 0;
}

.portfolio .carousel .col-lg-3 { /* ensure consistent card spacing in slides */
  margin-bottom: 1rem;
}

/* Place indicators below items instead of overlay */
.portfolio .carousel .carousel-indicators {
  position: static;
  margin-top: .75rem;
}

/* Make indicators small, subtle dots */
.portfolio .carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
}
.portfolio .carousel .carousel-indicators .active {
  background-color: rgb(var(--bs-primary-rgb));
}

/* Top-right controls look minimal */
.portfolio-controls .btn {
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  background-color: rgb(var(--bs-primary-rgb));
  border-color: rgb(var(--bs-primary-rgb));
  color: #fff;
}
.portfolio-controls .btn:hover {
  background-color: rgba(var(--bs-primary-rgb), .9);
  border-color: rgba(var(--bs-primary-rgb), .9);
}
.portfolio-controls .btn i {
  color: #fff;
}