/* List-only scopes: detail/write pages keep their existing presentation. */
.cb-card-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px;width:100%;}
.cb-list-card {position:relative;min-width:0;}
.cb-card-image {display:block;position:relative;aspect-ratio:8/5;overflow:hidden;background:#f4f5f6;border-radius:8px;}
.cb-card-image img {display:block;width:100%;height:100%;object-fit:cover;}
.cb-card-body {min-width:0;padding:14px 0 0;}
.cb-card-title {margin:0;font-size:18px;line-height:1.5;font-weight:600;word-break:keep-all;overflow-wrap:anywhere;}
.cb-card-title a {display:block;}
.cb-card-meta {display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px;font-size:13px;color:#707070;line-height:1.6;}
.cb-card-category {display:inline-block;margin-bottom:6px;color:#32668a;font-size:13px;}
.cb-card-new,.cb-card-video {position:absolute;top:10px;left:10px;padding:4px 8px;border-radius:4px;background:#244e68;color:#fff;font-size:12px;}
.cb-card-video {left:auto;right:10px;}
.cb-card-check {position:absolute;top:10px;left:10px;padding:8px;background:#fff;border-radius:4px;}
.cb-card-check input {width:18px;height:18px;}
.cb-card-empty {grid-column:1/-1;padding:70px 16px;text-align:center;color:#777;}
.cb-card-grid--archive .cb-list-card {display:flex;flex-direction:column;border:1px solid #e3e5e7;border-radius:10px;overflow:hidden;}
.cb-card-grid--archive .cb-card-image {aspect-ratio:3/4;border-radius:0;padding:16px;box-sizing:border-box;}
.cb-card-grid--archive .cb-card-image img {object-fit:contain;}
.cb-card-grid--archive .cb-card-body {display:flex;flex-direction:column;flex:1;padding:18px;}
.cb-card-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:18px;}
.cb-card-actions a {display:flex;justify-content:center;align-items:center;gap:5px;min-height:44px;padding:8px 12px;box-sizing:border-box;border:1px solid #d6dde2;border-radius:5px;font-size:14px;line-height:1.4;}
.cb-card-actions .cb-card-ebook {background:#244e68;border-color:#244e68;color:#fff;}
.cb-gallery-board a:focus-visible {outline:2px solid #2474af;outline-offset:3px;}
.cb-gallery-board .pageing_div {clear:both;}
#bo_gall.cb-event-board #gall_ul {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:16px 0 0;}
#bo_gall.cb-event-board #gall_ul:after {display:none;}
#bo_gall.cb-event-board .gall_li {float:none;width:auto;min-width:0;margin:0;padding:18px;border-radius:8px;}
#bo_gall.cb-event-board .gall_box {margin:0;}
#bo_gall.cb-event-board .gall_img {padding:0;}
#bo_gall.cb-event-board .gall_text_href a {font-size:18px;line-height:1.5;padding:0;word-break:keep-all;overflow-wrap:anywhere;}
#bo_gall.cb-event-board .event-date {line-height:1.6;}
#bo_gall.cb-event-board .event-state>label {margin:16px 0;max-width:100%;}
#bo_gall.cb-event-board .gall_info {display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;font-size:13px;}
#bo_gall.cb-event-board .gall_info .gall_date,#bo_gall.cb-event-board .gall_info .gall_view {margin:0;}
#bo_gall.cb-artist-board .artist_list {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;}
#bo_gall.cb-artist-board .artist_list>li {width:auto;min-width:0;max-width:none;padding:16px;box-sizing:border-box;}
#bo_gall.cb-artist-board .pd_style_add {padding:5px 0;min-width:0;gap:8px;}
#bo_gall.cb-artist-board .artist_list .list {flex-shrink:0;}
#bo_gall.cb-artist-board .artist_list .list2 {min-width:0;padding:0;overflow-wrap:anywhere;}
.cb-artist-filter label {display:inline-flex;align-items:center;gap:4px;min-height:32px;}
@media(max-width:1199px) {
 .cb-card-grid,#bo_gall.cb-event-board #gall_ul,#bo_gall.cb-artist-board .artist_list {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:1024px) {
 .cb-card-grid,#bo_gall.cb-event-board #gall_ul,#bo_gall.cb-artist-board .artist_list {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px;}
}
@media(max-width:599px) {
 .cb-card-grid,#bo_gall.cb-event-board #gall_ul,#bo_gall.cb-artist-board .artist_list {grid-template-columns:minmax(0,1fr);gap:24px;}
 .cb-card-grid--archive .cb-list-card {display:grid;grid-template-columns:112px minmax(0,1fr);padding:14px;gap:14px;align-items:start;}
 .cb-card-grid--archive .cb-card-image {aspect-ratio:2/3;padding:0;background:#f4f5f6;border-radius:4px;}
 .cb-card-grid--archive .cb-card-body {padding:0;}
 .cb-card-grid--archive .cb-card-title {font-size:18px;}
 .cb-card-grid--archive .cb-card-meta {gap:2px 8px;font-size:12px;}
 .cb-card-actions {padding-top:12px;gap:6px;}
 .cb-card-actions a {width:100%;padding:8px;font-size:13px;}
 #bo_gall.cb-event-board .gall_li {padding:20px 16px;}
 #bo_gall.cb-artist-board .artist_list>li {padding:18px;}
 .cb-artist-filter label {min-height:36px;}
}
@media(max-width:359px) {
 .cb-card-grid--archive .cb-list-card {grid-template-columns:88px minmax(0,1fr);gap:12px;padding:12px;}
 .cb-card-grid--archive .cb-card-title {font-size:16px;}
}

/* Keep event pagination centered and comfortably separated from the last card. */
@media(max-width:1024px) {
 #bo_gall.cb-event-board .pg_wrap {float:none;clear:both;display:flex;justify-content:center;width:100%;margin:28px 0 8px;}
 #bo_gall.cb-event-board .pg {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;max-width:100%;}
 #bo_gall.cb-event-board .pg_page,#bo_gall.cb-event-board .pg_current {flex:0 0 44px;box-sizing:border-box;width:44px;min-width:0;height:44px;line-height:42px;margin:0;padding:0;text-align:center;font-size:14px;border-radius:5px;}
 #bo_gall.cb-event-board .pg_page:focus-visible {outline:2px solid #2474af;outline-offset:2px;}
}
@media(max-width:359px) {
 #bo_gall.cb-event-board .pg_page,#bo_gall.cb-event-board .pg_current {flex-basis:36px;width:36px;}
}

/* Exhibition list only: whole posters and aligned information within each row. */
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_li {display:flex;padding:16px;border:1px solid var(--cb-ui-line,#d8dce2);border-radius:8px;background:#fff;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_box {width:100%;height:100%;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_con {display:flex;flex-direction:column;min-height:100%;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_img {height:280px;flex:0 0 280px;padding:0;background:var(--cb-ui-surface,#f4f5f6);border-radius:4px;overflow:hidden;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_img :is(a,picture,.cbmi-card) {display:block;width:100%;height:100%;margin:0;padding:0;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_img img {display:block;width:100%;height:100%!important;max-width:100%;object-fit:contain;object-position:center;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_img :is(.no_image,.is_notice) {display:flex;align-items:center;justify-content:center;height:100%;padding:16px;box-sizing:border-box;line-height:1.6;font-size:15px;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_text_href {margin:14px 0 0;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_text_href .bo_tit {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;height:72px;min-height:72px;margin:0;padding:0;font-size:16px;font-weight:700;line-height:24px;text-align:left;color:var(--cb-ui-ink,#202320);word-break:keep-all;overflow-wrap:anywhere;}
html body #bo_gall.cb-event-board.cb-exhibition-board .bo_tit :is(.fa-heart,.hot_icon,.new_icon,.cnt_cmt) {font-size:12px;vertical-align:baseline;}
html body #bo_gall.cb-event-board.cb-exhibition-board .event-date {display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:12px 0 0;text-align:left;line-height:22px;font-size:15px;font-weight:600;color:var(--cb-ui-ink,#202320);}
html body #bo_gall.cb-event-board.cb-exhibition-board .cb-event-date-label {font-size:14px;font-weight:400;color:var(--cb-ui-muted,#596570);}
html body #bo_gall.cb-event-board.cb-exhibition-board .cb-event-date-range {display:flex;flex-wrap:wrap;align-items:baseline;gap:0 5px;min-width:0;font-variant-numeric:tabular-nums;}
html body #bo_gall.cb-event-board.cb-exhibition-board .cb-event-date-range time {white-space:nowrap;}
html body #bo_gall.cb-event-board.cb-exhibition-board .event-state {margin:10px 0 14px;text-align:left;}
html body #bo_gall.cb-event-board.cb-exhibition-board .event-state>label {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-height:28px;margin:0;padding:3px 9px;border:1px solid var(--cb-ui-line,#d8dce2);border-radius:6px;font-size:14px;font-weight:500;line-height:20px;}
html body #bo_gall.cb-event-board.cb-exhibition-board .event-state>.event-ing {background:#286449;border-color:#286449;color:#fff;}
html body #bo_gall.cb-event-board.cb-exhibition-board .event-state>.event-plan {background:#fff;border-color:#286449;color:#286449;}
html body #bo_gall.cb-event-board.cb-exhibition-board .event-state>.event-close {background:var(--cb-ui-surface,#f4f5f6);color:var(--cb-ui-muted,#596570);}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_info {justify-content:flex-start;align-items:center;gap:4px 10px;margin-top:auto;padding-top:12px;border-top:1px solid var(--cb-ui-line,#d8dce2);text-align:left;font-size:14px;line-height:22px;color:var(--cb-ui-muted,#596570);}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_info :is(.gall_date,.gall_view,.sv_member) {white-space:nowrap;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_option:empty {display:none;}
html body #bo_gall.cb-event-board.cb-exhibition-board #gall_ul>.empty_list {grid-column:1/-1;}
html body #bo_gall.cb-event-board.cb-exhibition-board .gall_con a:focus-visible {outline:2px solid var(--cb-ui-action,#333);outline-offset:-2px;}
@media(max-width:599px) {
 html body #bo_gall.cb-event-board.cb-exhibition-board .gall_img {height:260px;flex-basis:260px;}
 html body #bo_gall.cb-event-board.cb-exhibition-board .gall_text_href .bo_tit {display:block;height:auto;min-height:0;overflow:visible;}
}
