/* --- Portfolio Tabs Styling --- */
.custom-tabs .nav-link {
  color: var(--txt);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-weight: 600;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.custom-tabs .nav-link:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.custom-tabs .nav-link.active {
  color: var(--white);
  border-bottom-color: var(--maroon);
  background: transparent;
}

/* --- Portfolio Card Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 1rem 0;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portfolio-card-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-content {
  width: max-content !important;
}

/* --- Photo Count Badge --- */
.photo-count-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  backdrop-filter: blur(4px);
}
