@charset "utf-8";

.seohua_board.board_list:nth-last-of-type(1) .flex_wrap { border-bottom: 0; }
.seohua_board.board_list .flex_wrap { padding: 100px 0; column-gap: 50px; align-items:flex-end; border-bottom:1px solid #A3A3A3; }

.seohua_board.board_list .flex_wrap .lbox { width: 550px; }
.seohua_board.board_list .flex_wrap .thumb { width: 550px; height: 400px; border-radius:10px; overflow:hidden; }
.seohua_board.board_list .flex_wrap .thumb img { width: 100%; height: 100%; object-fit: cover; }
.seohua_board.board_list .flex_wrap .date { font-size:18px; color: #6a6a6a; height:40px; line-height:38px; }
.seohua_board.board_list .flex_wrap .rbox { display: flex; flex-direction: column; row-gap: 33px; }
.seohua_board.board_list .flex_wrap .rbox .btn_wrap { display: flex; }
.seohua_board .summary p  {
    display: inline !important;
    margin: 0;       /* p 간격 제거 */
    padding: 0;
}
.seohua_board .summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 2; /* 2줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    color: #767676;
}

.seohua_board.board_read { padding: 100px 0; }
.seohua_board.board_read .ec-base-table .head { display: flex; flex-direction: column; row-gap: 30px; padding:0 0 30px 0; border-bottom: 1px solid #E1E7E6; }
.seohua_board.board_read .ec-base-table .head .description { display: flex; justify-content: space-between; }
.seohua_board.board_read .ec-base-table .head .description .etcArea { display: flex; }
.seohua_board.board_read .ec-base-table .head .description .etcArea li { padding: 0 20px; font-size: 1rem; color: var(--gray-sub-02); }
.seohua_board.board_read .ec-base-table .head .description .etcArea li::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 60%; background: var(--gray-main); }
.seohua_board.board_read .ec-base-table .head .description .etcArea li:first-child { padding-left: 0; }
.seohua_board.board_read .ec-base-table .head .description .etcArea li:last-child::after { display: none; }
.seohua_board.board_read .ec-base-table .head .description .etcArea li .icon { display: inline-block; width: 16px; height: 12px; }
.seohua_board.board_read .ec-base-table .detail { padding:50px 0 200px 0; font-size:1.125rem; }
.seohua_board.board_read .btn_admin_wrap { display: flex; column-gap: 16px; }
.seohua_board.board_read .btn_admin_wrap [class *= 'button_'] { color: var(--primary); }
.seohua_board.board_read .btn_admin_wrap .btn_del { background: var(--gray-main); }
.seohua_board.board_read .ec-base-button { justify-content: flex-end; padding: 0; column-gap: 16px; }
.seohua_board .gRight { float:right; } 

.seohua_board.board_write .flex_wrap { padding: 100px 0; row-gap: 30px; }
.seohua_board.board_write .field_title input { width: 100%; height: 40px; font-size: 1.5rem; outline:0; border: 0; border-bottom: 1px solid var(--gray-main);}
.seohua_board.board_write .field_title input::placeholder { color: var(--gray-main); }
.seohua_board.board_write .field_category select { max-width: 395px; padding: 13px 18px; width: 50%; height: 45px; border: 1px solid var(--gray-main); border-radius: 7px; }
.seohua_board.board_write .ec-base-button { justify-content: flex-end; padding: 60px 0; column-gap: 16px; }

/* file */
.filedrop-wrap .filedrop-area { padding: 25px; text-align: center; border-radius: 10px; background: #f5f5f5; transition: 0.25s ease; font-size: 1.125rem; }
.filedrop-wrap .filedrop-area.dragover { border-color: #333; background: #f1f1f1; }
.filedrop-wrap .hidden-file input[type=file] { display: none; }
.filedrop-wrap .add-image-btn { padding: 9px 18px; background: #dfdfdf; border-radius: 5px; cursor: pointer; font-size: 1rem; color: #737373; }
.filedrop-wrap .preview-wrap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.filedrop-wrap .preview-wrap .preview-item { width: 120px; height: 120px; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid #eee; background: #fff; }
.filedrop-wrap .preview-wrap .preview-item img { width: 100%; height: 100%; object-fit: cover; }
.filedrop-wrap .preview-wrap .preview-item .remove-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; cursor: pointer; }

.seohua_board a[class *= 'button_'] { line-height: 30px; }

@media only all and (max-width:1023px) {

    .seohua_board.board_list .flex_wrap .lbox { width: 100%; }
    .seohua_board.board_list .flex_wrap .thumb { width: 100%; }
    .seohua_board.board_list .flex_wrap .def_wrap { row-gap: 24px; }
    .seohua_board.board_list .flex_wrap .def_wrap dt { row-gap: 24px; }

    .seohua_board.board_read .ec-base-button { flex-direction: row; }
    .seohua_board.board_write .ec-base-button { flex-direction: row; }
}

@media only all and (max-width:767px) {
    .seohua_board.board_read .ec-base-table .head .description { flex-direction: column; row-gap: 30px; }
    .seohua_board.board_read .ec-base-button { justify-content: center; }
    .seohua_board.board_write .ec-base-button { justify-content: center; }

}


.preview-item {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin: 0 10px 10px 0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
