/*
 * Abelle community board
 * Scope: static community routes and GnuBoard abelle0801 skins only.
 * The global/header navigation layer is intentionally not touched here.
 */

:root {
    --ab-board-ink: #27231f;
    --ab-board-muted: #7b7168;
    --ab-board-line: #ded7cf;
    --ab-board-soft: #f6f2ed;
    --ab-board-point: #9b7b5b;
    --ab-board-point-dark: #705740;
}

.ab-community-event-list,
.ab-community-notice-list,
.ab-board,
.ab-board-view,
.ab-board-write {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 80px)) !important;
    max-width: 1180px;
    margin-right: auto !important;
    margin-left: auto !important;
    color: var(--ab-board-ink);
    font-family: "Pretendard", "SUIT", sans-serif;
}

/* Legacy reference CSS declares these IDs as 90% with !important. */
#bo_gall.ab-community-event-list,
#bo_list.ab-community-notice-list {
    width: min(1180px, calc(100% - 80px)) !important;
}

.ab-community-event-list,
.ab-community-notice-list {
    padding-top: 96px;
    padding-bottom: 150px;
}

/* Event gallery */
.ab-community-event-list #bo_cate {
    margin: 0 0 48px;
    border: 0;
}

.ab-community-event-list #bo_cate h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ab-community-event-list #bo_cate_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-community-event-list #bo_cate_ul li {
    margin: 0;
    padding: 0;
}

.ab-community-event-list #bo_cate_ul a {
    display: flex;
    min-width: 92px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--ab-board-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ab-board-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ab-community-event-list #bo_cate_ul a:hover,
.ab-community-event-list #bo_cate_ul a:focus,
.ab-community-event-list #bo_cate_ul #bo_cate_on {
    border-color: var(--ab-board-point);
    background: var(--ab-board-point);
    color: #fff;
}

.ab-community-event-list #bo_btn_top,
.ab-community-notice-list #bo_btn_top {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 28px;
    padding: 0;
}

.ab-community-event-list #bo_list_total,
.ab-community-notice-list #bo_list_total {
    color: var(--ab-board-muted);
    font-size: 14px;
    line-height: 1.5;
}

.ab-community-event-list #bo_list_total span,
.ab-community-notice-list #bo_list_total span {
    margin-right: 8px;
    color: var(--ab-board-ink);
    font-weight: 700;
}

.ab-community-event-list .btn_bo_user,
.ab-community-notice-list .btn_bo_user {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-community-event-list .btn_bo_user .btn,
.ab-community-notice-list .btn_bo_user .btn {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ab-board-line);
    border-radius: 50%;
    background: #fff;
    color: var(--ab-board-ink);
    font-size: 15px;
}

.ab-community-event-list #gall_ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px 36px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-community-event-list #gall_ul .gall_li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ab-community-event-list .gall_box,
.ab-community-event-list .gall_con {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ab-community-event-list .gall_chk {
    display: none;
}

.ab-community-event-list .gall_img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 800 / 412;
    background: var(--ab-board-soft);
}

.ab-community-event-list .gall_img a,
.ab-community-event-list .gall_img img {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.ab-community-event-list .gall_img img {
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.ab-community-event-list .gall_box:hover .gall_img img {
    transform: scale(1.025);
}

.ab-community-event-list .gall_text_href {
    padding: 24px 2px 0;
}

.ab-community-event-list .bo_tit {
    display: block;
    color: var(--ab-board-ink);
    font-size: 21px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -.035em;
    text-decoration: none;
}

.ab-community-event-list .bo_tit > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ab-community-event-list .bo_tit .icon {
    flex: 0 0 auto;
    color: var(--ab-board-point);
    font-size: 13px;
}

.ab-community-event-list .date {
    margin-top: 12px;
    color: var(--ab-board-muted);
    font-size: 14px !important;
    line-height: 1.5;
    letter-spacing: .01em;
}

/* Native GnuBoard event skin: image-led editorial grid. */
.ab-event-board {
    padding-top: 92px;
    padding-bottom: 150px;
}

/* Legacy board styles may keep the inner list at a desktop-only percentage.
   The event shell owns the responsive width at every breakpoint. */
.ab-event-board > #bo_list,
.ab-event-board #bo_list,
.ab-event-board #fboardlist {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.ab-event-board__intro { margin-bottom: 42px; }
.ab-event-board__intro p {
    margin: 0 0 13px;
    color: var(--ab-board-point);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    letter-spacing: .2em;
}
.ab-event-board__intro h2 {
    margin: 0;
    color: var(--ab-board-ink);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.045em;
}
.ab-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 24px;
}
.ab-event-card,
.ab-event-card__link { display: block; min-width: 0; }
.ab-event-card__link { color: inherit; text-decoration: none; }
.ab-event-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 4px;
    background: var(--ab-board-soft);
}
.ab-event-card__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(31, 27, 24, .2));
    content: "";
    pointer-events: none;
}
.ab-event-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.ab-event-card__link:hover .ab-event-card__media img,
.ab-event-card__link:focus-visible .ab-event-card__media img { transform: scale(1.035); }
.ab-event-card__badge {
    position: absolute;
    z-index: 1;
    top: 18px;
    left: 18px;
    padding: 8px 12px 7px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: var(--ab-board-point-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    backdrop-filter: blur(8px);
}
.ab-event-card__copy { padding: 18px 2px 0; }
.ab-event-card__copy h3 {
    margin: 0;
    color: var(--ab-board-ink);
    font-size: 19px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -.035em;
    word-break: keep-all;
}
.ab-event-card__copy span {
    display: block;
    margin-top: 8px;
    color: var(--ab-board-muted);
    font-size: 12px;
}
.ab-event-grid__empty {
    grid-column: 1 / -1;
    padding: 100px 20px;
    border-top: 1px solid var(--ab-board-line);
    border-bottom: 1px solid var(--ab-board-line);
    text-align: center;
}

@media (min-width: 1101px) {
    html[data-abelle-site=true] #subtitle.ab-community-hero--event,
    html[data-abelle-site=true] #subtitle.ab-community-hero--event .subtitle_bg {
        height: 78vh !important;
        min-height: 620px !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event {
        background-color: #e7ebed !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event:after {
        background: linear-gradient(90deg, rgba(27, 31, 35, .5) 0%, rgba(27, 31, 35, .34) 40%, rgba(27, 31, 35, .12) 66%, rgba(27, 31, 35, .04) 100%) !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event > .container {
        width: min(1200px, calc(100% - 96px)) !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event p:not(.point-font) {
        max-width: 500px;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event > .container:after {
        margin-right: 0 !important;
        margin-left: 170px !important;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    html[data-abelle-site=true] #subtitle.ab-community-hero--event,
    html[data-abelle-site=true] #subtitle.ab-community-hero--event .subtitle_bg {
        height: 78vh !important;
        min-height: 620px !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event {
        background-color: #e7ebed !important;
    }

    .ab-event-board {
        width: calc(100% - 64px) !important;
        padding-top: 64px;
        padding-bottom: 130px;
    }

    .ab-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 46px 22px;
    }
}

/* Notice table */
.ab-community-notice-list .tbl_wrap {
    overflow: visible;
    border-top: 2px solid var(--ab-board-ink);
}

.ab-community-notice-list table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.ab-community-notice-list caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ab-community-notice-list th,
.ab-community-notice-list td {
    height: auto;
    padding: 24px 16px;
    border: 0;
    border-bottom: 1px solid var(--ab-board-line);
    background: #fff;
    color: var(--ab-board-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    vertical-align: middle;
}

.ab-community-notice-list th {
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--ab-board-ink);
    font-weight: 650;
}

.ab-community-notice-list th:nth-child(1) { width: 86px; }
.ab-community-notice-list th:nth-child(3) { width: 130px; }
.ab-community-notice-list th:nth-child(4) { width: 90px; }
.ab-community-notice-list th:nth-child(5) { width: 110px; }

.ab-community-notice-list td.td_subject {
    padding-right: 26px !important;
    padding-left: 26px !important;
    text-align: left;
}

.ab-community-notice-list .bo_tit {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ab-community-notice-list .bo_tit a {
    overflow: hidden;
    color: var(--ab-board-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-community-notice-list .bo_tit i {
    flex: 0 0 auto;
    color: var(--ab-board-point);
    font-size: 12px;
}

/* Shared pagination */
.ab-community-event-list .pg_wrap,
.ab-community-notice-list .pg_wrap,
.ab-board__paging {
    margin: 72px 0 0;
    text-align: center;
}

.ab-community-event-list .pg,
.ab-community-notice-list .pg,
.ab-board__paging .pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ab-community-event-list .pg_page,
.ab-community-event-list .pg_current,
.ab-community-notice-list .pg_page,
.ab-community-notice-list .pg_current,
.ab-board__paging .pg_page,
.ab-board__paging .pg_current {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--ab-board-line);
    border-radius: 50%;
    background: #fff;
    color: var(--ab-board-muted);
    font-size: 13px;
    line-height: 1;
}

.ab-community-event-list .pg_current,
.ab-community-notice-list .pg_current,
.ab-board__paging .pg_current {
    border-color: var(--ab-board-point-dark);
    background: var(--ab-board-point-dark);
    color: #fff;
}

.ab-community-event-list .pg_end,
.ab-community-notice-list .pg_end {
    border-radius: 999px;
}

/* Search layer used by the crawled pages and native board skin. */
.ab-community-event-list .bo_sch_wrap,
.ab-community-notice-list .bo_sch_wrap {
    display: none;
    position: fixed;
    z-index: 10050;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ab-community-event-list .bo_sch_wrap[style*="block"],
.ab-community-notice-list .bo_sch_wrap[style*="block"] {
    display: flex !important;
}

.ab-community-event-list .bo_sch,
.ab-community-notice-list .bo_sch {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 36px;
    border: 0;
    background: #fff;
    box-shadow: 0 28px 80px rgba(32, 27, 23, .18);
}

.ab-community-event-list .bo_sch_bg,
.ab-community-notice-list .bo_sch_bg {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(27, 24, 21, .56);
}

@media (max-width: 767px) {
    html[data-abelle-site=true] #subtitle.ab-community-hero--event,
    html[data-abelle-site=true] #subtitle.ab-community-hero--event .subtitle_bg {
        height: 76svh !important;
        min-height: 560px !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event {
        background-color: #e7ebed !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event .subtitle_bg {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event .subtitle_bg img.mo {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: 58% center !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event:after {
        background: linear-gradient(180deg, rgba(27, 31, 35, .12) 0%, rgba(27, 31, 35, .22) 48%, rgba(27, 31, 35, .48) 100%) !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event > .container {
        top: 54% !important;
        padding: 0 26px !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event .point-font {
        margin-bottom: 15px !important;
        font-family: "Pretendard", sans-serif !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: .28em !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event h1 {
        padding-bottom: 18px !important;
        font-size: 36px !important;
        font-weight: 650 !important;
        line-height: 1.12 !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event p:not(.point-font) {
        max-width: 300px;
        margin: 0 auto;
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event > .container:after {
        width: 20px;
        height: 20px;
        margin-top: 34px;
    }

    .ab-community-event-list,
    .ab-community-notice-list,
    .ab-board,
    .ab-board-view,
    .ab-board-write {
        width: calc(100% - 40px) !important;
    }

    .ab-event-board {
        width: calc(100% - 32px) !important;
        padding-top: 30px;
        padding-bottom: 104px;
    }
    .ab-event-board__intro { margin-bottom: 24px; }
    .ab-event-board__intro p { margin-bottom: 9px; font-size: 10px; }
    .ab-event-board__intro h2 { font-size: 25px; }
    .ab-event-board .ab-board__toolbar { margin-bottom: 18px; }
    .ab-event-grid { gap: 34px 14px; }
    .ab-event-card__media { border-radius: 3px; }
    .ab-event-card__badge {
        top: 9px;
        left: 9px;
        padding: 6px 8px 5px;
        font-size: 8px;
    }
    .ab-event-card__copy { padding: 14px 1px 0; }
    .ab-event-card__copy h3 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .ab-event-card__copy span { margin-top: 6px; font-size: 11px; }

    #bo_gall.ab-community-event-list,
    #bo_list.ab-community-notice-list {
        width: calc(100% - 40px) !important;
    }

    .ab-community-event-list,
    .ab-community-notice-list {
        padding-top: 56px;
        padding-bottom: 130px;
    }

    .ab-community-event-list #bo_cate {
        margin-bottom: 34px;
    }

    .ab-community-event-list #bo_cate_ul {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .ab-community-event-list #bo_cate_ul::-webkit-scrollbar { display: none; }

    .ab-community-event-list #bo_cate_ul a {
        min-width: 76px;
        height: 38px;
        padding: 0 18px;
        font-size: 13px;
    }

    .ab-community-event-list #bo_btn_top,
    .ab-community-notice-list #bo_btn_top {
        margin-bottom: 22px;
    }

    .ab-community-event-list #gall_ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .ab-community-event-list .gall_text_href {
        padding-top: 18px;
    }

    .ab-community-event-list .bo_tit {
        font-size: 18px;
    }

    .ab-community-event-list .date {
        margin-top: 8px;
        font-size: 13px !important;
    }

    .ab-community-notice-list .tbl_wrap {
        border-top-width: 1px;
    }

    .ab-community-notice-list table,
    .ab-community-notice-list tbody,
    .ab-community-notice-list tr,
    .ab-community-notice-list td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .ab-community-notice-list thead {
        display: none;
    }

    .ab-community-notice-list tbody tr {
        position: relative;
        min-height: 112px;
        padding: 24px 0 22px 46px;
        border-bottom: 1px solid var(--ab-board-line);
    }

    .ab-community-notice-list tbody td {
        padding: 0 !important;
        border: 0;
        background: transparent;
        text-align: left;
    }

    .ab-community-notice-list tbody .td_num2 {
        position: absolute;
        top: 27px;
        left: 2px;
        width: 30px;
        color: var(--ab-board-point);
        font-family: Georgia, serif;
        font-size: 17px;
    }

    .ab-community-notice-list tbody .td_subject {
        margin-bottom: 12px;
    }

    .ab-community-notice-list .bo_tit {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .ab-community-notice-list .bo_tit a {
        display: block;
        width: 100%;
        overflow: visible;
        font-size: 16px;
        line-height: 1.5;
        text-overflow: clip;
        white-space: normal;
        word-break: keep-all;
    }

    .ab-community-notice-list tbody .td_name,
    .ab-community-notice-list tbody .td_num,
    .ab-community-notice-list tbody .td_datetime {
        display: inline-block;
        width: auto;
        margin-right: 12px;
        color: var(--ab-board-muted);
        font-size: 12px;
        line-height: 1.5;
    }

  .ab-community-notice-list tbody .td_num::before { content: "\C870\D68C\0020"; }
  .ab-community-notice-list tbody .td_datetime::before { content: "\B4F1\B85D\0020"; }

    .ab-community-event-list .pg_wrap,
    .ab-community-notice-list .pg_wrap,
    .ab-board__paging {
        margin-top: 52px;
    }

    .ab-community-event-list .pg_page,
    .ab-community-event-list .pg_current,
    .ab-community-notice-list .pg_page,
    .ab-community-notice-list .pg_current,
    .ab-board__paging .pg_page,
    .ab-board__paging .pg_current {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }

    .ab-community-event-list .bo_sch,
    .ab-community-notice-list .bo_sch {
        padding: 28px 22px;
    }
}

@media (max-width: 639px) {
    .ab-event-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .ab-event-card__media {
        aspect-ratio: 4 / 3;
        border-radius: 5px;
    }

    .ab-event-card__badge {
        top: 14px;
        left: 14px;
        padding: 7px 10px 6px;
        font-size: 9px;
    }

    .ab-event-card__copy h3 {
        font-size: 18px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }

    .ab-event-card__copy span { font-size: 12px; }
}

@media (max-width: 359px) {
    html[data-abelle-site=true] #subtitle.ab-community-hero--event > .container {
        top: 55% !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event h1 {
        font-size: 32px !important;
    }

    html[data-abelle-site=true] #subtitle.ab-community-hero--event > .container:after {
        margin-top: 24px;
    }

    .ab-event-board {
        width: calc(100% - 24px) !important;
        padding-top: 24px;
    }

    .ab-event-board__intro h2 { font-size: 23px; }
}
