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

.gallery-card {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.2s;
}

.gallery-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    display: block;
}

.gallery-card p {
    padding: 0.4rem;
    font-size: 0.8rem;
    font-family: var(--md-code-font);
    margin: 0;
}
