.project-awards {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.4rem;
}

.project-awards__badge {
    width: auto;
    height: 2.25rem;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.project-awards__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.25rem;
    padding: 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
    background: #6d28d9;
    border-radius: 9999px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

/* Past Projects cards: tags over the bottom of the thumbnail. */
.project-awards--thumbnail {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
}

.project-awards--thumbnail .project-awards__badge,
.project-awards--thumbnail .project-awards__tag {
    height: 1.75rem;
}

.project-awards--thumbnail .project-awards__tag {
    padding: 0 0.6rem;
    font-size: 0.7rem;
}

/* Past project page: under the team / client line, and above the category pills on phones. */
.project-awards--meta {
    margin-top: 1rem;
}

.project-awards--mobile {
    justify-content: center;
    margin-top: 0.75rem;
}

.project-awards--mobile .project-awards__badge,
.project-awards--mobile .project-awards__tag {
    height: 2rem;
}

/* Past Projects page: semester sections of award-winning project cards. */
.past-projects {
    flex: 1;
    width: 100%;
    max-width: 80rem;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 2.5rem 1rem 5rem;
}

.past-projects__title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.past-projects__intro {
    margin: 0 0 2.5rem;
    opacity: 0.8;
}

.past-projects__term + .past-projects__term {
    margin-top: 3rem;
}

.past-projects__heading {
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
    .past-projects {
        padding: 3rem 2rem 6rem;
    }
}
