.project-button {
  display: inline-block;
  margin-top: auto;
  padding: 10px 16px;
  background-color: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
  text-align: center;
}

.project-budget {
    display: block;
    padding: 3px;
    background-color: #4CAF50;
    color: white;
    width: fit-content;
    border-radius: 4px;
    font-size: 12px;
    margin: 12px 0;
}

.project-button:hover {
  background-color: #005bb5;
}

.project-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #777;
  text-align: center;
}


  .portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-family: Arial;
}

.project-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 16px;
    box-sizing: border-box;
    flex: 1 1 calc(50% - 20px);
    height: fit-content;
    display: flex;
    max-height: 700px;
    flex-direction: column;
    justify-content: flex-start;
}

.project-image {
  height: 100%;
  min-height: 371px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

.project-image img {
  cursor: pointer;
    width: 100%;
    height: max-content!important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.project-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.4;
}


/*.trimmed-desc {*/
/*  display: -webkit-box;*/
  -webkit-line-clamp: 5; /* adjust based on average text length */
/*  -webkit-box-orient: vertical;*/
/*  overflow: hidden;*/
/*  text-overflow: ellipsis;*/
/*}*/




/* Align last card left when odd number of items */
@media (min-width: 768px) {
  
  .portfolio-container {
    justify-content: flex-start;
  }

  .portfolio-container:has(.project-card:nth-child(odd):last-child) {
    justify-content: flex-start;
  }


}


@media screen and (max-width: 600px) {
  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    flex: 1 1 100% !important;
    max-width: 95%;
  }

  .project-image {
  min-height: revert;
}


}


