/* Masonry Grid Layout */
.project-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 600px) {
  .project-grid {
    column-count: 2;
  }
}

@media (min-width: 1100px) {
  .project-grid {
    column-count: 3;
  }
}

/* Card Styling */
.project-card {
  break-inside: avoid;
  background-color: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Media styling */
.project-media img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

.project-media .responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.project-media .responsive-embed iframe,
.project-media .responsive-embed object,
.project-media .responsive-embed embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Content Styling */
.project-content {
  padding: 1.25rem;
}

.project-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.project-title a {
  color: #24292e;
  text-decoration: none;
}

.project-title a:hover {
  text-decoration: underline;
  color: #0366d6;
}

.project-meta {
  display: block;
  font-size: 0.85rem;
  color: #6a737d;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tag {
  background-color: #f1f8ff;
  color: #0366d6;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Card Affordance */
.project-content .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #0366d6;
  text-decoration: none;
}

.project-content .read-more:hover {
  text-decoration: underline;
}