.crossfit-img{
    background: linear-gradient(to right, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 0%), url(../images/vad-är-crossfit2.jpg);
    height: 100%;
    width: 60%;
    background-size: cover;
    background-position: center right;
    grid-row: span 2;
    position: absolute;
    right: 0;
}

.crossfit-button{
    display: flex;
    justify-content: flex-start;
    align-items: end;
    z-index: 10;
}

button{
    display: flex;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    border: none;
}

.crossfit-button button a{
    padding: 0px 10px;
    background-color: var(--link-bg);
    width: 100%;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    border: 2px solid var(--link-bg);
    transition: 0.3s;
}



@media(max-width: 840px){

    .crossfit-img{
        display: none;
    }

    .crossfit-button button a{
        background-color: rgb(255, 255, 255);
        color: black;
        border-radius: 20px;
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Min width */

@media(min-width: 840px){
    button a:hover{
        background-color: transparent;
        color: black;
        border-radius: 20px;
    }
}