/* Avatar card styles - non-critical CSS moved here */
.avatar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    width: 100%; /* Full width */
    max-width: 500px; /* Limit max width on larger screens */
    margin: 0 auto; /* Center the cards */
}

.avatar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.avatar-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive adjustments for desktop and small mobile */
@media (min-width: 769px) {
    main {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .avatar-card {
        max-width: 120px; /* Set max width for desktop view */
    }
}

@media (max-width: 480px) {
    .avatar-card {
        max-width: none; /* Remove max width constraint on mobile */
    }
}