.works .workgroup {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 3rem;
    align-items: center;
    justify-content: center;
}

.works {
    margin-bottom: 5rem;
}

.workgroup div img {
    width: 100%;
}

.workgroup div {
    background: white;
    position: relative;
}

.workgroup div h4 {
    font-size: 20px;
}

.workgroup div a {
    text-decoration: none;
    color: grey;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}

.workgroup div a::before {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0px;
    height: 1.5px;
    background-color: rgb(49, 49, 49);
    transition: .5s;
}

.workgroup div a:hover {
    color: rgba(49, 49, 49, 0.801);
}

.workgroup div a:hover::before {
    width: 50px;
}

.txt {
    position: absolute;
    padding: 1.5rem;
    padding-bottom: 2rem;
    bottom: 0;
}

.group {
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.group:hover {
    transform: scale(105%);
}

@media (max-width:900px) {
    .works {
        height: fit-content;
    }
    .works .workgroup {
        grid-template-columns: auto;
        padding: 1rem 3rem;
    }
    h3 {
        font-size: 30px;
        margin-bottom: 1rem;
        text-align: center;
    }
}