.chroma-grid {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    --x: 50%;
    --y: 50%;
    --r: 300px;
}

.chroma-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 380px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
    background: var(--card-gradient);
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-color: rgba(255, 255, 255, 0.2);
    cursor: default;
    z-index: 10;
}

.chroma-card:hover {
    border-color: var(--card-border);
}

.chroma-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 12;
}

.chroma-card:hover::before {
    opacity: 1;
}

.chroma-img-wrapper {
    position: relative;
    z-index: 11;
    flex: 1;
    padding: 15px;
    box-sizing: border-box;
    background: transparent;
}

.chroma-img-wrapper img {
    width: 100%;
    height: 300px;
    /* Fixed height for consistency */
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    /* subtle background for transparent images */
}

.chroma-info {
    position: relative;
    z-index: 11;
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-family: system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chroma-info .name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.chroma-info .role {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.chroma-overlay,
.chroma-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: grayscale(1) brightness(0.78);
    -webkit-backdrop-filter: grayscale(1) brightness(0.78);
    background: rgba(0, 0, 0, 0.001);
}

.chroma-overlay {
    z-index: 20;
    mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0%, transparent 15%, rgba(0, 0, 0, 0.1) 30%, white 100%);
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0%, transparent 15%, rgba(0, 0, 0, 0.1) 30%, white 100%);
}

.chroma-fade {
    z-index: 21;
    mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), white 0%, white 15%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), white 0%, white 15%, transparent 100%);
    transition: opacity 0.25s ease;
}