.yg-pf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.yg-pf-head-title {
    margin: 0;
    font-family: "Paperozi", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.yg-pf-head-more {
    font-family: "Paperozi", sans-serif;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.yg-pf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.yg-pf-card {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #ece7e2;
    font-family: "Paperozi", sans-serif;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.yg-pf-card-media {
    position: relative;
    aspect-ratio: 5 / 4;
    background: #d6d3d1;
    overflow: hidden;
}

.yg-pf-card-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.yg-pf-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #a8a29e;
}

.yg-pf-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    height: calc(16px + (0.82rem * 1.35) + 4px + (0.62rem * 1.45 * 2));
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    overflow: hidden;
}

.yg-pf-card-title {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yg-pf-card-desc {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    max-width: 100%;
    max-height: calc(0.62rem * 1.45 * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-all;
}

.yg-pf-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 10px 6px 12px;
    background: #f8f5f2;
}

.yg-pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.yg-pf-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #78716c;
}

.yg-pf-stat-icon svg {
    width: 18px;
    height: 18px;
}

.yg-pf-stat-value {
    font-size: 0.72rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    word-break: keep-all;
}

.yg-pf-stat-label {
    font-size: 0.58rem;
    color: #9ca3af;
    line-height: 1.2;
}

.yg-pf-empty {
    grid-column: 1 / -1;
    padding: 28px 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #94a3b8;
    text-align: center;
    font-size: 0.88rem;
}

@media (min-width: 500px) {
    .yg-pf-card-overlay {
        height: calc(16px + (0.9rem * 1.35) + 4px + (0.68rem * 1.45 * 2));
    }

    .yg-pf-card-title {
        font-size: 0.9rem;
    }

    .yg-pf-card-desc {
        max-height: calc(0.68rem * 1.45 * 2);
        font-size: 0.68rem;
    }

    .yg-pf-stat-value {
        font-size: 0.78rem;
    }

    .yg-pf-stat-label {
        font-size: 0.62rem;
    }
}

/* 인테리어 무료견적 CTA (interior.php · 포트폴리오 목록 공통) */
.iv-cta {
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0 16px 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffebda;
    color: #333333;
    text-align: left;
}

.pf-body .iv-cta {
    margin: 20px 0 0;
}

.iv-cta-bg-icon {
    position: absolute;
    right: 10px;
    top: 32%;
    transform: translateY(-50%);
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(209, 64, 9, 0.07);
    pointer-events: none;
}

.iv-cta-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

.iv-cta-kicker {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    color: #333333;
}

.iv-cta-headline {
    margin-top: 12px;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.2;
}

.iv-cta-headline-main {
    display: block;
    color: #1a1a1b;
}

.iv-cta-headline-accent {
    display: block;
    color: #d14009;
}

.iv-cta-desc {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.4;
    color: #333333;
}

.iv-cta-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.iv-cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
}

.iv-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    background: #1a1a1b;
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.iv-cta-btn-note {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1b;
    white-space: nowrap;
}

.iv-cta-btn-note .fa {
    font-size: 0.68rem;
    color: rgba(209, 64, 9, 0.45);
}