@charset "utf-8";

/* 게시판 쓰기 */
#autosave_wrapper {
	position: relative;
	font-size: 14px;
}

#autosave_pop {
	display: none;
	z-index: 10;
	position: absolute !important;
	top: 34px;
	right: 0;
	width: 100%;
	height: auto !important;
	height: 180px;
	max-height: 205px;
	border: 1px solid #565656;
	background: #fff;
	-webkit-box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
	box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.2);
}

#autosave_pop:before {
	content: "";
	position: absolute;
	top: -8px;
	right: 45px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 6px 8px 6px;
	border-color: transparent transparent #000 transparent;
}

#autosave_pop:after {
	content: "";
	position: absolute;
	top: -7px;
	right: 45px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 6px 8px 6px;
	border-color: transparent transparent #fff transparent;
}

html.no-overflowscrolling #autosave_pop {
	height: auto;
	max-height: 10000px !important
}

/* overflow 미지원 기기 대응 */
#autosave_pop strong {
	position: absolute;
	font-size: 0;
	line-height: 0;
	overflow: hidden
}

#autosave_pop div {
	text-align: center;
	margin: 0 !important;
}

#autosave_pop button {
	margin: 0;
	padding: 0;
	border: 0;
}

#autosave_pop ul {
	margin: 0px;
	padding: 15px;
	border-top: 1px solid #e9e9e9;
	list-style: none;
	overflow-y: scroll;
	height: 156px;
	border-bottom: 1px solid #e8e8e8
}

#autosave_pop li {
	padding: 8px 5px;
	border-bottom: 1px solid #fff;
	zoom: 1
}

#autosave_pop li:after {
	display: block;
	visibility: hidden;
	clear: both;
	content: ""
}

#autosave_pop a {
	display: block;
	float: left
}

#autosave_pop span {
	display: block;
	float: right;
	color: #999
}

.autosave_close {
	cursor: pointer;
	width: 100%;
	height: 30px;
	background: none;
	color: #888;
	font-weight: bold;
	font-size: 0.92em
}

.autosave_close:hover {
	background: #f3f3f3;
	color: #3597d9
}

.autosave_content {
	display: none
}

.autosave_del {
	background: url(./img/close_btn.png) no-repeat 50% 50%;
	text-indent: -999px;
	overflow: hidden;
	height: 26px;
	width: 20px;
}

.cke_sc {
	display: none;
}

/* 기타 */
#bo_v_con div {
	position: relative;
	margin-bottom: 1rem;
}

#bo_v_con img {
	margin-bottom: 1rem;
}

#bo_v_con iframe {
	position: absolute;
	width: 100%;
	height: 100%;
}

#bo_v_con .video {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	border-radius: 2px;
	overflow: hidden;
}

#bo_v_con .video iframe {
	position: absolute;
	width: 100%;
	height: 100%;
}

/* 커스텀 */
.anchor {
	position: relative
}

.anchor a {
	position: absolute;
	top: -60px
}

/* .pagination { margin-bottom: 0.75rem; } */

.corner-card {
	overflow: hidden;
	position: relative;
}

.corner-ribbon {
	width: 100px;
	background: blue;
	position: absolute;
	top: 25px;
	/* left: -50px; */
	text-align: center;
	line-height: 1.6em;
	letter-spacing: 1px;
	color: #f0f0f0;
	/* transform: rotate(-45deg); */
	/* -webkit-transform: rotate(-45deg); */
	z-index: 10 !important;
	/* ✅ 다른 요소 위에 항상 보이도록 */
	display: block !important;
	/* ✅ 항상 보이도록 강제 */
	opacity: 1 !important;
	/* ✅ 투명도를 100%로 설정 */
}

@media screen and (max-width: 767px) {
	.corner-ribbon {
		width: 50px;
		top: 15px;
	}
}

.custom-checkbox {
	display: inline;
}

.custom-file-label:lang(ko)::after {
	content: "찾아보기";
}

.list-icon {
	width: 17px;
	height: 17px;
	vertical-align: text-bottom;
}

.view-icon {
	width: 48px;
	height: 48px;
}

.comm-icon {
	width: 48px;
	height: 48px;
}

.comm-body {
	background: #f4f4f4;
	padding: 20px;
	border-radius: 5px;
}

@media (max-width: 575px) {
	#captcha_audio {
		display: none !important;
	}

	.xs-100 {
		width: 100%;
	}

	.xs-full {
		width: 100vw;
		position: relative;
		/* margin-top: -36px; */
		margin-left: -50vw;
		left: 50%;
	}

	.xs-full td {
		padding: 8px 18px;
	}

	.comm-icon {
		width: 24px;
		height: 24px;
		margin: 10px;
		position: absolute;
	}

	.comm-body {
		padding: 10px;
	}

	.comm-name {
		margin: 0 0 6px 30px;
	}
}

.thumbnail-wrapper {
	position: relative;
	width: 100%;
	/* 부모 요소에 맞춤 */
	padding-top: 125%;
	/* 1:1 비율 유지 */
	overflow: hidden;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	/* 모서리를 둥글게 (선택사항) */
}

.thumbnail-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 이미지가 정방형에 맞게 꽉 차도록 */
}

.btn-like {
	color: blue !important;
	border-color: blue !important;
	background-color: transparent !important;
}

.btn-like i {
	color: blue !important;
}

.btn-like:hover {
	background-color: rgba(0, 0, 255, 0.1) !important;
	/* 호버 시 약간의 배경색 */
}

.btn-dislike {
	color: blue !important;
	border-color: blue !important;
	background-color: transparent !important;
}

.btn-dislike i {
	color: blue !important;
}

.btn-dislike:hover {
	background-color: rgba(0, 0, 255, 0.1) !important;
}

.card {
	border-radius: 0px;
	border-color: white;
}

.note-editing-area img {
	max-width: 700px;
	width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.summernote-editor img {
		width: 100% !important;
		height: auto !important;
		max-width: none !important;
	}
}

@media (max-width: 767px) {
	#bo_v_con img {
		min-width: 100%;
	}
}

.product-section {
	padding-top: 14px;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 2px;
	background-color: #f9f9f9;
	border-radius: 8px;
	/* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
	margin-bottom: 15px;
}

.product-section h3 {
	font-size: 0.85rem;
	font-weight: bold;
	text-align: left;
	margin-bottom: 10px;
}

.product-list-custom {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	gap: 12px !important;
	list-style: none !important;
	padding: 0 !important;
}

.product-item {
	flex: 0 0 calc(20% - 24px);
	max-width: calc(20% - 24px);
	background: #fff;
	padding: 6px;
	text-align: center;
	/* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
	border-radius: 5px;
	transition: transform 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 8px;
}

.product-item img {
	max-width: 90px;
	/* 이미지를 작게 */
	height: auto;
	margin-bottom: 5px;
	border-radius: 4px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.product-item a {
	text-decoration: none;
	color: #333;
	font-size: 1.2rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 100%;
	text-align: center;
}

.text-danger {
	font-size: 1.2rem;
	font-weight: bold;
	color: #e74c3c;
	margin-top: 5px;
}

/* 반응형 설정 */
@media (max-width: 1200px) {
	.product-item {
		flex: 0 0 calc(25% - 24px);
		max-width: calc(25% - 24px);
	}
}

@media (max-width: 992px) {
	.product-item {
		flex: 0 0 calc(33.33% - 24px);
		max-width: calc(33.33% - 24px);
	}
}

@media (max-width: 768px) {
	.product-item {
		flex: 0 0 calc(50% - 24px);
		max-width: calc(50% - 24px);
		padding: 4px;
		/* 모바일에서 패딩 줄임 */
	}

	.product-item img {
		max-width: 80px;
		/* 모바일에서 더 작아짐 */
		margin-bottom: 3px;
	}

	.product-item a {
		font-size: 0.7rem;
	}

	.text-danger {
		font-size: 0.7rem;
	}

	.h3 {
		text-align: center !important;
	}
}

@media (max-width: 576px) {
	.product-item {
		flex: 0 0 48%;
		max-width: 48%;
		padding: 4px;
		margin-bottom: 10px;
	}

	.product-item img {
		max-width: 75px;
	}

	.product-section h3 {
		font-size: 0.8rem;
	}
}

.note-editable {
	font-family: '나눔고딕', 'Nanum Gothic', Arial, sans-serif !important;
}

#bo_v_con {
	font-family: '나눔고딕', sans-serif;
}

.view-icon {
	width: 60px;
	height: 60px;
	object-fit: cover;
	object-position: center;
}

.thumbnail-image[src*="placeholder.svg"] {
	object-fit: contain !important;
}

.note-editable {
	-webkit-user-modify: read-write-plaintext-only;
	white-space: pre-wrap !important;
	line-height: 1.6 !important;
}