body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: oklch(0.97 0.005 325);
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cards li {
    display: flex;
    flex-direction: column;
    /* We veranderen 'flex: 1 1 18rem' naar 'flex: 0 1 280px' of geven een max-width */
    flex: 0 1 280px; 
    max-width: 320px; /* Zorgt ervoor dat een kaart nooit breder wordt dan dit,zelfs niet als hij alleen staat */
    position: relative;
    isolation: isolate;  
    background-color: oklch(0.99 0.003 325);
    border: 1px solid oklch(0.9067 0 0);
    box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
    transition: box-shadow 0.3s ease;
    border-radius: .5rem;  
    overflow: hidden;  
    z-index: 1;
}

.cards li:hover,
.cards li:has(a:focus-visible) {
    box-shadow: 0 0 .2rem #0006, 0 0 2rem #0003; 
}

.cards li:hover::before,
.cards li:has(a:focus-visible)::before {
    scale: 1;
    border-radius: 0;
    transition: scale .2s ease-in-out, border-radius .2s ease-in-out .05s;
}

.cards img {
    order: -1;
    width: 100%;
    height: 160px;         
    object-fit: contain; /* Houdt de afbeelding heel */
    background-color: #ffffff; /* Witte achtergrond voor transparantie */
    padding: 0.5rem;
    z-index: 1;
}

.cards a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
}

.cards .content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    background-color: oklch(0.99 0.003 325);
    z-index: 3;
}

.cards h3, .cards p {
    margin: 0;
}

.cards h3 {
    font-weight: 700;       
}

.cards li::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    mix-blend-mode: overlay;
    background-color: oklch(.2 .2 264 / .6); 
    scale: 0;                                 
    border-radius: 50%;                      
    transition: scale .8s ease-in-out .5s, border-radius 1s ease-out .5s;
}