.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
}

.portfolio-grid-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.portfolio-grid-item .style-grid {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px; /* Add padding only on the bottom */
  min-width: 0;
}

.portfolio-grid-item .style-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  min-width: 0;
}

.portfolio-grid-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px; /* Add gap between image and title */
}
