@charset "utf-8";

.content .work-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: auto;
    gap: 20px;
    padding-bottom: 100px;
}
.content .work-content {}
.content .work-content .work-img {
    overflow: hidden;
}
.content .work-content .work-img a {}
.content .work-content .work-img a img {
    width: 100%;
    transition: transform 0.5s;

}
.content .work-content:hover .work-img a img {
    transform: scalc(1.1);
}
.content .work-content .work-desc {
    padding: 20px 30px;
}
.content .work-content .work-desc h4 {
    font-size: 1.3em;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}
.content .work-content .work-desc p {
    font-size: 1em;
    text-align: center;
    margin-bottom: 10px;
}
.content .work-content .work-desc p:last-child {
    margin: 0;
}

/* modal */
.modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    z-index: 999;
    overflow-y: auto;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal img {
    width: 100%;
}
.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 13%;
    z-index: 1000;
    font-size: 3vw;
    cursor: pointer;
    display: none;
}

.footer {
    position: relative;
}

/* ======== 반응형 ======== */
@media screen and (max-width: 1240px) {
    .content .work-wrap {
        width: 96%;
        grid-template-columns: repeat(2,1fr);
    }
    .modal {
        width: 90%;
    }
    .modal-close-btn {
        right: 8%;
        font-size: 4.5vw;
    }
}
@media screen and (max-width: 640px) {
    .content .work-wrap {
        /* grid-template-columns: repeat(1,1fr); */
        grid-template-columns: repeat(auto-fill,99%);
        /* 둘 중에 아무거나 써도 됨 */
    }
    .content .work-content .work-desc {
        padding: 15px 15px;
    }
    .content .work-content .work-desc h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    .content .work-content .work-desc p {
        font-size: 0.8em;
        margin-bottom: 5px;
    }
    .modal-close-btn {
        right: 8%;
        font-size: 7.5vw;
    }
}