#works-section {
    width: 95vw;
    margin: 0 auto 5rem auto;
}

#works-section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#works-section-header h3 {
    font-size:2rem;
    color: #7F8C79;

    background: linear-gradient(60deg, #867e5b, #4c796e, #ddcf9c);
    background-size: 150% 150%;
    animation: gradient-animation 18s ease infinite;
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    -webkit-background-clip: text;

    margin-right: 0.5rem;
}

.cards-container-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

}

#works-section .cards-container {
    padding: 0;
    margin: 2rem, 0, 0, 0;
}

#works-section {
    width: 90vw;
}

.cards-container-flex img {
    width: 80vw;
}

@media (min-width:768px) {
    #works-section {
        width: 90vw;
    }
    .cards-container-flex div.card {
        margin: 0.5rem;
    }

    .cards-container-flex div.card img.card-image {
        width: 38.25vw;
    }
}

@media (min-width:992px) {
    #works-section {
        width: 930px;
    }

    .cards-container-flex div.card img.card-image {
        width: 415px;
    }
}

@media (min-width:1200px) {
    #works-section {
        width: 1000px;
    }

    .cards-container-flex div.card img.card-image {
        width: 450px;
    }
}

@media (min-width:1400px) {
    #works-section {
        width: 1000px;
    }

    .cards-container-flex div.card img.card-image {
        width: 450px;
    }
}


.expand-btn a {
    text-decoration: none;

}

.expand-btn a text{
    font-weight: bold;
    /* text-align: left; */
}

.invisible {
    display: none;
}

@media (min-width:1200px) {
    #works-section .cards-container .card:last-child {
        display: none;
    }
}

/* Center work section headings when the screen is small */
@media (max-width:575px) {
    #works-section-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

    }

    #works-section-header h3 {
        margin-right: 0;
    }

    #works-section-header div.expand-btn {
        margin-top: 0.5rem;
        /* display: flex;
        justify-content: end; */
    }
}

/* @media (min-width:768px) {
    .expand-btn {
        display: flex;
        justify-content: end;
    }
} */
