.allactions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding:clamp(20px, 2vw, 50px);
    column-gap: clamp(20px, 2vw, 50px);
    row-gap: clamp(20px, 2vw, 50px);
}

.action {
    text-decoration: none;
    color: black;
    width: clamp(200px, 22vw, 800px);
}

.action:hover {
    text-decoration: underline;
}

.action-name {
    font-size: clamp(10px, 1.75vw, 22px);
    font-family: 'Jaro';
} 

.action-img {
    background: url('../pattern.png') #0093D7;
    height: clamp(200px, 22vw, 800px);
    width: clamp(200px, 22vw, 800px);
    margin-bottom: 15px;
    background-size: cover;
}


.action-img figure {
    margin: 0;
    padding: 0;
     width: 100%;
    height: 100%;
}

.action-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 980px) {

    .allactions {
    grid-template-columns: repeat(2, 1fr);
}

.action {
    width: calc(50vw - 30px);
}


.action-name {
    font-size: 22px;
    font-family: 'Jaro';
}


.action-img {
    height:calc(50vw - 30px);
    width: calc(50vw - 30px);
}


    @media screen and (max-width: 500px) {
        .allactions {
    grid-template-columns: repeat(1, 1fr);
}

.action {
    width: calc(100vw - 40px);
}


.action-img {
    height:calc(100vw - 40px);
    width:calc(100vw - 40px);
}

}

}