/* General Styling */
.f-links {
  color: white !important;
}
.f-links:hover {
  color: red !important;
  text-decoration: underline;
}

.portfolio-filters {
  list-style: none;
  padding: 0;
  text-align: center;
  margin-bottom: 30px;
}

.portfolio-filters li {
  display: inline-block;
  margin: 0 10px;
  cursor: pointer;
  padding: 10px 20px;
  background: #f0f0f0;
  border-radius: 5px;
}

.portfolio-filters .filter-active {
  color: white;
  background-color: #007bff;
}

/* Portfolio Item and Image Responsiveness */
.portfolio-item {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.portfolio-item.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

/* Portfolio Content: Ensure responsiveness */
.portfolio-content {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  width: 100%;
  padding: 20px;
  text-align: center;
}

.portfolio-content:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-info {
  padding: 10px;
  text-align: center;
}

.portfolio-info h4 {
  margin: 10px 0 5px;
}

.portfolio-info p {
  margin-bottom: 0;
}

/* Adjust for smaller screens */
@media (max-width: 767px) {
  .portfolio-item {
    width: 100% !important;
  }
}

.portfolio-item {
  /* Ensure there are no fixed widths, max-width, or any restrictions */
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* Optional: add a fallback for smaller screens */
@media (max-width: 767px) {
  .portfolio-item {
    margin-bottom: 30px !important; /* Adjust spacing for small screens */
  }
}