
.mainbody {
    min-height: 100vh;
    padding: 4rem 0.8rem 0;
    position: relative;
    z-index: 9;
    background-color: #000;
}

.cardlist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 50px;
    gap: 0.4rem;
    width: 100%;
}

.card {
    position: relative;
    background-color: #F2F2F2;
    overflow: hidden;
}
.card img{
    opacity: 0;
    animation: imgLoad 0.3s ease-in-out forwards;
}
@keyframes imgLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lazyDiv {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.card-desc {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25em;
    line-height: 1;
    text-align: center;
    position: absolute;
    right: 0;
    top: 0;
    color: #FFF;
    font-size: 2.4rem;
    padding: 0 0.5rem;
    opacity: 0;
    transition: all 0.5s;
}

.card:hover p {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}
.card:hover .card-desc span {
    opacity: 0;
    transform: translateY(0.25em);
    animation: cardDesc 0.2s cubic-bezier(0.35, 0.15, 0.5, 1) forwards;
}
@keyframes cardDesc {
    0% {
        transform: translateY(0.25em);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.card:hover img {
    transition: all 0.5s;
}

.work-more {
  text-align: center;
}
.work-more a {
    color: #000;
    font-size: 2rem;
    text-transform: uppercase;
    font-variation-settings: 'wght' 400;
    transition: all cubic-bezier(0.445, 0.05, 0.55, 0.95) 400ms;
    cursor: pointer;
    position: relative;
}
.work-more a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    background-color: #000;
    position: absolute;
    bottom: 4px;
    left: 0;
    opacity: 0;
    transition: all 400ms;
}
.work-more a:hover  {
    font-variation-settings: 'wght' 500;
    /* text-decoration-line: underline; */
}
.work-more a:hover::after {
    width: 100%;
    opacity: 1;
}