.project-title {
    position: relative;
}

.project-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.project-header h2 {
    margin: 0;
}

.project-links {
    font-size: 0.85em;
    white-space: nowrap;
}

.project-meta {
    float: right;
    margin-top: -3.3em;
    font-size: 0.85em;
    opacity: 0.85;
    white-space: nowrap;
}

.project-meta a {
    text-decoration: none;
}

/* Names inside type annotations */
.highlight .sa,
.highlight .na {
    color: var(--md-code-hl-name-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Optional: tighter evolution row */
.gallery--evolution {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}



/* Mobile: stack links under title
@media (max-width: 600px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-links {
        margin-top: 0.25rem;
    }
} */