@charset "utf-8";

/* ===== 공통 레이아웃 (헤더 높이 보정) ===== */
.board_wrap {
	position: relative;
	overflow: hidden;
}

#bo_gall,
#bo_v,
#bo_w {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 100px 40px 20px;
}

/* ===== 게시판 제목 ===== */
#bo_gall h2 {
	font-size: 32px;
	font-weight: 800;
	color: #000;
	text-align: center;
	margin-bottom: 24px;
	letter-spacing: 1px;
}

/* ===== 검색 ===== */
#bo_sch {
	margin: 0 0 20px;
	padding: 0;
	border: none;
	text-align: center;
	overflow: visible;
}
#bo_sch form {
	display: inline-flex;
	align-items: center;
	padding: 8px 0;
	max-width: 350px;
	width: 100%;
	border: none;
	overflow: visible;
	border-bottom: 1px solid #E8E8E7;
	padding: 0;
}
#bo_sch .sch_input {
	flex: 1;
	min-width: 180px;
	border: none;
	outline: none;
	font-size: 14px;
	padding: 6px 8px;
	background: transparent;
	color: #333;
	font-weight: 400;
}
#bo_sch .sch_input::placeholder {
	color: #aaa;
	text-align: center;
	font-weight: 400;
}
#bo_sch .sch_btn {
	background: none;
	border: none;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 18px;
	color: #555;
}
.sch_btn {
	padding: 0 !important;
}
.sch_btn img {
	width: 30px;
	height: auto;
}
#bo_sch select { display: none; }
#bo_sch legend { display: none; }

.all_chk {
	border: 0;
}

#bo_gall,
#fboardlist,
.pg_wrap,
#gall_allchk,
#bo_list_total,
#gall_ul,
.bo_cate_tabs {
	position: relative;
	z-index: 1;
	background: transparent;
}

/* ===== 카테고리 탭 ===== */
.bo_cate_tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.bo_cate_tabs .cate_tab {
	padding: 8px 20px;
	border-radius: 24px;
	font-size: 13px;
	font-weight: 400;
	border: none;
	cursor: pointer;
	background: #f0f0f0;
	color: #888;
	transition: all .2s;
}
.bo_cate_tabs .cate_tab.is-active { background: #4CC8E8; color: #fff; }
.bo_cate_tabs .cate_tab:hover { background: #4CC8E8; color: #fff; }

#fboardlist {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}

/* ===== 갤러리 그리드 ===== */
#gall_ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.gall_li {
	background: #fff;
	overflow: hidden;
	transition: transform .3s, box-shadow .3s;
	cursor: pointer;
	border: 1px solid #eee;
}

.gall_li_wr {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

/* 체크박스 */
.gall_li_chk { position: absolute; top: 8px; left: 8px; z-index: 2; }

/* 이미지 */
.gall_img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #d5d5d5;
	position: relative;
}

.gall_img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.gall_li:hover .gall_img img {
	transform: scale(1.06);
}

.gall_img .no_img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ccc;
	font-size: 32px;
}

.gall_notice {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 14px;
	font-weight: 700;
	color: #4CC8E8;
	background: #f0f9fc;
}

/* 텍스트 영역 */
.gall_text_href {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
	border-top: 1px solid #eee;
}

.gall_cate_badge {
	display: inline-block;
	padding: 3px 10px;
	background: #2BBFEE;
	color: #fff;
	font-size: 17px;
	font-weight: 300;
	margin-bottom: 15px;
	align-self: flex-start;
}

.gall_li_link {
	text-decoration: none;
	display: block;
	overflow: hidden;
	min-width: 0;
}

/* 제목 - 2줄 */
.gall_li_tit {
	font-size: 18px;
	font-weight: 500;
	color: #000;
	line-height: 1.5;
	text-decoration: none;
	display: block;
	margin-bottom: 15px;
}

.gall_li_tit .bo_cmt,
.gall_li_tit .new_icon { display: none; }

/* 소제목 - 2줄 */
.gall_subtitle {
	font-size: 18px;
	color: #aaa;
	line-height: 1.5;
	margin-bottom: 25px;
}

.gall_li_tit,
.gall_subtitle {
	overflow: hidden;
	min-width: 0;
	width: 100%;
	word-break: break-word;
	word-wrap: break-word;
	padding: 0;
	/* 아래 전부 삭제 확인 */
	display: block;  /* -webkit-box 아님 */
	text-overflow: unset;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
}

.gall_info { display: none; }

/* 빈 목록 */
.empty_list {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: #aaa;
	font-size: 14px;
	list-style: none;
	font-weight: 400;
}

/* ===== 원형 장식 ===== */
.gall_circle_deco {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.gall_circle_deco .circle {
	position: absolute;
	border-radius: 50%;
	border: 2px solid;
}

.gall_circle_deco .circle--1 {
	width: 520px;
	height: 520px;
	top: 30%;
	right: -120px;
	border-color: #d5f2fb;
	animation: circleFloat1 8s ease-in-out infinite, circlePulse1 5s ease-in-out infinite;
}

.gall_circle_deco .circle--2 {
	width: 520px;
	height: 520px;
	top: 40%;
	right: -40px;
	border-color: #cdd4e0;
	animation: circleFloat1 9s ease-in-out infinite, circlePulse1 6s ease-in-out infinite;
	animation-delay: -2s;
}

@keyframes circleFloat1 {
	0%, 100% {
		transform: translateY(0px) scale(1);
	}
	50% {
		transform: translateY(-36px) scale(1.08);
	}
}

@keyframes circleFloat2 {
	0%, 100% {
		transform: translateY(0px) scale(1);
	}
	50% {
		transform: translateY(28px) scale(0.92);
	}
}

@keyframes circlePulse1 {
	0%, 100% {
		border-color: rgba(180, 210, 205, 0.55);
	}
	50% {
		border-color: rgba(180, 210, 205, 0.15);
	}
}

@keyframes circlePulse2 {
	0%, 100% {
		border-color: rgba(180, 210, 205, 0.35);
	}
	50% {
		border-color: rgba(180, 210, 205, 0.65);
	}
}

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
	#gall_ul { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.gall_cate_badge { font-size: 16px; }
	.gall_li_tit,
	.gall_subtitle { font-size: 17px; }

	.gall_circle_deco .circle--1,
	.gall_circle_deco .circle--2 {
		width: 450px;
		height: 450px;
	}
}

@media (max-width: 768px) {
	#gall_ul { grid-template-columns: repeat(2, 1fr); gap: 12px; }

	.gall_cate_badge { font-size: 15px; }

	.gall_li_tit,
	.gall_subtitle { font-size: 16px; }

	.gall_circle_deco .circle--1,
	.gall_circle_deco .circle--2 {
		width: 400px;
		height: 400px;
	}
}

@media (max-width: 480px) {
	#gall_ul { grid-template-columns: 1fr; gap: 14px; }

	.gall_cate_badge { font-size: 13px; }

	.gall_li_tit,
	.gall_subtitle { font-size: 14px; }

	.gall_circle_deco .circle--1,
	.gall_circle_deco .circle--2 {
		width: 330px;
		height: 330px;
	}
}

/* ===== AJAX 로딩 ===== */
.gall_loading {
	text-align: center;
	padding: 40px;
	color: #aaa;
	font-size: 13px;
	grid-column: 1 / -1;
}

/* ===== 페이지네이션 ===== */
.pg_wrap {
	text-align: center;
	margin: 32px 0 16px;
}
.pg_wrap .pg {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
/* 페이지 번호 */
.pg_wrap .pg a,
.pg_wrap .pg strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 500;
	color: #9F9F9F;
	text-decoration: none;
	transition: color .2s;
	border: none;
	background: transparent;
	margin: 0 2px;
}
/* 현재 페이지 */
.pg_wrap .pg strong {
	color: #000;
	font-weight: 700;
	background: transparent;
}
.pg_wrap .pg a:hover {
	color: #000;
	background: transparent;
}
/* 화살표와 숫자 사이 간격 */
.pg_wrap .pg .pg_prev,
.pg_wrap .pg .pg_prev.pg_disabled {
	margin-right: 10px;
}
.pg_wrap .pg .pg_next,
.pg_wrap .pg .pg_next.pg_disabled {
	margin-left: 10px;
}
/* 이전/다음 공통 */
.pg_wrap .pg .pg_prev,
.pg_wrap .pg .pg_next {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #000;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px auto;
	font-size: 0;
	transition: opacity .2s;
}
.pg_wrap .pg .pg_prev {
	background-image: url('/theme/oneby/img/oneby/icon_arrow_l.png');
}
.pg_wrap .pg .pg_next {
	background-image: url('/theme/oneby/img/oneby/icon_arrow_r.png');
}
.pg_wrap .pg .pg_prev:hover,
.pg_wrap .pg .pg_next:hover {
	opacity: 0.7;
}

/* 비활성 */
.pg_wrap .pg .pg_disabled {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #DBDBDB;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px auto;
	font-size: 0;
	cursor: default;
	pointer-events: none;
}
.pg_wrap .pg .pg_prev.pg_disabled {
	background-image: url('/theme/oneby/img/oneby/icon_arrow_l.png');
}
.pg_wrap .pg .pg_next.pg_disabled {
	background-image: url('/theme/oneby/img/oneby/icon_arrow_r.png');
}


/* ===== 리스트 하단 ===== */
#bo_list_total {
	text-align: center;
	font-size: 12px;
	color: #aaa;
	margin: 8px 0 16px;
}
#gall_allchk { margin-bottom: 12px; font-size: 13px; }

/* ===== 상단 버튼 ===== */
.btn_top {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}
.btn_top .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f5f5f5;
	color: #555;
	font-size: 14px;
	text-decoration: none;
	transition: background .2s;
}
.btn_top .btn:hover { background: #e0e0e0; }
.btn_top .write_btn {
	background: #4CC8E8;
	color: #fff;
	width: auto;
	padding: 0 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	gap: 4px;
}
.btn_top .write_btn:hover { background: #3ab8d8; }
.more_opt {
	display: none;
	position: absolute;
	right: 0;
	top: 40px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	padding: 6px 0;
	z-index: 10;
	min-width: 120px;
	list-style: none;
}
.more_opt li button,
.more_opt li a {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	background: none;
	border: none;
	cursor: pointer;
	width: 100%;
	text-align: left;
}
.more_opt li button:hover,
.more_opt li a:hover { background: #f5f5f5; }

/* ===== 관리자 바 보정 ===== */
body.admin_body { padding-top: 40px; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
	#bo_gall, #bo_v, #bo_w { padding: 90px 16px 20px; }
	#gall_ul { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	#bo_gall h2 { font-size: 26px; }
}
@media (max-width: 480px) {
	#gall_ul { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== 글보기 ===== */
#bo_v header { margin-bottom: 16px; }
#bo_v_title { font-size: 18px; font-weight: 700; color: #000; line-height: 1.5; margin-bottom: 8px; }
.bo_v_cate { display: inline-block; padding: 3px 10px; background: #4CC8E8; color: #fff; border-radius: 4px; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
#bo_v_info { font-size: 12px; color: #999; line-height: 1.8; }
#bo_v_info strong { font-weight: 500; }
#bo_v_atc { margin-bottom: 20px; }
#bo_v_atc_title { display: none; }
#bo_v_con { font-size: 14px; line-height: 1.8; color: #333; word-break: break-all; }
#bo_v_con img { max-width: 100%; height: auto; }
#bo_v_act { display: flex; justify-content: center; gap: 20px; padding: 16px 0; border-top: 1px solid #f0f0f0; }
.bo_v_good, .bo_v_nogood { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #555; text-decoration: none; padding: 8px 16px; border-radius: 8px; background: #f8f8f8; transition: background .2s; }
.bo_v_good:hover { background: #e8f7fc; color: #4CC8E8; }
.bo_v_nogood:hover { background: #fce8e8; color: #e84c4c; }
#bo_v_act_good, #bo_v_act_nogood { display: none; font-size: 12px; color: #4CC8E8; margin-left: 4px; }
#bo_v_file, #bo_v_link { padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 12px; }
#bo_v_file h2, #bo_v_link h2 { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 8px; }
#bo_v_file ul, #bo_v_link ul { list-style: none; padding: 0; }
#bo_v_file li, #bo_v_link li { padding: 6px 0; font-size: 13px; }
.view_file_download, .bo_v_link a { color: #4CC8E8; text-decoration: none; }
.bo_v_file_cnt, .bo_v_link_cnt { color: #aaa; font-size: 11px; margin-left: 8px; }
.bo_v_nb { list-style: none; padding: 16px 0; border-top: 1px solid #f0f0f0; margin: 0; }
.bo_v_nb li { padding: 8px 0; }
.bo_v_nb a { font-size: 13px; color: #555; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.bo_v_nb a:hover { color: #4CC8E8; }
#bo_v_share { display: none; position: absolute; right: 0; top: 40px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 10px; z-index: 10; }

/* ===== 댓글 ===== */
#bo_vc { margin-top: 20px; border-top: 1px solid #eee; padding-top: 16px; }
.bo_vc_tit { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 16px; }
.bo_vc_tit span { color: #4CC8E8; }
#bo_vc article { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.comment_inner header { font-size: 12px; color: #888; margin-bottom: 6px; }
.comment_inner header h2 { font-size: 13px; font-weight: 600; color: #333; display: inline; }
.cmt_contents p { font-size: 13px; color: #444; line-height: 1.7; }
.bo_vl_opt { display: inline; position: relative; }
.btn_cm_opt { background: none; border: none; cursor: pointer; color: #aaa; font-size: 12px; padding: 2px 6px; }
.bo_vc_act { display: none; position: absolute; right: 0; top: 20px; background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); padding: 4px 0; z-index: 10; list-style: none; }
.bo_vc_act li a { display: block; padding: 6px 14px; font-size: 12px; color: #333; text-decoration: none; white-space: nowrap; }
.bo_vc_act li a:hover { background: #f5f5f5; }
#bo_vc_empty { text-align: center; padding: 30px; color: #aaa; font-size: 13px; }
#bo_vc_w { margin-top: 16px; }
#bo_vc_w h2 { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 10px; }
.bo_vc_w textarea { width: 100%; min-height: 80px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; font-size: 13px; resize: vertical; outline: none; transition: border-color .2s; }
.bo_vc_w textarea:focus { border-color: #4CC8E8; }
.bo_vc_w_wr { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.bo_vc_w_info { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bo_vc_w_info input[type="text"], .bo_vc_w_info input[type="password"] { border: 1px solid #e0e0e0; border-radius: 6px; padding: 6px 10px; font-size: 12px; outline: none; width: 100px; }
.bo_vc_secret { font-size: 12px; color: #888; }
#char_cnt { font-size: 11px; color: #aaa; margin-bottom: 4px; display: block; text-align: right; }
.btn_submit { background: #222; color: #fff; border: none; border-radius: 8px; padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn_submit:hover { background: #4CC8E8; }

/* ===== 글쓰기 ===== */
.write_div { margin-bottom: 14px; }
.frm_input { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: 14px; outline: none; transition: border-color .2s; }
.frm_input:focus { border-color: #4CC8E8; }
.full_input { width: 100%; }
.bo_w_select select { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: 14px; outline: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
.bo_v_option { display: flex; gap: 12px; list-style: none; padding: 0; flex-wrap: wrap; }
.bo_v_option li { font-size: 13px; }
.btn_confirm { display: flex; justify-content: center; gap: 10px; margin-top: 20px; padding: 16px 0; }
.btn_cancel { display: inline-flex; align-items: center; justify-content: center; padding: 10px 28px; border-radius: 8px; background: #f0f0f0; color: #555; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s; }
.btn_cancel:hover { background: #e0e0e0; }
.filebox { display: flex; align-items: center; gap: 8px; }
.filebox .fileName { flex: 1; border: 1px solid #e0e0e0; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #999; background: #fafafa; }
.filebox label { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 8px; background: #f0f0f0; color: #555; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .2s; }
.filebox label:hover { background: #e0e0e0; }
.filebox input[type="file"] { display: none; }
.file_del { font-size: 12px; color: #888; margin-top: 4px; display: block; }
.thumb_upload_wrap { border: 2px dashed #ddd; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: border-color .2s; position: relative; min-height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.thumb_upload_wrap:hover { border-color: #4CC8E8; }
.thumb_upload_wrap .thumb_placeholder { font-size: 13px; color: #aaa; }
.thumb_upload_wrap .thumb_placeholder i { font-size: 28px; display: block; margin-bottom: 6px; color: #ccc; }
.thumb_upload_wrap input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.thumb_preview { max-width: 100%; max-height: 200px; border-radius: 8px; object-fit: cover; }
.thumb_remove { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 12px; cursor: pointer; display: none; align-items: center; justify-content: center; }
.thumb_upload_wrap.has-image .thumb_remove { display: flex; }
.thumb_upload_wrap.has-image .thumb_placeholder { display: none; }
.wr_cate_select { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: 14px; outline: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }