.flex {
    margin: 0 10px;
    display: grid;
    margin: 0 !important;
    width: 100%;
    justify-content: center;
    grid-template-columns: 33% 33% 33%;
    flex-wrap: wrap;
    gap: 20px;

    @media (max-width: 600px) {
        grid-template-columns: 40% 40%;
    };
}


.flex > li { 
    height: auto;
    list-style-type: none
}

.flex > li:hover{ 
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.links {
    position: relative;
}

.linka {
    z-index: 20;
    width: 100%;
    height: 100%;
}

.links:hover::before {
    opacity: 0.8; /* Make the overlay visible on hover */
    cursor: pointer;
}

/* .links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
} */

.desc > h5 {
    margin-top: 5px;
}