/* TR_LOG 게시판 스타일 */

/* 목록 영역 */
.log20_list_area {
    width: 100%;
    height: 100%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.log20_list_item {
    flex: 0 1 auto;
    height: 300px; 
    position: relative;
    border-bottom: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.2s;
    box-sizing: border-box;
}

.log20_item_link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.log20_item_image {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
    border-top: none;
}

.log20_item_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, transparent 0%, var(--bg-color, transparent) 100%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
}

.log20_list_item:hover .log20_item_image::before {
    opacity: 1;
}

/* pclist 전용 스타일 */
.log20_list_pclist_area {
    width: 100%;
    height: 100%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.log20_list_pclist_item {
    width: calc((100% - 60px) / 4); 
    min-width: 200px;
    max-width: 300px; 
    height: 300px; 
    position: relative;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--white);
    transition: transform 0.2s;
    flex: 0 0 calc((100% - 60px) / 4); 
}

.log20_list_pclist_link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.log20_list_pclist_image {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
    border-top: none;
}

.log20_list_pclist_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--bg-color, transparent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
}

.log20_list_pclist_item:hover .log20_list_pclist_image::before {
    opacity: 1 !important;
    background: linear-gradient(to bottom, var(--bg-color, transparent) 0%, transparent 100%) !important;
}

.log20_list_pclist_subtitle {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    z-index: 4;
    pointer-events: none;
    text-align: center;
    width: 70%;
    max-width: 70%;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.log20_list_pclist_item:hover .log20_list_pclist_subtitle {
    opacity: 1 !important;
    color: var(--pclist-title-color, #000000) !important;
}

.log20_list_pclist_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.log20_list_pclist_image i {
    font-size: 120px;
    position: relative;
    z-index: 1;
}

.log20_list_pclist_title {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: var(--white);
    border-bottom: none;
    transition: color 0.2s;
}

.log20_list_pclist_item:hover .log20_list_pclist_title {
    color: var(--pclist-title-color, #000000) !important;
}

/* pclist 동적 뷰 컨테이너 */
.log20_pclist_view_container {
    position: relative;
    width: 100%;
    flex-basis: 100%;
    min-height: 100px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

.log20_pclist_view_item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: fadeIn 0.3s ease-in;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.log20_pclist_view_item.log20_pclist_view_left {
    width: 48% !important;
    margin-right: auto;
    margin-left: 0;
}

.log20_pclist_view_item.log20_pclist_view_right {
    width: 48% !important;
    margin-left: auto;
    margin-right: 0;
}

.log20_pclist_view_actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    z-index: 11;
}

.log20_pclist_view_action_text {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.log20_pclist_view_action_text:hover {
    opacity: 0.7;
}

.log20_pclist_view_loading,
.log20_pclist_view_error {
    padding: 40px;
    text-align: center;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log20_item_subtitle {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 4;
    pointer-events: none;
    text-align: center;
    width: 70%;
    max-width: 70%;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.log20_list_item:hover .log20_item_subtitle {
    opacity: 1;
}

.log20_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.log20_item_image i {
    font-size: 120px;
    position: relative;
    z-index: 1;
}

.log20_item_title {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: var(--white);
    border-bottom: none;
}

.log20_chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.log20_empty {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

.log20_top_buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

/* tarae (메모) 전용 스타일 */
.log20_list_tarae_area {
    width: 100%;
    margin: 0;
    padding: 0;
}

.log20_tarae_footer {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    margin-left: 10px;
}

.log20_tarae_footer_btn {
    min-width: 88px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.log20_tarae_toggle_btn {
    font-size: 14px;
}

.log20_tarae_footer_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply {
    margin: 10px 0 10px 10px;
}

.log20_tarae_thread {
    margin: 10px 0 0 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.log20_tarae_thread_item {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.log20_tarae_thread_item:last-child {
    margin-bottom: 0;
}

.log20_tarae_thread_meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.log20_tarae_thread_profile {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.log20_tarae_thread_profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_thread_profile_fallback {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

.log20_tarae_thread_name {
    font-weight: 600;
    color: #333;
}

.log20_tarae_thread_title {
    font-weight: 600;
    color: #ffffff;
    margin-left: 6px;
    font-size: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log20_tarae_thread_date {
    margin-left: auto;
}

.log20_tarae_thread_share,
.log20_tarae_thread_edit,
.log20_tarae_thread_delete {
    font-size: 11px;
    color: #999;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 2px;
}

.log20_tarae_thread_share:hover,
.log20_tarae_thread_edit:hover,
.log20_tarae_thread_delete:hover {
    color: #333;
}


.log20_tarae_thread_content {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.log20_tarae_thread_body {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 16px;
    align-items: flex-start;
}

.log20_tarae_thread_body.has-images {
    padding: 15px 15px;
    padding-left: 0;
}

.log20_tarae_thread_body.no-images {
    display: block;
}

.log20_tarae_thread_text {
    grid-column: 1;
    grid-row: 1;
    word-wrap: break-word;
    padding: 15px 10px 15px 30px;
}

.log20_tarae_thread_body .log20_tarae_images_rows {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
}

.log20_tarae_thread_body .log20_tarae_images_row {
    max-width: 100%;
}

.log20_tarae_thread_body .log20_tarae_image_item img {
    max-width: 100%;
    height: auto;
    max-height: var(--tarae-image-max-height, 200px);
    object-fit: contain;
}

.log20_tarae_thread_empty {
    font-size: 12px;
    color: #999;
}

.log20_tarae_reply_textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.5;
}

.log20_tarae_reply_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.log20_tarae_reply_preview_item {
    position: relative;
    width: calc(12.5% - 6px);
    max-width: 60px;
    aspect-ratio: 1 / 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
    cursor: grab;
}

.log20_tarae_reply_preview_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_reply_preview_item.is-dragging {
    opacity: 0.6;
}

.log20_tarae_reply_preview_item.is-drop-target {
    outline: 2px dashed var(--action-color, #333);
    outline-offset: 2px;
}

.log20_tarae_reply_preview_remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.log20_tarae_reply_guest {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.log20_tarae_reply_input {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.log20_tarae_reply_actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.log20_tarae_reply_uploading {
    display: none;
    font-size: 12px;
    color: #666;
    margin-left: 6px;
}

.log20_tarae_reply_uploading.is-visible {
    display: inline-block;
}

.log20_tarae_reply_actions_spacer {
    flex: 1 1 auto;
}

.log20_tarae_reply_cancel {
    margin-left: 0;
}

.log20_tarae_reply_attach {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.log20_tarae_reply_attach:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply_file_count {
    font-size: 12px;
    color: #666;
}

.log20_tarae_reply_url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_url_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_url_done,
.log20_tarae_reply_url_cancel {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_reply_url_cancel {
    border-color: #ccc;
    color: #666;
}

.log20_tarae_reply_url_done:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply_url_cancel:hover {
    border-color: #999;
    color: #333;
}

.log20_tarae_reply_paste {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_paste_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_paste_cancel {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_reply_paste_cancel:hover {
    border-color: #999;
    color: #333;
}
.log20_tarae_reply_file {
    display: none;
}

.tarae_attach_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    margin-bottom: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_attach_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_attach_count {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.tarae_uploading {
    display: none;
    font-size: 12px;
    color: #333;
    background: #fff;
    border-radius: 8px;
    margin-left: 8px;
}

.tarae_uploading.is-visible {
    display: inline-block;
}

.tarae_uploading--submit {
    vertical-align: middle;
    margin-left: 8px;
}


.tarae_attach_input {
    display: none;
}

.tarae_attach_controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tarae_url_controls {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tarae_url_add_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_url_add_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_url_inputs {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarae_url_inputs--inline {
    margin-top: 0;
    flex: 1 1 auto;
}

.tarae_url_row {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    width: 100%;
}

.tarae_url_input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    height: 32px;
    line-height: 1.4;
}

.tarae_url_done_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 32px;
}

.tarae_url_done_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_url_cancel_btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 32px;
}

.tarae_url_cancel_btn:hover {
    border-color: #999;
    color: #333;
}

.tarae_paste_controls {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tarae_paste_add_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_paste_add_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_paste_inputs {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarae_paste_inputs--inline {
    margin-top: 0;
    flex: 1 1 auto;
}

.tarae_paste_row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
}

.tarae_paste_input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    resize: none;
    height: 32px;
    line-height: 1.4;
}

.tarae_paste_cancel_btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    height: 32px;
}

.tarae_paste_cancel_btn:hover {
    border-color: #999;
    color: #333;
}

.log20_tarae_item {
    padding: 20px;
    border-bottom: 1px solid var(--action-color, #333);
}

.log20_tarae_item:hover {
    background-color: transparent;
}

.log20_tarae_item:last-child {
    border-bottom: none;
}

.log20_tarae_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.log20_tarae_header_left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.log20_tarae_profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.log20_tarae_profile_img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.log20_tarae_profile_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_profile_fallback {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.log20_tarae_profile_name {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log20_tarae_title {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.log20_tarae_date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_content {
    margin-top: 8px;
}

.log20_tarae_body {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 16px;
    align-items: flex-start;
}

.log20_tarae_body.no-images {
    display: block;
}

.log20_tarae_images {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.log20_tarae_images_rows {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log20_tarae_images_row {
    display: grid;
    gap: 8px;
}

.log20_tarae_images_row .log20_tarae_image_item {
    overflow: hidden;
    border-radius: 4px;
}

.log20_tarae_images--1 .log20_tarae_image_item {
    width: 100%;
}

.log20_tarae_images--2 .log20_tarae_image_item {
    width: calc(50% - 4px);
}

.log20_tarae_images--3 .log20_tarae_image_item,
.log20_tarae_images--4 .log20_tarae_image_item {
    width: calc(50% - 4px);
}

.log20_tarae_image_item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--tarae-image-max-height, 200px);
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.tarae_image_modal_content {
    position: relative;
}

.tarae_image_modal_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.tarae_image_modal_prev {
    left: 10px;
}

.tarae_image_modal_next {
    right: 10px;
}

.tarae_image_modal_nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.log20_tarae_image_item img:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.log20_tarae_text {
    grid-column: 1;
    grid-row: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.log20_tarae_body.has-images {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 16px;
}

/* tarae 이미지 모달 */
.tarae_image_modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* 모달이 뒤쪽 레이아웃에 영향을 주지 않도록 */
    pointer-events: none;
}

.tarae_image_modal[style*="flex"] {
    pointer-events: auto;
}

.tarae_image_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* 배경 클릭 시에만 pointer-events 활성화 */
    pointer-events: auto;
}

.tarae_image_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1;
    /* 모달 콘텐츠는 항상 클릭 가능 */
    pointer-events: auto;
}

.tarae_image_modal_inner {
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px 10px;
    box-sizing: border-box;
}

.tarae_image_modal_inner img {
    max-width: 100%;
    max-height: calc(90vh - 50px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.tarae_image_modal_close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tarae_image_modal_close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 핸드아웃 이미지 모달 스타일 (tarae 모달과 동일) */
.scena_handout_image_modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
}

.scena_handout_image_modal[style*="flex"] {
    pointer-events: auto;
}

.scena_handout_image_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.scena_handout_image_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1;
    pointer-events: auto;
}

.scena_handout_image_modal_inner {
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px 10px;
    box-sizing: border-box;
}

.scena_handout_image_modal_inner img {
    max-width: 100%;
    max-height: calc(90vh - 50px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.scena_handout_image_modal_close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.scena_handout_image_clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.scena_handout_image_clickable:hover {
    opacity: 0.8;
}

/* 모달이 열려있을 때 body 스크롤만 막기 (레이아웃 영향 없음) */
body.tarae_modal_open {
    overflow: hidden;
    /* position, width, left, top은 JavaScript에서 동적으로 설정 */
}

html.tarae_modal_open {
    overflow: hidden;
    height: 100%;
}

.log20_tarae_subtitle {
    margin-bottom: 6px;
    color: inherit;
    font-size: 13px;
}

/* tarae 검색창 */
.log20_tarae_search_wrap {
    display: flex;
    gap: 6px;
    align-items: stretch;
    border-bottom: 1px solid var(--action-color, #333);
    padding-bottom: 15px;
}

/* 모바일에서 검색창 버튼을 아래줄로 내리기 */
@media (max-width: 768px) {
    .log20_tarae_search_wrap {
        flex-wrap: wrap;
    }
    
    .log20_tarae_search_input {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .log20_tarae_search_btn,
    .log20_tarae_search_reset {
        flex: 1 1 calc(50% - 3px);
    }
}

.log20_tarae_search_input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.log20_tarae_search_input:focus {
    outline: none;
    border-color: var(--action-color, #333);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.log20_tarae_search_btn,
.log20_tarae_search_reset {
    width: 45px;
    padding: 0;
    border: 1px solid var(--action-color, #333);
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    color: var(--action-color, #333);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.log20_tarae_search_btn:hover,
.log20_tarae_search_reset:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_toggle {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.log20_tarae_btn {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    text-decoration: none;
    color: #999;
    border: none;
    background: transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.log20_tarae_share_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.log20_tarae_share_toast {
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-bottom: 4px;
    transform: translate(-50%, -6px);
    padding: 2px 6px;
    font-size: 11px;
    color: #fff;
    background: #333;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.log20_tarae_share_toast--bottom {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 4px;
    transform: translate(-50%, 6px);
}

.log20_tarae_share_toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -10px);
}

.log20_tarae_share_toast--bottom.is-visible {
    transform: translate(-50%, 10px);
}

.log20_tarae_btn_edit:hover,
.log20_tarae_btn_delete:hover {
    color: #333;
    border-color: transparent;
    background-color: transparent;
}

/* 작성 폼 */
.log20_write_form {
    margin: 20px auto;
    text-align: left;
    background: var(--card-bg-color);
    padding: 20px;
    border-radius: var(--card-border-radius);
}

.log20_write_form dl {
    margin: 10px 0 0 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.log20_write_form dt {
    font-weight: bold;
    margin: 0;
    color: var(--text-primary);
    min-width: 140px;
    display: flex;
    align-items: center;
}

.log20_write_form dt label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_write_form dd {
    margin: 0;
    flex: 1;
}

.log20_write_form input[type="text"],
.log20_write_form input[type="url"],
.log20_write_form input[type="color"] {
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 14px;
}

.log20_write_form input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}

.log20_write_form input[type="text"].full_input,
.log20_write_form input[type="url"].full_input {
    width: 100%;
    max-width: 100%;
}

.log20_write_form small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.log20_field_row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.log20_field_block {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_field_inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

#bo_w .bo_v_option {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0;
    list-style: none;
}

#bo_w .bo_v_option li {
    margin: 0;
}

#bo_w .bo_v_option .chk_box {
    display: flex;
    align-items: center;
    gap: 8px;
}

#bo_w .bo_v_option select {
    min-width: 160px;
}

/* 게시물 보기 */
#bo_v_top.view_buttons_inline {
    width: 90%;
    margin: 0 auto 5px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.log20_content {
    width: 90%;
    height: 100%;
    padding-bottom: 20px;
    margin: 0 auto;
}


#bo_list {
    margin: 0 auto;
}

.log20_content_title {
    display: flex;
    gap: 20px;
    margin: 20px 0 0 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.log20_thumbnail {
    width: 20%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.log20_thumbnail img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

.log20_thumbnail i {
    font-size: 80px;
    color: var(--text-muted);
}

.log20_info {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    min-height: 100%;
    position: relative;
    height: 300px;
}

.log20_info_row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.log20_info_bottom {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
}

.log20_info_item {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.log20_info_item_subtitle {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_info_item_title {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 0.4em;
}

.log20_info_item_rule {
    text-align: left;
}

.log20_info_item_gm {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_info_item_pl {
    text-align: right;
    margin-left: auto;
}

.log20_content_menu {
    margin-top: 0;
    height: 60px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_content_menu_pclist {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-right: 1px solid var(--action-color, #333);
    height: 100%;
}

.log20_content_menu_pclist .log_content_menu_btn {
    flex: 0 0 auto;
}

.log20_content_menu_memo {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-right: 1px solid var(--action-color, #333);
    height: 100%;
}

.log20_content_menu_memo .log_content_menu_btn {
    flex: 0 0 auto;
}

.log20_content_menu_scena {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
}

.log20_content_menu_scena .log_content_menu_btn {
    flex: 0 0 auto;
}

.log_content_menu_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex: 1;
    max-width: 80%;
}

.log_content_menu_icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.log_content_menu_icon i {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 0;
}

.log_content_menu_text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .log20_content_menu {
        height: auto;
        padding-top: 5px;
        padding-bottom: 5px;
        align-items: flex-start;
    }
    
    .log20_content_menu_pclist,
    .log20_content_menu_memo,
    .log20_content_menu_scena {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .log_content_menu_btn {
        width: auto;
        max-width: 100%;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
    
    .log_content_menu_text {
        text-align: center;
        font-size: 11px;
    }
    
    .log20_info_bottom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .log20_info_bottom .log20_info_item_rule,
    .log20_info_bottom .log20_info_item_gm,
    .log20_info_bottom .log20_info_item_pl {
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* 모바일에서 핸드아웃 숨김 및 본문 100% */
    .log20_scena_view_body {
        flex-direction: column;
    }

    .log20_scena_view_body_logpart {
        width: 100% !important;
        max-width: 100% !important;
    }

    .log20_scena_view_body_handout {
        display: none !important;
    }
}

.log20_content_sublist_title,
.log_content_sublist_scena_title {
    width: 100%;
    height: 60px;
    padding: 0;
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_content_sublist_title_text,
.log_content_sublist_scena_title_text {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.log20_scena_view {
    width: 80%;
    margin: 0 auto 40px auto;
    background: #fff;
    border: 1px solid var(--card-border-color, #e5e5e5);
    border-radius: var(--card-border-radius, 12px);
    padding: 30px;
    box-sizing: border-box;
    position: relative;
}

.log20_scena_view_back_btn_wrap {
    width: 80%;
    margin: 40px auto 10px auto;
    position: relative;
}

.log20_scena_view_back_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.log20_scena_view_back_btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.log20_scena_view_back_btn i {
    font-size: 18px;
}

.log20_scena_view_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    word-break: keep-all;
    line-height: 1.3;
    padding-bottom: 15px;
}

.log20_scena_view_body {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    word-break: break-word;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.log20_scena_view_body img,
.log20_scena_view_body video,
.log20_scena_view_body iframe,
.log20_scena_view_body table {
    max-width: 100%;
}

.log20_scena_view_body img {
    height: auto;
    display: block;
    margin: 15px auto;
}

.log20_scena_view_body table {
    width: 100%;
    border-collapse: collapse;
}

.log20_scena_view_body pre,
.log20_scena_view_body code {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f6f6f6;
    padding: 8px 10px;
    border-radius: 4px;
    display: block;
}

/* 시나리오 보기 - 본문/핸드아웃 80:20 분할 */
.log20_scena_view_body_logpart {
    width: 80%;
    max-width: 80%;
}

.log20_scena_view_body_handout {
    width: 20%;
    max-width: 20%;
    box-sizing: border-box;
    padding-left: 10px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    align-self: flex-start;
}

.log20_scena_view_handout_header_box {
    width: 90%;
    height: 40px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-weight: 600;
    box-sizing: border-box;
}

.log20_scena_view_handout_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_scena_view_handout_item {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-light);
    padding: 4px 0;
}

.log20_scena_view_handout_header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    cursor: pointer;
}

.log20_scena_view_handout_thumb {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_scena_view_handout_thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.log20_scena_view_handout_title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_scena_view_handout_toggle {
    flex: 0 0 auto;
    font-size: 11px;
    color: #999;
}

.log20_scena_view_handout_detail {
    display: none;
    padding: 6px 0 8px 0;
}

.log20_scena_view_handout_detail_inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_scena_view_handout_detail_image {
    width: 100%;
}

.log20_scena_view_handout_detail_image img {
    width: 80%;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.log20_scena_view_handout_detail_body {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
}

.log20_scena_view_handout_item.is-open .log20_scena_view_handout_detail {
    display: block;
}

.log20_content_sublist {
    width: 100%;
    padding: 5px 20px 20px 20px;
    background: #ffffff;
    border: 1px solid var(--card-border-color);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    min-height: 400px;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.log20_content_sublist_scena {
    width: 100%;
    padding: 5px 20px 20px 20px;
    background: #ffffff;
    border: 1px solid var(--card-border-color);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    min-height: 60vh;
    height: 60vh;
    max-height: 60vh;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 시나리오 리스트 래퍼 */
.log20_content_sublist_scena_wrapper {
    width: 100%;
    flex: 1;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

/* 최신 시나리오 영역 (header 제외한 모든 sublist) */
.log20_content_sublist_newscena {
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: block;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 썸네일 이미지 영역 (상단 좌측: 가로 60%, 세로 60%) */
.log20_scena_newscena_thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    padding-bottom: 10px;
    box-sizing: border-box;
}

.log20_scena_newscena_thumbnail::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
    pointer-events: none;
}

.log20_scena_newscena_thumbnail:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}

.log20_scena_newscena_thumbnail img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.log20_scena_newscena_thumbnail:hover img {
    transform: scale(1.1);
}

@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.log20_scena_newscena_thumbnail i {
    font-size: 120px;
    color: inherit;
}


/* PC 포트폴리오 영역 (상단 우측: 가로 40%, 세로 60%) */
.log20_content_sublist_newscena_pcport {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 60%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.log20_pc_port_grid {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: grid;
    gap: 8px;
    align-content: start;
    overflow: hidden;
    grid-auto-rows: minmax(0, 1fr);
}

/* PC 이미지 그리드 - 2개일 때 */
.log20_pc_port_grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 3개일 때 */
.log20_pc_port_grid[data-count="3"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 4개일 때 */
.log20_pc_port_grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 5개일 때 */
.log20_pc_port_grid[data-count="5"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 6개일 때 */
.log20_pc_port_grid[data-count="6"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

.log20_pc_port_item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.log20_pc_port_item_inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.log20_pc_port_item_inner img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    cursor: pointer;
}

.log20_pc_port_item_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.log20_pc_port_item:hover .log20_pc_port_item_overlay {
    opacity: 1;
}

.log20_pc_port_item_name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.log20_pc_port_empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #bbb;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* PC 이미지 팝업 */
.log20_pc_image_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.log20_pc_image_modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.log20_pc_image_modal_inner {
    max-width: 90%;
    max-height: 90%;
}

.log20_pc_image_modal_inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* 정보 영역 (하단 좌측: 가로 40%, 세로 40%) */
.log20_scena_newscena_info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0 10px 10px;
    box-sizing: border-box;
}


.log20_scena_item_subtitle {
    font-size: 11px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 60%;
}

/* 부제 영역 (하단 우측: 가로 60%, 세로 40%) */
.log20_scena_newscena_subt {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 40%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 10px;
}

.log20_scena_newscena_subt .log20_item_subtitle {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    padding: 0;
    font-size: 13px;
    font-weight: normal;
    color: #333;
    opacity: 1;
    width: 100%;
    max-width: 100%;
    text-align: left;
    pointer-events: auto;
}

.log20_scena_item_title_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    border-top: 1px solid var(--action-color, #333);
    border-bottom: 1px solid var(--action-color, #333);
    padding: 0px 12px;
    margin: 0;
    height: 45px;
    box-sizing: border-box;
    overflow: hidden;
    transition: color 0.3s ease;
    width: 100%;
}

.log20_scena_newscena_info .log20_scena_item_title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
    word-break: break-word;
    display: flex;
    align-items: center;
}

.log20_scena_item_writer {
    font-size: 10px;
    color: #777;
    margin: 0;
    align-self: flex-end;
}

.log20_scena_newscena_info .log20_scena_item_trailer {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.log20_scena_item_meta .log20_scena_item_rule,
.log20_scena_item_meta .log20_scena_item_gm,
.log20_scena_item_meta .log20_scena_item_pc {
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_item_meta .log20_scena_item_pc {
    flex-basis: 100%;
    width: 100%;
}

.log20_scena_item_title_row::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--action-color, #333);
    transform: var(--hover-transform, scaleY(0));
    transform-origin: var(--hover-origin, top center);
    transition: transform 0.4s ease;
    z-index: 0;
}

.log20_scena_item_title_row:hover::before {
    transform: var(--hover-transform-hover, scaleY(1));
}

.log20_scena_item_title_row .log20_scena_item_title,
.log20_scena_item_title_row .log20_scena_item_writer {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.log20_scena_item_title_row:hover .log20_scena_item_title,
.log20_scena_item_title_row:hover .log20_scena_item_writer {
    transform: translateX(2px);
}

.log20_scena_item_title_row .log20_scena_item_writer strong {
    transition: color 0.3s ease;
}

.log20_scena_item_title_row:hover .log20_scena_item_title,
.log20_scena_item_title_row:hover .log20_scena_item_writer,
.log20_scena_item_title_row:hover .log20_scena_item_writer strong {
    color: var(--accent-color, #666);
}

.log20_scena_newscena_info .log20_scena_list_item_startdate,
.log20_scena_newscena_info .log20_scena_item_enddate {
    font-size: 12px;
    color: #333;
}

.log20_scena_list_item_dates {
    margin: 0;
    padding-top: 0;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    height: 32px;
    box-sizing: border-box;
}

.log20_scena_newscena_info .log20_scena_list_item_dates {
    align-self: flex-start;
    margin-top: auto; /* info 영역 내에서 하단 정렬 */
}

.log20_scena_list_item_dates span {
    display: inline-flex;
    align-items: center;
}

.log20_scena_list_item_date_label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.log20_scena_list_item_startdate,
.log20_scena_item_enddate {
    font-weight: 500;
    color: #333;
}

.log20_scena_list_item_range_sep {
    color: #666;
    font-weight: 500;
}

.log20_scena_rule_row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 32px;
    box-sizing: border-box;
}

.log20_scena_action_cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.log20_scena_action_row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.log20_scena_action_cell .log20_subitem_btn {
    color: var(--action-color, #333);
    border-color: var(--action-color, #ccc);
    background: #fff;
}

.log20_scena_action_cell .log20_subitem_btn:hover {
    background: var(--action-color, #333);
    border-color: var(--accent-color, #666);
    color: var(--accent-color, #666);
}

.log20_scena_item_subtitle {
    font-size: 14px;
    color: #666;
}
.log20_scena_action_row {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 0;
}

/* 시나리오 리스트 영역 (별도 영역, 화면 하단) */
.log20_content_scenalist {
    width: 90%;
    margin: 25px auto 10px auto;
    background: #ffffff;
    border: 1px solid var(--action-color, var(--card-border-color));
    border-radius: var(--card-border-radius);
    padding: 10px 15px;
    box-sizing: border-box;
    position: relative;
    height: 15vh;
    display: flex;
    align-items: center;
}

.log20_scenalist_thumbnails_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.log20_scenalist_thumbnails {
    flex: 1;
    height: 100%;
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.log20_scenalist_thumb_item {
    flex: 0 0 calc(25% - 7.5px);
    min-width: calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
    width: calc(25% - 7.5px);
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}


.log20_scenalist_thumb_item_image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.log20_scenalist_thumb_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.log20_scenalist_thumb_item:hover img {
    transform: scale(1.1);
}

.log20_scenalist_thumb_item_name {
    background: transparent;
    font-size: 11px;
    color: #333;
    text-align: center;
    padding: 8px 4px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scenalist_thumbnails img {
    display: block;
    height: 100%;
    object-fit: cover;
    margin: auto 0;
}

.log20_scenalist_thumb_item i {
    font-size: 32px;
    color: #999;
}

.log20_scenalist_arrow {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    flex-shrink: 0;
}

.log20_scenalist_arrow:hover {
    background: var(--accent-color, #666);
}

.log20_scenalist_arrow i {
    font-size: 14px;
}

.log20_scenalist_arrow img {
    display: block;
    max-width: 70%;
    max-height: 70%;
    margin: 0 auto;
    object-fit: contain;
}

.log20_sublist_area {
    width: 100%;
}

.log20_sublist_scena_area {
    width: 90%;
    margin: 0 auto;
}

.log20_sublist_header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 5px solid;
    margin-bottom: 15px;
}

.log20_content_sublist_scena .log20_sublist_header {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.log20_sublist_write_btn {
    position: relative;
    width: 100%;
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0px !important;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    color: var(--accent-color, #666);
    background: #fff;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.log20_sublist_write_btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--action-color, #333);
    transition: height 0.45s ease;
    z-index: -1;
}

.log20_sublist_write_btn_text {
    display: inline-block;
    transition: transform 0.35s ease, font-weight 0.35s ease, color 0.35s ease;
    color: var(--action-color, #333);
    letter-spacing: 0.02em;
}

.log20_sublist_write_btn:hover {
    color: var(--accent-color, #fff);
    background-color: transparent;
}

.log20_sublist_write_btn:hover::before {
    height: 100%;
}

.log20_sublist_write_btn:hover .log20_sublist_write_btn_text {
    font-weight: 700;
    transform: translateX(-3px);
    color: var(--accent-color, #fff);
}

.log20_loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* 반응형 디자인 - 너비 제한 제거, 게시물이 필요한 만큼만 공간을 차지하도록 함 */

@media (max-width: 768px) {
    .log20_list_area {
        width: 100%;
        gap: 15px;
    }

    .log20_list_item {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 400px;
    }

    .log20_content {
        width: 100%;
    }

    .log20_content_title {
        flex-direction: column;
    }

    .log20_thumbnail {
        width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .log20_thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: none;
    }

    .log20_info {
        width: 100%;
        overflow: visible;
        align-items: center;
        height: auto;
        min-height: auto;
        position: relative;
        gap: 25px;
        padding-bottom: 25px;
    }
    
    .log20_info_item {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .log20_info_item_subtitle {
        width: 100% !important;
        display: block !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    .log20_info_item_title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        display: block !important;
        margin: 20px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        font-size: 28px !important;
    }
    
    .log20_content_title {
        overflow: visible;
        padding-bottom: 20px;
    }
}

/* 버튼 스타일 */
.btn_bo_user {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn_bo_user li {
    margin: 0;
}

.btn_bo_user.bo_v_com {
    justify-content: flex-end;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01,
.btn_bo_user.bo_v_com .btn,
.btn_bo_user.bo_v_com .btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn:hover,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01:hover,
.btn_bo_user.bo_v_com .btn:hover,
.btn_bo_user.bo_v_com .btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--btn-primary-radius);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    font: inherit;
    line-height: 1.5;
    appearance: none;
    vertical-align: middle;
}

.btn:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

.btn_admin {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn_admin:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}


.btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

/* 검색 영역 */
.bo_sch_wrap {
    display: none;
    position: relative;
    margin-top: 20px;
}

.bo_sch {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.bo_sch_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sch_bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sch_input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.sch_btn {
    padding: 8px 15px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 페이지네이션 */
.paginate_wrap {
    margin: 20px 0;
    text-align: center;
}

/* 버튼 확인 영역 */
.btn_confirm {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

/* 작성완료 버튼 */
.btn_submit,
#btn_submit {
    font-weight: bold;
}

/* 시나리오 목록 영역 */
.log20_scena_list_area {
    flex-direction: column;
    gap: 0;
}

/* 시나리오 목록 아이템 스타일 */
.log20_scena_list_item {
    width: 100%;
    height: 245px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 0;
    display: flex;
    align-items: center;
}


.log20_scena_item_link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.log20_subitem_actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid var(--border-light);
    background: #fafafa;
}

.log20_subitem_btn {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.log20_subitem_btn:hover {
    background: #f0f0f0;
}

.log20_subitem_btn--delete {
    border-color: #c0392b;
    color: #c0392b;
}

.log20_subitem_btn--delete:hover {
    background: #c0392b;
    color: #fff;
}

/* 왼쪽 20% - 부제목 정보 영역 */
.log20_scena_list_item_subdetail {
    width: 20%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
}

/* 시작 날짜 - 최상단 좌측 */
.log20_scena_list_item_startdate {
    font-size: 10px;
    line-height: 1.2;
}

/* 룰과 트레일러 영역 - width 우측 정렬, height 중앙정렬부터 시작 */
.log_scena_list_item_explain {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 1;
    text-align: right;
}

.log_scena_list_item_explain > div {
    width: 100%;
    border-bottom: 1px solid var(--action-color, #333);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.log_scena_list_item_explain > div:last-child {
    margin-bottom: 0;
}

.log20_scena_item_rule {
    font-size: 12px;
    margin-bottom: 0px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_item_trailer {
    font-size: 10px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_list_item_subdetail .log20_scena_item_gm,
.log20_scena_list_item_subdetail .log20_scena_item_pc {
    font-size: 12px;
    margin-bottom: 3px;
    text-align: right;
    line-height: 1.3;
}

/* 가운데 40% - 썸네일 이미지 영역 */
.log20_scena_list_item_thumbnail {
    width: 40%;
    height: 240px;
    padding-bottom:15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    margin: 10px 0;
}

.log20_scena_list_item_thumbnail img {
    max-height: 240px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.log20_scena_list_item_thumbnail i {
    font-size: 48px;
}

/* 오른쪽 40% - 주요정보 영역 */
.log20_scena_list_item_maindetail {
    width: 40%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
    padding-top: 55px;
}

.log20_scena_list_item_maindetail .log20_scena_item_title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    line-height: 1.4;
    word-break: break-word;
    border-top: 1px solid var(--action-color, #333);
    border-bottom: 1px solid var(--action-color, #333);
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.log20_scena_item_trailer_main {
    font-size: 12px;
    margin: 5px 0 10px;
    line-height: 1.4;
    word-break: break-word;
}

.log20_scena_item_meta {
    font-size: 12px;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    grid-row: auto;
    min-height: 32px;
    height: auto;
    box-sizing: border-box;
}

.log20_scena_item_meta span {
    display: inline-flex;
    gap: 4px;
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: inherit;
    align-items: center;
    line-height: 1.3;
}

.log20_scena_item_enddate {
    font-size: 10px;
    text-align: right;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.log20_subitem_actions--overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    margin: 0;
    background: transparent;
    border-top: none;
    gap: 10px;
    z-index: 2;
}

.log20_subitem_actions--overlay .log20_subitem_btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--action-color, #333);
    color: var(--action-color, #333);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_subitem_actions--overlay .log20_subitem_btn i {
    font-size: 15px;
    line-height: 1;
}

.log20_subitem_actions--overlay .log20_subitem_btn:hover {
    background: var(--action-color, #333);
    color: #fff;
}

.log20_subitem_btn--icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_subitem_btn--icon i {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

/* pclist view 스타일 */
.pclist_view_content {
    max-width: 100%;
    margin: 15px 0 0 0;
    margin: 0 auto;
    padding: 20px;
}

.pclist_view_oneline {
    font-size: 18px;
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
    padding-top: 15px;
    padding-bottom: 10px;
    text-align: center;
}

.pclist_view_header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.pclist_view_main_image {
    flex: 0 0 50%;
    width: 50%;
}

.pclist_view_main_image_wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.pclist_view_main_image_img {
    width: 100%;
    height: auto;
    display: block;
}

.pclist_view_main_image_empty {
    color: #999;
    font-size: 14px;
    padding: 40px;
    text-align: center;
}

.pclist_view_title_area {
    flex: 1;
}

.pclist_view_subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.pclist_view_title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #333;
   border-top: 1px solid #333;
}

.pclist_view_keywords {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pclist_view_keyword {
    padding: 5px 12px;
    background: transparent;
    border-radius: 15px;
    font-size: 14px;
}

.pclist_view_color_boxes {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.pclist_view_color_box {
    width: 30px;
    height: 30px;
    border-radius: 0;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 30px;
    max-width: 30px;
}

.pclist_view_etc {
    margin-bottom: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pclist_view_etc_row_pair {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pclist_view_etc_row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: calc(50% - 5px);
    padding-bottom: 0;
    border: none;
}

.pclist_view_etc_subject {
    flex: 0 0 60px;
    color: #333;
    background: #e8e8e8;
    border-radius: 15px;
    padding: 5px 12px;
    text-align: center;
}

.pclist_view_etc_content {
    flex: 1;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pclist_view_content_body {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pclist_view_content_body .view_content {
    line-height: 1.6;
    color: #333;
}

/* write.pclist.skin.php 스타일 */
#fwrite {
    width: 90%;
    margin: 0 auto;
}

#secret_password_area {
    display: none;
}

.log20_field_block.flex-1 {
    flex: 1;
}

.log20_keyword_container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.log20_keyword_block {
    flex: 1;
    min-width: 150px;
}

.log20_etc_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.log20_etc_row_pair {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.log20_etc_row {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: calc(50% - 7.5px);
    padding: 10px;
    flex-direction: column;
}

.log20_etc_inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.log20_etc_subject_block {
    flex: 1;
    min-width: 120px;
}

.log20_etc_content_block {
    flex: 2;
    min-width: 150px;
}

.log20_existing_image {
    margin-bottom: 15px;
}

.log20_existing_image_preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.log20_existing_image img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.log20_existing_image_link {
    display: block;
    margin-bottom: 5px;
}

.log20_existing_image_label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.log20_existing_image_label input[type="checkbox"] {
    margin: 0;
}

.log20_field_small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* list.scena.skin.php 목록 버튼 컨테이너 */
.log20_scenalist_back_btn_wrap {
    width: 90%;
    margin: 0 auto 10px auto;
    padding: 0 20px;
}

/* list.scena.skin.php 목록 버튼 */
.log20_scenalist_back_btn_wrap .btn_b01.btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--btn-primary-radius);
}

/* list.scena.skin.php 목록 버튼 아이콘 */
.log20_scenalist_back_btn_wrap .btn_b01.btn i {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PC 화면에서 게시판만 1100px로 제한하고 중앙 정렬 */
@media (min-width: 1024px) {
    /* 게시판 리스트(.bo_list)와 게시판 보기(.bo_v) 페이지에서만 레이아웃 고정 */
    .bo_list #workspace-container, 
    .bo_v #workspace-container,
    .bo_list #container_wr,
    .bo_v #container_wr,
    .fortune-list #container_wr, /* 포츈 리스트 대응 */
    .timeline-view #container_wr { /* 포츈 뷰 대응 */
        max-width: 1100px !important; 
        margin: 0 auto !important;    
        padding: 20px !important;     
        float: none !important;
        display: block !important;
    }

    /* 리스트 아이템 중앙 정렬 */
    .log20_list_area {
        display: flex !important;
        justify-content: center !important; 
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* 낱개 아이템 간격 */
    .log20_list_item {
        margin: 10px !important;
    }
}