@charset "utf-8";

/* Project Gallery Skin - Modal Style */
:root {
    --pj-bg: #ffffff;
    --pj-text-head: #111111;
    --pj-text-body: #444444;
    --pj-text-muted: #888888;
    --pj-border: #eeeeee;
    --pj-accent: var(--point-color);
    --pj-radius: 12px;
    --pj-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-skin {
    font-family: var(--font-pretendard);
    margin: 0 auto;
}

/* Gallery Grid */
.project-skin .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-skin .gallery-item {
    background: #fff;
    border-radius: var(--pj-radius);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--pj-border);
    position: relative;
}

.project-skin .item-check {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.project-skin .item-check input {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.project-skin .cl-all-check {
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.project-skin .cl-all-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.project-skin .cl-all-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.project-skin .item-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f9fa;
}

.project-skin .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-skin .gallery-item:hover .item-thumb img {
    transform: scale(1.1);
}

.project-skin .item-info {
    padding: 25px;
}

.project-skin .item-cat {
    font-size: 13px;
    color: var(--pj-accent);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-skin .item-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--pj-text-head);
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: keep-all;
}

.project-skin .item-wr1 {
    font-size: 15px;
    color: var(--pj-text-secondary);
    font-weight: 500;
}

/* Modal / Layer Style */
.pj-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.pj-modal-container {
    background: #fff;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}


.pj-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border: 1px solid #ddd;
}

.pj-modal-close:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pj-modal-left {
    width: 320px;
    background: #fdfdfd;
    display: flex;
    align-items: flex-start;
    padding: 40px 0 40px 40px;
}

.pj-modal-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.pj-modal-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pj-modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.pj-modal-body {
    flex: 1;
    padding: 60px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.pj-modal-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.pj-modal-wr1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pj-accent);
    margin-bottom: 12px;
    display: block;
}

.pj-modal-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--pj-text-head);
    line-height: 1.3;
    margin: 0;
}

.pj-modal-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--pj-text-body);
}

.pj-modal-footer {
    padding: 25px 60px;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Common Components */
.project-skin .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    gap: 10px;
    border: none;
}

.project-skin .btn-primary {
    background: var(--pj-accent);
    color: #fff;
}

.project-skin .btn-outline {
    background: #fff;
    color: var(--pj-text-head);
    border: 1px solid #ddd;
}

.project-skin .btn-outline:hover {
    background: #f8f9fa;
    border-color: #999;
}

/* Write Skin Styles */
.project-skin#bo_w {
    background: #fff;
    border: 1px solid #eee;
    padding: 60px 40px;
    border-radius: 12px;
}

.project-skin .cl-header {
    margin-bottom: 30px;
}

.project-skin .cl-header-info {
    display: inline-flex;
    align-items: center;
    background: #f1f3f5;
    padding: 12px 25px;
    border-radius: 50px;
    gap: 15px;
}

.project-skin .cl-info-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--pj-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-skin .cl-info-data {
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.project-skin .cl-info-data strong {
    color: #111;
    font-weight: 700;
}

.project-skin .cl-info-sep {
    color: #dee2e6;
}

.project-skin .cl-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-skin .cl-flex-gap10 {
    display: flex;
    gap: 10px;
}

.project-skin .cl-flex-gap20 {
    display: flex;
    gap: 20px;
}

.project-skin .cl-w-header {
    font-size: 24px;
    font-weight: 800;
    color: var(--pj-text-head);
    margin-bottom: 40px;
    border-bottom: 2px solid #111;
    padding-bottom: 15px;
}

.project-skin .cl-w-row {
    margin-bottom: 20px;
}

.project-skin .cl-w-col {
    flex: 1;
}

.project-skin .cl-w-label {
    font-size: 16px;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.project-skin .cl-w-input {
    width: 100%;
    text-align: left;
    cursor: text;
    border: 1px solid #ccc;
    height: 52px;
    font-size: 16px;
    padding: 0 20px;
    border-radius: 6px;
}

.project-skin .cl-w-subject {
    font-size: 16px;
    font-weight: 700;
}

.project-skin .cl-w-editor-wrap {}

.project-skin .cl-w-file-sec {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.project-skin .cl-w-file-tit {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
}

.project-skin .cl-w-file-item {
    margin-bottom: 10px;
}

.project-skin .cl-w-file-del {
    margin-top: 5px;
    font-size: 14px;
    color: #888;
}

.project-skin .cl-w-confirm {
    display: flex;
    justify-content: center;
}

.project-skin .cl-w-btn-cancel {
    min-width: 160px;
    height: 56px;
    margin-right: 10px;
}

.project-skin .cl-w-btn-submit {
    min-width: 240px;
    height: 56px;
}

/* Pagination */
.project-skin .pg_wrap {
    text-align: center;
    margin: 50px 0;
    float: initial;
    display: block;
}

.project-skin .pg_page,
.project-skin .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
}

.project-skin .pg_page {
    background-color: #f1f3f5;
    color: #495057;
}

.project-skin .pg_current {
    background: var(--pj-accent);
    color: #fff;
}

.tbl_frm01 textarea,
.write_div textarea,
.wr_content textarea {
    font-size: 16px;
    padding: 20px !important;
}

@media (max-width: 1200px) {

	.project-skin .cl-info-label {display:none;}
    .project-skin .btn {
        padding: 0 10px;
        font-size: 14px;
        height: 40px;
    }

    .project-skin .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pj-modal-container {
        max-width: 900px;
    }

	.project-skin .gallery-grid {
        grid-template-columns: 1fr;
    }

    .pj-modal-container {
        flex-direction: column;
        height: auto;
        max-height: 95vh;
        width: 95%;
    }

    .pj-modal-left {
        width: 100%;
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid #eee;
        justify-content: center;
    }

    .pj-modal-thumb-wrap {
        width: 150px;
    }

    .pj-modal-body {
        padding: 30px;
    }

    .pj-modal-header {
        border: 0;
        padding-bottom: 0;
        margin-bottom: 10px;
    }

    .pj-modal-title {
        font-size: 22px;
    }

    .pj-modal-content {
        font-size: 15px;
    }

    .pj-modal-footer {
        padding: 20px 30px;
    }

    .pj-modal-title {
        font-size: 24px;
    }

    .pj-modal-overlay {
        padding: 20px;
    }
}