.trombinoscope-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 100%;
}

.trombinoscope-item {
    position: relative;
    width: 140px;
    flex: 0 0 140px;
    /* 645 / 500 = 1.29 aspect ratio */
    aspect-ratio: 500 / 645;
    overflow: hidden;
    border-radius: 4px;
}

.trombinoscope-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trombinoscope-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* 400px / 500px = 80% */
    width: 80%;
    /* 150px / 645px = 23.25% */
    height: 23.25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    color: white;
    padding: 0.5rem;
    pointer-events: none;
}

.trombinoscope-name {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.trombinoscope-role {
    font-size: 0.7rem;
    font-style: italic;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .trombinoscope-grid {
        gap: 0.75rem;
    }

    .trombinoscope-item {
        width: 130px;
        flex: 0 0 130px;
    }

    .trombinoscope-name {
        font-size: 0.8rem;
    }

    .trombinoscope-role {
        font-size: 0.65rem;
    }
}