/* Phone + masonry layout. Kept separate from the shared read/write styles. */
#bo_gall.pb-board {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 56px;
    width: 100%;
    padding: 40px 24px;
    overflow: visible;
    box-sizing: border-box;
    color: var(--content-font-color, #354139)
}

.pb-board * {
    box-sizing: border-box
}

.pb-main {
    min-width: 0
}

/* Compact category tabs and writing actions. */
#bo_gall.pb-board .pb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    min-width: 0
}

#bo_gall.pb-board #bo_cate {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto
}

#bo_gall.pb-board #bo_cate ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 4px;
    background: #f6f6f6;
    border: 0;
    border-radius: 8px;
    list-style: none
}

#bo_gall.pb-board #bo_cate li {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0
}

#bo_gall.pb-board #bo_cate a {
    display: block;
    padding: 5px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #111;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    transition: background .15s ease
}

#bo_gall.pb-board #bo_cate a:hover {
    background: #ececec;
    color: #111
}

#bo_gall.pb-board #bo_cate #bo_cate_on {
    background: #fff;
    color: #111;
    font-weight: 400;
    box-shadow: 0 1px 3px #00000008
}

#bo_gall.pb-board .pb-write-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto
}

#bo_gall.pb-board .pb-write-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s ease
}

#bo_gall.pb-board .pb-write-link {
    background: #000;
    color: #fff
}

#bo_gall.pb-board .pb-write-link:hover {
    background: #292929
}

#bo_gall.pb-board .pb-bulk-link {
    background: #f6f6f6;
    color: #333
}

#bo_gall.pb-board .pb-bulk-link:hover {
    background: #eaeaea
}

@media(max-width:480px) {
    #bo_gall.pb-board .pb-toolbar {
        flex-wrap: wrap;
        gap: 12px
    }

    #bo_gall.pb-board #bo_cate {
        flex: 0 1 auto
    }

    #bo_gall.pb-board .pb-write-actions {
        gap: 6px
    }
}

.pb-sidebar {
    min-width: 0;
    border-right: 1px solid var(--card-border-color, #e2e7e1);
    padding-right: 32px
}

.pb-side-inner {
    position: sticky;
    top: 32px;
    text-align: center
}

.pb-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 28px;
        letter-spacing: 2px;
    font-size: var(--content-font-size);
    color: var(--content-font-color);
}

.pb-eyebrow>span {
    width: 5px;
    height: 5px;
    background: #8eab93;
    border-radius: 50%
}

.pb-phone {
    position: relative;
    width: 264px;
    max-width: 100%;
    margin: auto;
    padding: 7px;
    border: 1px solid #a3a5a3;
    border-radius: 43px;
    background: linear-gradient(115deg, #fafafa, #bcbfbb 28%, #e8eae6 60%, #929992);
    box-shadow: 0 24px 40px -16px #28372d45, inset 0 0 0 2px #e8ebe6
}

.pb-phone:before,
.pb-phone:after {
    content: '';
    position: absolute;
    width: 3px;
    background: #9b9e99;
    border-radius: 2px
}

.pb-phone:before {
    height: 44px;
    left: -3px;
    top: 108px
}

.pb-phone:after {
    height: 58px;
    right: -3px;
    top: 139px
}

.pb-screen {
    position: relative;
    aspect-ratio: 9/19.5;
    overflow: hidden;
    border: 4px solid #202420;
    border-radius: 36px;
    background: var(--secondary-color, #f8faf6);
    isolation: isolate
}

.pb-wallpaper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    z-index: -2
}

.pb-screen:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(#10271938, transparent 55%, #15291d60);
    z-index: -1;
    pointer-events: none
}

.pb-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 22px;
    border-radius: 20px;
    background: #171b18
}

.pb-island:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #243343;
    box-shadow: inset 0 0 0 2px #111a24
}


.pb-photo-link {
    position: absolute;
    bottom: 36px;
    left: 13px;
    right: 13px;
    padding: 15px;
    text-align: left;
    color: #fff !important;
    border: 1px solid #ffffff40;
    border-radius: 17px;
    background: #ffffff24;
    backdrop-filter: blur(16px);
    text-decoration: none
}

.pb-photo-link>span {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 1.5px;
    opacity: .8
}

.pb-photo-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 9px 0 5px;
    font-size: 13px
}

.pb-photo-link small {
    font-size: 9px;
    opacity: .75
}

.pb-home-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 8px;
    background: #fff
}

.pb-phone-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px
}

.pb-phone-footer>span {
    font-family: var(--content-font-family);
    font-size: var(--content-font-size);
    color: var(--content-font-color);
    margin-top: 10px;
}

.pb-shuffle {
    padding: 8px 15px;
    border: 1px solid #d9e1d8;
    border-radius: 30px;
    background: var(--card-bg-color, #f8faf6);
    color: var(--content-font-color, #53664f);
    font-size: 11px;
    cursor: pointer
}

.pb-shuffle i {
    margin-right: 5px
}

.pb-shuffle:hover {
    filter: brightness(.96)
}

.pb-shuffle:disabled {
    opacity: .4;
    cursor: default
}

.pb-side-note {
    font-size: 12px;
    color: var(--content-font-color, #8b958d);
    margin-top: 5px;
    line-height: 1.8
}

.pb-heading {
    padding: 3px 0 24px;
    border-bottom: 1px solid var(--card-border-color, #e3e8e1);
    margin-bottom: 22px
}

.pb-heading>span {
    font-size: 9px;
    letter-spacing: 2.5px;
    color: #869681
}

.pb-heading h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -1px;
    margin: 12px 0 9px
}

.pb-heading p {
    font-size: 12px;
    color: var(--text-muted, #8a9288);
    margin: 0
}

#bo_gall.pb-board .bo_gall_top {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px
}

#bo_gall.pb-board #bo_list_total {
    font-size: 10px;
    line-height: 1.7;
    color: var(--text-muted, #81917d)
}

#bo_gall.pb-board #bo_gall_act {
    min-width: 0;
    max-width: 100%
}

#bo_gall.pb-board .btn_bo_user {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px
}

#bo_gall.pb-board .bo_sch_inline .sch_input {
    width: 140px;
    min-width: 0;
    font-size: 11px
}

#bo_gall.pb-board .bo_sch_inline select {
    max-width: 88px;
    font-size: 11px
}

#bo_gall.pb-board #gall_ul {
    display: block;
    columns: var(--gallery-cols, 3);
    column-gap: 16px;
    margin: 0;
    list-style: none;
    padding: 0
}

#bo_gall.pb-board .gall_li {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    break-inside: avoid;
    margin: 0 0 18px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transform: none
}

#bo_gall.pb-board .gall_li.notice {
    border: 0
}

#bo_gall.pb-board .gall_box {
    background: transparent;
    border: 0;
    padding: 0
}

#bo_gall.pb-board .gall_img_link {
    display: block;
    border-radius: 15px;
    overflow: hidden
}

#bo_gall.pb-board .gall_img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    padding: 0;
    background: #e7ece4;
    border-radius: 15px;
    overflow: hidden
}

#bo_gall.pb-board .gall_img img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    transition: transform .35s ease
}

#bo_gall.pb-board .gall_img_link:hover img {
    transform: scale(1.035)
}

#bo_gall.pb-board .gall_text_href {
    padding: 10px 3px 0;
    background: transparent
}

#bo_gall.pb-board .gall_title_row {
    gap: 5px;
    margin-bottom: 5px
}

#bo_gall.pb-board .gall_subject {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6
}

#bo_gall.pb-board .gall_info {
    font-size: 10px;
    gap: 8px;
    color: var(--text-muted, #8d978c)
}

#bo_gall.pb-board .gall_meta {
    font-size: 10px;
    margin-top: 5px
}

#bo_gall.pb-board .empty_list {
    column-span: all;
    display: block;
    padding: 80px 10px;
    text-align: center;
    font-size: 13px;
    color: #8d978c
}

.pb-board a:focus-visible,
.pb-board button:focus-visible {
    outline: 2px solid #6f8d68;
    outline-offset: 4px
}

.pb-board .gall_chk:focus-within {
    outline: 2px solid #6f8d68;
    outline-offset: 3px
}

@media(max-width:1200px) {
    #bo_gall.pb-board {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 28px;
        padding: 28px 12px
    }

    .pb-sidebar {
        padding-right: 20px
    }

    #bo_gall.pb-board #gall_ul {
        columns: 2
    }
}

@media(max-width:760px) {
    #bo_gall.pb-board {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding: 20px 10px
    }

    .pb-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--card-border-color, #e2e7e1);
        padding: 0 0 24px
    }

    .pb-side-inner {
        position: static
    }

    .pb-phone {
        width: 220px
    }

    .pb-eyebrow {
        margin-bottom: 18px
    }

    .pb-side-note {
        display: none
    }

    .pb-phone-footer {
        margin-top: 16px;
        gap: 10px
    }

    .pb-heading h2 {
        font-size: 24px
    }

    #bo_gall.pb-board #gall_ul {
        column-gap: 12px
    }

    .pb-heading {
        margin-bottom: 16px
    }

    #bo_gall.pb-board .bo_sch_inline {
        max-width: 100%
    }

    #bo_gall.pb-board .bo_sch_inline select {
        display: block
    }
}

@media(prefers-reduced-motion:reduce) {
    #bo_gall.pb-board * {
        transition: none !important
    }
}
.pb-screen{touch-action:pan-y;user-select:none}.pb-screen:focus-visible{outline:2px solid #6f8d68;outline-offset:4px}.pb-wallpaper{-webkit-user-drag:none}
