/* BASIC css start */
/* ============================================
   갤러리 게시판 상세 보기 - 모바일 디자인
   ============================================ */

#gallery-board-type {
    padding: 0 16px;
    background: #fff;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
}

/* ============================================
   게시판 타이틀
   ============================================ */
#gallery-board-type .board-header {
    padding: 28px 0 20px;
    border-bottom: 1px solid #1a1a1a;
}

#gallery-board-type .board-title {
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* ============================================
   게시글 헤더
   ============================================ */
#gallery-board-type .view-header {
    position: relative;
    padding: 20px 0 16px;
    border-bottom: 1px solid #e5e5e5;
}

#gallery-board-type .view-title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    word-break: break-all;
}

#gallery-board-type .view-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

#gallery-board-type .view-meta-left {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

#gallery-board-type .view-meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

#gallery-board-type .view-meta .rb_name {
    color: #555;
}

#gallery-board-type .view-meta .view-date::before {
    content: "|";
    margin: 0 8px;
    color: #ddd;
}

#gallery-board-type .view-meta-right .view-recommend-count {
    position: relative;
    padding-left: 0;
}

#gallery-board-type .btn-report {
    position: absolute;
    right: 0;
    bottom: 8px;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    z-index: 1;
}

/* ============================================
   게시글 본문
   ============================================ */
#gallery-board-type .rbContent {
    position: relative;
    padding: 20px 0;
    line-height: 1.6;
    font-size: 14px;
    color: #1a1a1a;
    word-break: break-all;
    border-bottom: 1px solid #e5e5e5;
}

#gallery-board-type .rbContent img {
    max-width: 100%;
    height: auto;
}

#gallery-board-type .rbContent .rb_thumbs {
    text-align: center;
    margin-bottom: 16px;
}

#gallery-board-type .rbContent .rb_thumbs img {
    max-width: 100%;
    height: auto;
}

#gallery-board-type .rbContent .rb_text {
    min-height: 80px;
    padding-bottom: 16px;
}

#gallery-board-type .rbContent .rb_text table {
    width: 100%;
    border-collapse: collapse;
}

#gallery-board-type .rbContent .rb_text table td {
    padding: 0;
    word-break: break-all;
}

/* SNS 버튼 */
#gallery-board-type .rbContent .rb_icons {
    padding-top: 16px;
    text-align: right;
}

#gallery-board-type .rbContent .rb_icons img {
    width: 28px;
    margin-left: 4px;
}

/* 추천 하트 버튼 */
#gallery-board-type .rbContent .rb_like {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}

#gallery-board-type .rbContent .rb_like .btn-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.15s;
}

#gallery-board-type .rbContent .rb_like .btn-like:hover {
    background: #f5f5f5;
}

#gallery-board-type .rbContent .rb_like .btn-like svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   관련 상품
   ============================================ */
#gallery-board-type .rbRelations {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

#gallery-board-type .rbRelations h5 {
    margin: 0 0 12px;
    padding: 0;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

#gallery-board-type .rbRelations ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#gallery-board-type .rbRelations ul li {
    flex: 0 0 calc(33.333% - 6px);
    font-size: 12px;
    list-style: none;
}

#gallery-board-type .rbRelations ul li a {
    display: block;
}

#gallery-board-type .rbRelations ul li img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   수정/삭제/추천 버튼 영역
   ============================================ */
#gallery-board-type .small-btns {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 20px 0 0;
}

#gallery-board-type .rb_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    box-sizing: border-box;
}

/* ============================================
   하단 글쓰기 / 목록보기 버튼
   ============================================ */
#gallery-board-type .form-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0 24px;
}

#gallery-board-type .form-buttons .btn_Submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    text-decoration: none;
    box-sizing: border-box;
    order: 1;
}

#gallery-board-type .form-buttons .btn_List {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    text-decoration: none;
    box-sizing: border-box;
    order: 2;
}

/* ============================================
   다른 게시글 (이전/다음)
   ============================================ */
#gallery-board-type .board-list {
    padding: 0;
    margin-top: 20px;
    border-top: 1px solid #1a1a1a;
}

#gallery-board-type .board-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#gallery-board-type .board-list li {
    margin: 0;
    padding: 14px 4px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    line-height: 1.5;
    list-style: none;
    color: #555;
}

#gallery-board-type .board-list li:last-child {
    border-bottom: none;
}

#gallery-board-type .board-list li .bold {
    display: inline-block;
    min-width: 60px;
    font-weight: 600;
    margin-right: 4px;
    color: #1a1a1a;
}

#gallery-board-type .board-list li a {
    color: #555;
    text-decoration: none;
}

#gallery-board-type .board-list li span a {
    color: #1a1a1a;
    margin-right: 2px;
}
/* BASIC css end */

