.projects-grid {
  padding: 1rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem; }

.project-card {
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; }

.project-image {
  position: relative;
  width: 100%;
  height: auto;
  padding-top: 56.25%; }
  .project-image img {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; }
  .project-image .featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500; }

button.active {
  background: color-mix(in srgb, var(--accent) 15%, transparent); }

.project-content {
  padding-top: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column; }

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem; } }

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem; } }
