@charset "UTF-8";

/* =============================== */
/* pac-portfolio KBoard Skin       */
/* portfolio.css 디자인 동일        */
/* =============================== */

#pac-portfolio-list,
#pac-portfolio-document {
    width: 100%;
}

/* =============================== */
/* Sub Header (title + filter)     */
/* =============================== */
#pac-portfolio-list .pf-sub-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

#pac-portfolio-list .pf-sub-title {
    font-size: 32px;
    font-weight: 600;
    color: #1f1f1f;
}

#pac-portfolio-list .pf-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#pac-portfolio-list .pf-filter form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

#pac-portfolio-list .pf-filter-btn {
    padding: 8px 20px;
    border: 1px solid #DED8D0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #957E62;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#pac-portfolio-list .pf-filter-btn:hover,
#pac-portfolio-list .pf-filter-btn.active {
    border-color: #957E62;
    background: #fff;
    color: #957E62;
}

/* =============================== */
/* Grid                            */
/* =============================== */
#pac-portfolio-list .pf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 24px;
    margin-bottom: 60px;
}

#pac-portfolio-list .pf-card {
    cursor: pointer;
}

#pac-portfolio-list .pf-card-img {
    width: 100%;
    aspect-ratio: 1.3 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

#pac-portfolio-list .pf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#pac-portfolio-list .pf-card:hover .pf-card-img img {
    transform: scale(1.04);
}

#pac-portfolio-list .pf-card-no-img {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

#pac-portfolio-list .pf-card-info {
    padding-top: 20px;
}

#pac-portfolio-list .pf-card-cat {
    font-size: 13px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.45);
    margin-bottom: 8px;
}

#pac-portfolio-list .pf-card-title {
    font-size: 28px;
    font-weight: 300;
    color: #1f1f1f;
    line-height: 1.3;
    margin-bottom: 8px;
}

#pac-portfolio-list .pf-card-desc {
    font-size: 15px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.6);
    line-height: 1.65;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

#pac-portfolio-list .pf-card-address {
    font-size: 15px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.55);
}

#pac-portfolio-list .pf-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-size: 16px;
    color: rgba(35, 35, 35, 0.4);
}

/* =============================== */
/* Pagination                      */
/* =============================== */
#pac-portfolio-list .pf-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

#pac-portfolio-list .pf-pagination .kboard-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#pac-portfolio-list .pf-pagination a,
#pac-portfolio-list .pf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: rgba(35, 35, 35, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

#pac-portfolio-list .pf-pagination a:hover {
    color: #1f1f1f;
}

#pac-portfolio-list .pf-pagination .current,
#pac-portfolio-list .pf-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
}

/* 글쓰기 버튼 */
#pac-portfolio-list .pac-kboard-control {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

#pac-portfolio-list .pac-kboard-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #1f1f1f;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#pac-portfolio-list .pac-kboard-btn-write:hover {
    opacity: 0.75;
}

/* =============================== */
/* Lightbox                        */
/* =============================== */
.pf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pf-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.pf-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.pf-lightbox-wrap {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    overflow-y: auto;
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pf-lightbox.active .pf-lightbox-wrap {
    transform: translateY(0);
}

.pf-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.pf-lightbox-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background: #1f1f1f;
}

.pf-lightbox-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pf-lightbox-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pf-lightbox-content {
    display: flex;
    flex-direction: column;
}

.pf-lightbox-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pf-lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-lightbox-info {
    padding: 36px 48px 48px;
}

.pf-lightbox-cat {
    font-size: 13px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.45);
    margin-bottom: 12px;
}

.pf-lightbox-title {
    font-size: 36px;
    font-weight: 300;
    color: #1f1f1f;
    line-height: 1.3;
    margin-bottom: 10px;
}

.pf-lightbox-address {
    font-size: 16px;
    color: rgba(35, 35, 35, 0.55);
    margin-bottom: 28px;
}

.pf-lightbox-body {
    font-size: 16px;
    color: #2d2d2d;
    line-height: 1.8;
}

/* =============================== */
/* View Page (document.php)        */
/* =============================== */
#pac-portfolio-document .pf-view-header {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 48px;
}

#pac-portfolio-document .pf-view-cat {
    font-size: 13px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.45);
    margin-bottom: 12px;
}

#pac-portfolio-document .pf-view-title {
    font-size: 36px;
    font-weight: 300;
    color: #1f1f1f;
    line-height: 1.3;
    margin-bottom: 10px;
}

#pac-portfolio-document .pf-view-address {
    font-size: 16px;
    color: rgba(35, 35, 35, 0.55);
}

#pac-portfolio-document .pf-view-thumb {
    width: 100%;
    margin-bottom: 48px;
}

#pac-portfolio-document .pf-view-thumb img {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
}

#pac-portfolio-document .pf-view-body {
    font-size: 16px;
    color: #2d2d2d;
    line-height: 1.8;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 40px;
}

#pac-portfolio-document .pf-view-body img {
    max-width: 100%;
    height: auto;
}

#pac-portfolio-document .pf-view-files {
    margin-bottom: 40px;
}

#pac-portfolio-document .pf-view-files-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(35, 35, 35, 0.5);
    margin-bottom: 12px;
}

#pac-portfolio-document .pf-view-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#pac-portfolio-document .pf-view-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1f1f1f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#pac-portfolio-document .pf-view-file-link:hover {
    color: #957e62;
}

#pac-portfolio-document .pf-view-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-bottom: 40px;
}

#pac-portfolio-document .pf-btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #1f1f1f;
    border: 1px solid rgba(35, 35, 35, 0.3);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#pac-portfolio-document .pf-btn-list:hover {
    background: #1f1f1f;
    color: #fff;
    border-color: #1f1f1f;
}

#pac-portfolio-document .pf-btn-edit,
#pac-portfolio-document .pf-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 40px;
    font-size: 14px;
    color: rgba(35, 35, 35, 0.5);
    border: 1px solid rgba(35, 35, 35, 0.2);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#pac-portfolio-document .pf-btn-edit:hover {
    color: #1f1f1f;
    border-color: #1f1f1f;
}

#pac-portfolio-document .pf-btn-delete:hover {
    color: #c0392b;
    border-color: #c0392b;
}

/* =============================== */
/* Editor                          */
/* =============================== */
#pac-portfolio-editor .pac-editor-form {
    width: 100%;
}

#pac-portfolio-editor .kboard-attr-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(35, 35, 35, 0.1);
}

#pac-portfolio-editor .attr-name {
    flex-shrink: 0;
    width: 130px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(35, 35, 35, 0.6);
    padding-top: 10px;
}

#pac-portfolio-editor .attr-value,
#pac-portfolio-editor .kboard-content {
    flex: 1;
}

#pac-portfolio-editor .attr-value input[type="text"],
#pac-portfolio-editor .attr-value input[type="email"],
#pac-portfolio-editor .attr-value input[type="password"],
#pac-portfolio-editor .attr-value textarea,
#pac-portfolio-editor .attr-value select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    color: #1f1f1f;
    border: 1px solid rgba(35, 35, 35, 0.25);
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#pac-portfolio-editor .attr-value input:focus,
#pac-portfolio-editor .attr-value textarea:focus,
#pac-portfolio-editor .attr-value select:focus {
    outline: none;
    border-color: #1f1f1f;
}

#pac-portfolio-editor .attr-required-text {
    color: #957e62;
}

#pac-portfolio-editor .pac-editor-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
}

#pac-portfolio-editor .pac-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

#pac-portfolio-editor .pac-editor-btn--cancel,
#pac-portfolio-editor .pac-editor-btn--list {
    color: rgba(35, 35, 35, 0.6);
    border: 1px solid rgba(35, 35, 35, 0.2);
    background: #fff;
    margin-right: 8px;
}

#pac-portfolio-editor .pac-editor-btn--cancel:hover,
#pac-portfolio-editor .pac-editor-btn--list:hover {
    color: #1f1f1f;
    border-color: #1f1f1f;
}

#pac-portfolio-editor .pac-editor-btn--submit {
    color: #fff;
    background: #1f1f1f;
    border: 1px solid #1f1f1f;
}

#pac-portfolio-editor .pac-editor-btn--submit:hover {
    opacity: 0.75;
}

/* =============================== */
/* Responsive                      */
/* =============================== */
@media (max-width: 1024px) {
    #pac-portfolio-list .pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pf-lightbox-info {
        padding: 24px 28px 36px;
    }

    .pf-lightbox-title {
        font-size: 28px;
    }

    #pac-portfolio-document .pf-view-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    #pac-portfolio-list .pf-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    #pac-portfolio-list .pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    #pac-portfolio-list .pf-card-title {
        font-size: 18px;
    }

    #pac-portfolio-list .pf-card-address {
        font-size: 13px;
    }

    .pf-lightbox-wrap {
        width: 95%;
        max-height: 95vh;
    }

    .pf-lightbox-info {
        padding: 20px 20px 28px;
    }

    .pf-lightbox-title {
        font-size: 22px;
    }

    #pac-portfolio-document .pf-view-title {
        font-size: 22px;
    }

    #pac-portfolio-document .pf-view-body {
        font-size: 14px;
    }
}
