@charset "utf-8";

/* ===================================
   Gallery Board Skin Stylesheet
   갤러리 게시판 스킨 스타일시트
   =================================== */

/* 공통 스타일 */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===================================
   갤러리 목록 스타일
   =================================== */

.bo_gallery_list {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 갤러리 헤더 */
.gallery_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.gallery_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.gallery_info {
    font-size: 14px;
    color: #666;
}

.gallery_info .total_count {
    margin-right: 10px;
}

.gallery_info strong {
    font-weight: 700;
    color: #333;
}

/* 카테고리 */
.gallery_cate_wrap {
    margin-bottom: 20px;
}

.gallery_cate_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.gallery_cate_list li {
    display: inline-block;
}

.gallery_cate_list a {
    display: block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.gallery_cate_list a:hover,
.gallery_cate_list #bo_cate_on {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 상단 버튼 */
.gallery_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn_left,
.btn_right {
    display: flex;
    gap: 5px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn_write {
    background: #333;
    color: #fff;
    border-color: #333;
}

.btn_write:hover {
    background: #555;
}

.btn_admin {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn_admin:hover {
    background: #0056b3;
}

/* 검색 영역 */
.gallery_search_wrap {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.gallery_search {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search_select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search_input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    font-size: 14px;
}

.btn_search {
    padding: 8px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn_search:hover {
    background: #555;
}

/* 갤러리 그리드 */
.gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.gallery_item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff;
}

.gallery_item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.notice_item {
    border: 2px solid #ff6b6b;
}

.gallery_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 이미지 영역 */
.gallery_img_wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery_item:hover .gallery_img {
    transform: scale(1.05);
}

/* 배지 */
.notice_badge,
.new_badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.notice_badge {
    background: #ff6b6b;
}

.new_badge {
    background: #28a745;
}

.comment_badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

/* 텍스트 영역 */
.gallery_text {
    padding: 20px;
}

.gallery_subject {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery_content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* 빈 목록 */
.gallery_empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

/* 페이징 */
.gallery_pagination {
    text-align: center;
    margin: 40px 0;
}



/* 관련링크 */
.bo_v_link {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
}

.bo_v_link_title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.bo_v_link_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bo_v_link_list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.bo_v_link_list li:last-child {
    border-bottom: none;
}

.link_icon {
    margin-right: 5px;
}

.bo_v_link_list a {
    color: #007bff;
    text-decoration: none;
}

.bo_v_link_list a:hover {
    text-decoration: underline;
}

.link_hit {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}


/* 버튼 영역 */
.bo_v_btn_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    margin-top: 30px;
}

.bo_v_btn_left,
.bo_v_btn_right {
    display: flex;
    gap: 5px;
}

.btn_list {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn_list:hover {
    background: #5a6268;
}

.btn_reply {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.btn_reply:hover {
    background: #138496;
}

.btn_modify {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
}

.btn_modify:hover {
    background: #e0a800;
}

/* 이전글/다음글 */
.bo_v_nav {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.bo_v_nav li {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.bo_v_nav li:last-child {
    border-bottom: none;
}

.nav_label {
    display: inline-block;
    width: 60px;
    font-weight: 600;
    color: #666;
}

.bo_v_nav a {
    color: #333;
    text-decoration: none;
    margin-left: 10px;
}

.bo_v_nav a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* ===================================
   글쓰기 스타일
   =================================== */

.bo_write_clean {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bo_w_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.bo_write_form {
    margin-bottom: 30px;
}

/* 작성 필드 */
.write_field {
    margin-bottom: 20px;
}

.write_field_group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.write_field_half {
    flex: 1;
    min-width: calc(50% - 10px);
}

.write_label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.write_label .required {
    color: #dc3545;
    margin-left: 3px;
}

.write_select,
.write_input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.write_select:focus,
.write_input:focus,
.comment_textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 옵션 체크박스 */
.write_option_wrap {
    display: flex;
    gap: 20px;
}

.write_option_item {
    display: flex;
    align-items: center;
}

.write_option_item input[type="checkbox"] {
    margin-right: 5px;
}

/* 제목 필드 */
.write_subject_wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.write_subject {
    flex: 1;
}

.btn_autosave {
    padding: 10px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.btn_autosave:hover {
    background: #5a6268;
}

/* 파일 첨부 */
.write_file_wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.write_file {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.write_file_desc {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.write_file_info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.file_name {
    color: #666;
    font-size: 13px;
}

/* 버튼 */
.bo_write_btn {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    border-top: 1px solid #dee2e6;
}

.btn_submit {
    padding: 12px 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn_submit:hover {
    background: #555;
}

.btn_cancel {
    padding: 12px 40px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
}

.btn_cancel:hover {
    background: #5a6268;
}

/* ===================================
   게시글 보기 스타일
   =================================== */

.bo_view_clean {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 게시글 헤더 */
.bo_v_header {
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.bo_v_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.bo_v_cate {
    display: inline-block;
    padding: 3px 10px;
    background: #007bff;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    margin-right: 10px;
}

.bo_v_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

.bo_v_info_left,
.bo_v_info_right {
    display: flex;
    gap: 15px;
}

.bo_v_writer strong {
    color: #333;
    font-weight: 600;
}

.bo_v_ip {
    color: #999;
    font-size: 12px;
}

/* 관련링크 URL 넘침 방지 */
.bo_v_link_list a {
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* 게시글 본문 */
.bo_v_content {
    padding: 30px 0;
    min-height: 300px;
}

.bo_v_con {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.bo_v_con img {
    max-width: 100%;
    height: auto;
}

.bo_v_signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    color: #666;
    font-size: 13px;
}

/* ===================================
   반응형 스타일
   =================================== */

@media (max-width: 1024px) {
    .gallery_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gallery_title {
        font-size: 20px;
    }

    .gallery_btn_top {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn_left,
    .btn_right {
        width: 100%;
        justify-content: center;
    }

    .gallery_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery_img_wrap {
        height: 250px;
    }

    .search_input {
        width: 100%;
    }

    .gallery_search {
        flex-direction: column;
    }

    .search_select {
        width: 100%;
    }
}

/* ===================================
   게시글 보기/쓰기 스타일 (clean 스킨 기본 사용)
   =================================== */

/* view.skin.php, write.skin.php에서 clean 스킨 CSS 사용 */
