/* [12번 고급 · biz_gallery] 올리브 라임 테마 (SEO 튜닝 완료) */
.s12_wrap {
    --accent: #4D7C0F;
    --accent-soft: #F7FEE7;
    --border: #D9F99D;
    max-width: 1080px;
    margin: 20px auto;
    font-family: 'Pretendard', 'Noto Sans KR', '맑은 고딕', sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}
.s12_wrap *, .s12_wrap *::before, .s12_wrap *::after { box-sizing: border-box; }
.s12_wrap a { color: inherit; text-decoration: none; }

.s12_btn {
    display: inline-block; padding: 8px 16px; border-radius: 6px;
    font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; line-height: 1.3;
}
.s12_btn_primary { background: var(--accent); color: #fff !important; }
.s12_btn_primary:hover { opacity: 0.9; }
.s12_btn_gray { background: #f3f4f6; color: #374151 !important; border-color: #d1d5db; }
.s12_input {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; background: #fff; color: #111827;
}
.s12_input:focus { outline: none; border-color: var(--accent); }
.s12_empty { text-align: center; padding: 50px 15px; color: #6b7280; font-size: 15px; }
.s12_noimg {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    min-height: 150px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; padding: 12px; text-align: center;
}

/* 브레드크럼 (SEO 경로 표시) */
.s12_breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; margin-bottom: 14px; flex-wrap: wrap; }
.s12_breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.s12_bc_cur { color: #374151; font-weight: 600; }

/* 리스트 상단/하단 */
.s12_list_top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.s12_total { font-size: 14px; color: #4b5563; }
.s12_total strong { color: var(--accent); }
.s12_top_actions { display: flex; gap: 8px; }
.s12_paging { margin: 28px 0 18px; text-align: center; }
.s12_search_bar { display: flex; justify-content: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.s12_sel_sm { width: auto; min-width: 130px; }
.s12_stx { width: 240px; }

/* 글쓰기 폼 */
.s12_write_title { font-size: 22px; font-weight: 700; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.s12_field { margin-bottom: 14px; }
.s12_field > label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.s12_req { color: #dc2626; }
.s12_biz_grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
    background: var(--accent-soft); border: 1px solid var(--border); border-radius: 10px;
    padding: 16px; margin-bottom: 16px;
}
.s12_col_full { grid-column: 1 / -1; }
.s12_opt_row { margin-bottom: 12px; display: flex; gap: 14px; font-size: 14px; }
.s12_file_row { background: #f9fafb; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 12px 14px; }
.s12_file_input { font-size: 14px; width: 100%; }
.s12_del_chk { display: inline-block; margin-top: 6px; font-size: 13px; color: #dc2626; }
.s12_btn_bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

/* 뷰 공통 */
.s12_view_hd { padding-bottom: 18px; border-bottom: 1px solid #e5e7eb; margin-bottom: 24px; }
.s12_view_kicker { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.s12_view_title { font-size: 26px; font-weight: 800; line-height: 1.38; margin: 0 0 12px; color: #111827; word-break: keep-all; }
.s12_view_meta { display: flex; gap: 16px; font-size: 13px; color: #6b7280; flex-wrap: wrap; }
.s12_hero_box { margin: 0 0 26px; text-align: center; }
.s12_img_item { margin: 0 0 14px; }
.s12_img_item img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.s12_view_body { font-size: 16px; line-height: 1.85; color: #1f2937; margin-bottom: 30px; word-break: keep-all; }
.s12_view_body img { max-width: 100%; height: auto; }
.s12_biz_card { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin: 22px 0; }
.s12_biz_hd { font-size: 16px; font-weight: 700; color: var(--accent); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.s12_biz_dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.s12_biz_dl > div { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.s12_biz_dl > div.s12_full_row { grid-column: 1 / -1; }
.s12_biz_dl dt { min-width: 64px; font-weight: 700; color: #4b5563; }
.s12_biz_dl dd { margin: 0; color: #111827; word-break: break-word; }
.s12_addr_txt { font-style: normal; display: inline; }
.s12_biz_links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.s12_link_btn { display: inline-block; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; }
.s12_link_main { background: var(--accent); color: #fff !important; }
.s12_link_sub { background: #fff; color: var(--accent) !important; border: 1px solid var(--accent); }

/* 내부 링크 강화 (관련 최신글 4건) */
.s12_rel_sec { margin: 34px 0 18px; padding-top: 22px; border-top: 1px solid #e5e7eb; }
.s12_rel_hd { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 14px; }
.s12_rel_list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.s12_rel_item { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.s12_rel_item:hover { border-color: var(--accent); }
.s12_rel_link { display: flex; align-items: center; gap: 12px; padding: 10px; height: 100%; }
.s12_rel_thumb { flex: 0 0 84px; height: 60px; border-radius: 6px; overflow: hidden; background: #f3f4f6; display: block; }
.s12_rel_thumb img { width: 100%; height: 100%; object-fit: cover; }
.s12_rel_info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.s12_rel_corp { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.s12_rel_tit { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s12_rel_dt { font-size: 11px; color: #6b7280; }

.s12_view_foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid #e5e7eb; margin-top: 24px; }
.s12_foot_right { display: flex; gap: 8px; }
.s12_cmt_wrap { margin-top: 28px; }
.s12_cmt_hd { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.s12_cmt_list { list-style: none; padding: 0; margin: 0; }
.s12_cmt_item { padding: 12px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.s12_cmt_meta { font-size: 13px; color: #6b7280; margin-bottom: 4px; }

.s12_card_grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.s12_card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.s12_card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.08); transform: translateY(-2px); }
.s12_card_img { display: block; width: 100%; height: 190px; overflow: hidden; background: #f3f4f6; }
.s12_card_img img { width: 100%; height: 100%; object-fit: cover; }
.s12_card_body { padding: 14px 16px; }
.s12_card_corp { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.s12_card_tit_h { margin: 0; font-size: 16px; }
.s12_card_tit { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; min-height: 44px; }
.s12_card_ft { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; border-top: 1px solid #f3f4f6; padding-top: 8px; }
.s12_rel_list { grid-template-columns: repeat(4, 1fr); }
.s12_rel_link { flex-direction: column; align-items: stretch; }
.s12_rel_thumb { flex: none; width: 100%; height: 95px; }
@media (max-width: 900px) { .s12_card_grid, .s12_rel_list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .s12_card_grid, .s12_biz_grid, .s12_biz_dl, .s12_rel_list { grid-template-columns: 1fr; }
}
