:root {
  --page-color: #f0ecda;
}

@media (min-width: 1200px) {
    
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 80%;
        margin-inline: auto;
        padding-inline: 1rem;
    }

    .container-md > .row > .col-xl-8.offset-xl-2,
    .container-md > .row > .col-lg-10.offset-lg-1 {
        flex: 0 0 100%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

}

/* Page-specific styling for the project cards. */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(64, 64, 64, 0.18);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--page-color);
  box-shadow: 0 0.4rem 1.5rem rgba(40, 40, 40, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.7rem 1.8rem rgba(40, 40, 40, 0.14);
}

.project-card-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.project-card-main:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -3px;
}

.project-card-image {
  display: block;
  width: 100%;
  height: 15rem;
  flex: 0 0 15rem;
  object-fit: cover;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  flex: 1 1 auto;
  padding: 1rem clamp(1rem, 2.5vw, 1.4rem) 0.65rem;
}

.project-card-title {
  margin: 0;
  border: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.15;
}

.project-card-description {
  overflow-wrap: anywhere;
  color: rgba(40, 40, 40, 0.78);
  font-size: clamp(15px, 1.8vw, 17px);
  
  p {
    margin-top: 0.25rem;
    line-height: 1.45;
  }

  br {
    display: block;
    content: "";
    margin: 0.15rem 0;
  }
}


.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 0 clamp(1rem, 2.5vw, 1.4rem) 0.8rem;
  color: rgba(40, 40, 40, 0.62);
  font-size: 0.8rem;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.project-card-tag {
  margin: 0;
}

.project-card-tag a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(64, 64, 64, 0.2);
  border-radius: 999px;
  color: inherit;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.project-card-tag a:hover,
.project-card-tag a:focus-visible {
  border-color: rgba(64, 64, 64, 0.42);
  background: rgba(64, 64, 64, 0.09);
  color: inherit;
}

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

  .project-card-body,
  .project-card-footer {
    padding-inline: 1rem;
  }
}
