.our-works .cards-container {
    display: flex;
    gap: 2rem;
}

.our-works .card {
    border: .1rem solid var(--main-color);
    text-align: justify;
    text-justify: auto;
    box-shadow: 5px 5px 1px 1px var(--main-color);
    background-color: var(--white-color);
    transform: translateX(0);
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 30rem;
}

.our-works .card::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--dark-color);
    opacity: .5;
    bottom: 500rem;
}

.our-works .card:hover::before {
    bottom: 0;
}

.our-works .image {
    width: 100%;
    height: 100%;
    padding: 0;
    background-image: none;
}

.our-works .image img {
    height: 100%;
    object-fit: cover;
}

.our-works .card:hover .image {
    background-image: none;
}

.our-works .card > article {
    position: absolute;
    bottom: 500rem;
    z-index: 100;
    color: var(--light-color);
    text-align: center;
    width: 100%;
}

.our-works .card:hover article {
    bottom: 0;
    height: 100%;
    padding: 1rem;
    transition: .3s;
}

.our-works .btn-container {
    margin-top: 3rem;
}

@media (max-width: 1000px) {
    .our-works .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .our-works .cards-container .card {
        height: auto;
    }
}

@media (max-width: 768px) {
    .our-works .cards-container {
        grid-template-columns: repeat(1, 1fr);
        padding: 1rem 1.5rem;
    }

    .our-works .cards-container .card {
        text-align: right;
        height: auto;
    }

    .our-works .cards-container .card p {
        text-align: justify;
        text-justify: auto;
    }
}