.header-container {
  margin: 0 auto;
  text-align: center;
}

.header-container h2 {
  text-decoration: underline;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  max-width: clamp(300px, 95vw, 800px);
  margin: 0 auto;
}

.work-card {
  display: flex;
  flex-flow: column nowrap;
  background-color: #fdfaf3;
  border-radius: 12px;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid transparent;
}

.work-card:hover {
  transform: translateY(-5px); /* Lifts the card up slightly */
  box-shadow: 2px 8px 15px rgba(0, 0, 0, 0.5); /* Deepens the shadow */
  border-color: darkorange; /* Subtle highlight */
}

.work-card img {
  min-width: 0px;
  min-height: 0px;
  width: 100%;
  height: 200px; /* Keeps all card images a uniform height */
  object-fit: cover; /* Crops the image perfectly without stretching it */
  border-bottom: 3px solid darkorange; /* Ties in your accent color */
  object-fit: contain;
  display: block;
}

.work-card h4 {
  margin: 15px 15px 5px 15px;
  font-size: 22px;
  color: #111111;
  font-family: "Georgia", serif; /* Matches your heading font */
}

.work-card p {
  margin: 0 15px 20px 15px;
  font-size: 16px;
  color: #444444;
  line-height: 1.4;
}

.read-button {
  margin: 0 auto 10px auto;
  color: darkorange;
  text-decoration: none;
  display: block;
  background: whitesmoke;
  border-radius: 15px;
  border: solid 1px black;
  width: 50%;
  height: 40px;
  font-size: 1rem;
}

.read-button:hover {
  transform: translateY(-5px); /* Lifts the card up slightly */
  box-shadow: 2px 8px 15px rgba(0, 0, 0, 0.5); /* Deepens the shadow */
  border-color: transparent; /* Subtle highlight */
}