@charset "utf-8";

/* 포트폴리오 최신글 전용 그리드 스타일 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.portfolio-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.portfolio-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-item .pf-img-box {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #e2e2e2;
}

.portfolio-item .pf-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .pf-img-box img {
    transform: scale(1.1);
}

.portfolio-item .pf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .pf-overlay {
    opacity: 1;
}

.portfolio-item .pf-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .pf-title {
    transform: translateY(0);
}

/* 게시물이 없을 때 */
.portfolio-grid .empty_li {
    background: #fff;
    font-size: 16px;
}
