.projects {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 90px;
    position: relative;
}

.projects .card-first {
    display: flex;
    flex-direction: column;
    width: calc(100% / 3);
    min-width: 340px;
    height: calc(100vh - 90px);
    position: relative;

}

.projects .card-first img {

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects .card-first span {
    display: none;
}

.projects .card-first:hover span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.648);
    width: 100%;
    height: 100%;
    color: white;
    font-size: 1.4rem;
    user-select: none;
    border-radius: 0;
    animation: toptodown 0.5s linear;
}

@keyframes toptodown {
    0% {
        height: 0;
    }

    25% {
        height: 25%;
    }

    50% {
        height: 50%;
    }

    75% {
        height: 75%;
    }

    100% {
        height: 100%;
    }
}

@media screen and (max-width: 1020px) {
    .projects .card-first {
        width: 100%;
        height: calc(80vh - 90px);

    }

    .projects .card-first span {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.496);
        width: 100%;
        height: 100%;
        color: white;
        font-size: 1.4rem;
        user-select: none;
        border-radius: 0;
        animation: toptodown 0.5s linear;
    }
}

@media screen and (max-width: 680px) {
    .projects .card-first {
        width: 100%;
        height: calc(60vh - 90px);

    }

    .projects .card-first span {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.496);
        width: 100%;
        height: 100%;
        color: white;
        font-size: 1.4rem;
        user-select: none;
        border-radius: 0;
        animation: toptodown 0.5s linear;
    }

}