:root {
    --dark-color: #262626;
    --light-color: #f3f4f0;
}

@font-face {
    font-family: "Lato Bold";
    src: url("../assets/fonts/Lato/Lato-Bold.ttf");
}
@font-face {
    font-family: "Lato Regular";
    src: url("../assets/fonts/Lato/Lato-Regular.ttf");
}
@font-face {
    font-family: "Lato Light";
    src: url("../assets/fonts/Lato/Lato-Light.ttf");
}
@font-face {
    font-family: "Noto Light";
    src: url("../assets/fonts/Noto_Serif_Display/static/NotoSerifDisplay-Light.ttf");
}

.work-section{
    background-color: var(--light-color);
}
.work-label {
    display: block;
    width: 40%;
    color: var(--dark-color);
    font-family: "Lato Light";
    font-size: 26px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--dark-color);
    opacity: 0;
    transform: translateX(-100%);
    transition: all 1500ms;
}
.work-label-active {
    opacity: 1;
    transform: translateX(0%);
}
.work-list-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    margin-top: 2.6vw;
    opacity: 0;
    transform: translateY(20%);
    transition: all 1000ms;
}
.work-list-wrapper-active {
    opacity: 1;
    transform: translateY(0%);
}
.card-wrapper {
    display: flex;
    flex-direction: column;
    width: 22vw; /*512px*/
    min-height: 628px;
    margin-bottom: 50px;
    border-radius: 0.50rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    overflow: hidden;
}
.card-image-wrapper{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}
.card-image {
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card-desc{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 80%;
    padding: 25px 10px 50px 30px;
}
.card-subtitle {
    font-family: "Noto Light";
    color: var(--dark-color);
    font-size: 20px;
    margin-bottom: 10px;
}
.card-list {
    margin-left: 20px;
}
.card-list li {
    font-family: "Lato Light";
    color: var(--dark-color);
    font-size: 14px;
    margin: 10px 0px;
}
.text-highlight {
    text-transform: uppercase;
    font-weight: bold;
}
.work-btn {
    align-self: center;
    font-family: "Lato Regular";
    color: var(--light-color);
    background-color: var(--dark-color);
    border-radius: .5em;
    border: 2px solid var(--dark-color);
    padding: 10px 20px;
    transition: all 300ms;
}
.work-btn:hover {
    cursor: "pointer";
    background-color: var(--light-color);
    color: var(--dark-color);
}

@media screen and (max-width: 2560px) {
    .work-label { font-size: 1.69vw;    padding-bottom: 0.97vw; }
    .card-wrapper {width: 20vw;   min-height: 35.8vw; margin-bottom: 3.2vw; }
    .card-image { min-height: 16.2vw; }
    .card-desc{ padding: 1.6vw 0.6vw 3.2vw 1.9vw; }
    .card-subtitle { font-size: 1.4vw;  margin-bottom: 0.6vw; }
    .card-list { margin-left: 1.3vw; }
    .card-list li { font-size: 0.91vw;   margin: 0.6vw 0px; }
}

@media screen and (max-width: 1024px) {
    .work-list-wrapper { flex-direction: column; align-items: center; margin-top: 35px; }
    .card-wrapper { width: 100%; min-height: auto; margin-bottom: 50px; }
    .card-subtitle { font-size: 26px;  margin-bottom: 15px; }
    .card-list { margin-left: 25px; }
    .card-list li { font-size: 16px;   margin: 8px 0px; }
}

@media screen and (max-width: 768px) {
    .work-label { width: 80%; font-size: 22px; }
    .card-image { min-height: 200px; }
    .card-desc{ padding: 25px 10px 50px 30px; }
    .card-subtitle { font-size: 26px;   margin-bottom: 15px; }
    .card-list li { font-size: 16px;    margin: 8px 0px; }
}

@media screen and (max-width: 426px) {
    .work-label { font-size: 16px; padding-bottom: 5px; }
    .card-image { min-height: 150px; }
    .card-subtitle { font-size: 16px; margin-bottom: 10px; }
    .card-list { margin-left: 20px; }
    .card-list li { font-size: 14px; margin: 5px 0px; }
}

@media screen and (max-width: 321px) {
    .card-list { margin-left: 15px; }
    .card-list li { font-size: 12px; }
}
