@charset "utf-8";

/* 모바일 목록 */
@media all and (max-width:767px) {
	.responsive #bo_list .float-left.float-md-none {
		margin-right:0.75rem;
	}
	.responsive #bo_list .na-title {
		margin-bottom:0.14rem;
	}
}

/* gallery */
#bo_gallery .chk-box {
	position:absolute;
	bottom:5px;
	right:10px;
	z-index:2;
}
#bo_gallery .wr-now {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	background:rgba(0,0,0,0.75);
	z-index:1;
}

/* 게시판 읽기 */
#bo_v_title {
	font-size:23px;
	font-weight:bold;
	line-height:1.4;
	letter-spacing:-1px;
}
#bo_v_con {
    min-height: 200px; 
    word-break: break-all;
    overflow: hidden;
    max-width: 1200px !important;    /* 추가 */
    margin: 0 auto !important;       /* 추가 */
    padding: 0 !important;           /* 추가 */
}

@media all and (max-width:575px) {
	.responsive #bo_v_title {
		font-size:20px;
		line-height:1.5;
	}
	.responsive #bo_v_con { 
		min-height:140px; 
	}
}

#bo_v_con img {
    max-width: 100% !important;
    width: auto !important;          /* 추가 */
    min-width: 800px !important;     /* 추가: 최소 너비 설정 */
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;  /* 추가 */
}

#bo_v_img {
	width:100%;
	text-align:center;
	overflow:hidden;
	zoom:1;
}
#bo_v_img:after {
	display:block;
	visibility:hidden;
	clear:both;
	content:"";
}
#bo_v_img a.view_image {
	display:block;
}
#bo_v_img img {
	margin-bottom:1.0rem;
}

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon { 
	margin:-5px auto; 
}
#bo_v_sns_icon img { 
	width:40px; 
	border-radius:50%; 
	margin:5px;
}

/* 게시판 댓글 : 내용 */
.cmt-reply {
	top:0;
	left:-16px;
}
.by-writer { 
	background:#fbefef !important;
	border-top:1px solid #f6cece !important;
}
.cmt-content {
	word-break:break-all;
	overflow:hidden
}
.cmt-content img {
	max-width:100%;
	height:auto
}

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul { 
	list-style: none; 
	margin: 0; 
}
.cmt-btn ul > li { 
	float: left; 
	font-size:12px;
	padding: 0 10px; 
}
.cmt-btn ul > li::before { 
	float: left; 
	color:#ccc; 
	content: "|"; 
	margin-left:-12px;
}
.cmt-btn ul > li:last-child { 
	padding-right:0;
}
.cmt-btn ul > li:first-child::before, 
.cmt-btn ul > li.no-bar::before { 
	content: ""; 
	margin-left:0; 
}
.cmt-btn ul > li > a { 
	float:left;
	color:#888;
	white-space:nowrap;	
}

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content { 
	resize:none; 
}
@media all and (max-width:575px) {
	.responsive .cmt-box {
		border-right:0 !important;
	}
	.responsive #bo_vc_w .cmt-box {
		border-left:0 !important;
		border-radius:0 !important;
	}
	.responsive #bo_vc_login {
		border-left:0 !important;
		border-right:0 !important;
		border-radius:0 !important;
	}
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol {	
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
	background:#ccc;
	border-radius:3px;
}
#bo_vc_opt ol:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_opt ol li { 
	float:left;
	margin:0; 
}
#bo_vc_send_sns ul { 
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
}
#bo_vc_send_sns ul:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_send_sns ul li {	
	float:left;
	margin:0 1.0rem 0 0;
}
#bo_vc_send_sns input {	
	margin:0 0 0 0.5rem;
}

/* 게시판 쓰기 */
#bo_w .list-group-item {
	padding-left:0;
	padding-right:0;
	border-left:0;
	border-right:0;
}
#bo_w #wr_content { 
	margin-bottom:1.0rem !important;
}
@media all and (max-width:575px) {
	#bo_w .list-group-item {
		padding-left:1.0rem;
		padding-right:1.0rem;
	}
	.responsive #bo_w #wr_content {
		max-height:160px !important;
	}
}

/* 게시글 내용의 p 태그도 가운데 정렬 (이미지가 p 태그 안에 있는 경우) */
#bo_v_con p {
	text-align: center !important;
	margin: 10px auto !important;
}

/* 모달창 내 이미지 중앙 정렬 */
.modal-body img {
	display: block !important;
	margin: 0 auto !important;
	max-width: 100% !important;
}

/* 모달창 내 p 태그 중앙 정렬 */
.modal-body p {
	text-align: center !important;
	margin: 10px auto !important;
	width: 100% !important;
}

/* 모달창 내용 전체 중앙 정렬 */
.modal-body {
	text-align: center !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
}

.modal-body img {
	display: block !important;
	margin: 0 auto !important;
	max-width: 100% !important;
	height: auto !important;
}

.modal-body p {
	text-align: center !important;
	margin: 10px auto !important;
	width: 100% !important;
	display: flex !important;
	justify-content: center !important;
}

/* 이미지를 감싸는 모든 요소들에 대한 정렬 */
.modal-body > * {
	margin: 0 auto !important;
	text-align: center !important;
	width: 100% !important;
}


/* 업체 정보 박스 스타일 */
/* 공통 업체 정보 스타일 (게시판 view와 모달창 모두 적용) */
.gallery-info-container,
.modal .gallery-info-container {
    margin: 20px 0 !important;
    padding: 15px !important;
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    width: 100% !important;
}

.info-button-group,
.modal .info-button-group {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.info-btn,
.modal .info-btn {
    flex: 1 1 200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    min-width: 120px !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.info-btn .label,
.modal .info-btn .label {
    font-size: 13px !important;
    color: #868e96 !important;
    margin-bottom: 8px !important;
    font-weight: normal !important;
}

.info-btn .value,
.modal .info-btn .value {
    font-size: 15px !important;
    color: #495057 !important;
    font-weight: 600 !important;
}

.info-btn:hover,
.modal .info-btn:hover {
    background: #f1f3f5 !important;
    border-color: #ced4da !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .info-button-group,
    .modal .info-button-group {
        flex-direction: column !important;
    }
    
    .info-btn,
    .modal .info-btn {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
}



/* 업체 정보 스타일 */
.gallery-info-container {
    margin: 8px 0 !important;
}

.gallery-info-container .info-button-group {
    display: flex !important;
    gap: 5px !important;
}

/* 버튼 공통 스타일 */
.gallery-info-container .info-btn,
.gallery-info-container a.info-btn {
    flex: 1 !important;
    background: #fb0050 !important;
    border-radius: 4px !important;
    padding: 0 12px !important;  /* 패딩 수정 */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #fff !important;
    height: 44px !important;  /* 높이 통일 */
    line-height: 44px !important;  /* 추가 */
    border: none !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
}

.gallery-info-container .info-btn i {
    font-size: 16px !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .gallery-info-container .info-button-group {
        flex-wrap: wrap !important;
    }
    
    .gallery-info-container .info-btn,
    .gallery-info-container a.info-btn {
        min-width: calc(50% - 4px) !important;
        margin: 2px 0 !important;
    }
}


/* 텔레그램 버튼 스타일 */
.gallery-info-container .info-btn.telegram-btn {
    background-color: #0088cc !important; /* 텔레그램 브랜드 색상 */
}

.gallery-info-container .telegram-btn:hover {
    background: #006699 !important; /* 호버시 약간 어두운 색상 */
}

.gallery-info-container .telegram-btn i {
    font-size: 16px !important;
}



#bo_v_info i {
    color: #868e96 !important;
    margin-right: 4px !important;
}

#bo_v_info li {
    color: #666 !important;
    font-size: 0.9rem !important;
}

#bo_v_info time {
    color: #495057 !important;
    font-weight: 500 !important;
}

/* 업종 필터 스타일 수정 */
.filter-buttons {
    margin-bottom: 15px;
    width: 100%;
    overflow-x: hidden;
}

.filter-flex {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 5px;
    width: 100%;
    justify-content: space-between;
}

/* PC 버전 버튼 스타일 */
.gallery-category-box {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    cursor: pointer;
    text-align: center;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    border-radius: 6px;
    color: #333;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    min-width: 0;
    text-decoration: none !important;
}

.gallery-category-box:hover {
    transform: translateY(-1px);
    border-color: #fb0050;
    background: linear-gradient(145deg, #ffffff, #fff5f8);
    color: #fb0050;
    box-shadow: 0 5px 15px rgba(251,0,80,0.15);
    opacity: 1;
}

.gallery-category-box:first-child:hover {
    border-color: #007bff;
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    color: #007bff;
    box-shadow: 0 5px 15px rgba(0,123,255,0.15);
}

.gallery-category-box:hover i {
    transform: scale(1.1);
}

.gallery-category-box.active {
    background: linear-gradient(145deg, #fb0050, #e5004b);
    color: #fff !important;
    border-color: #fb0050;
    box-shadow: 0 4px 12px rgba(251,0,80,0.3);
    font-weight: 600;
    transform: translateY(-1px);
}

.gallery-category-box:first-child.active {
    background: linear-gradient(145deg, #007bff, #0056b3);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* 모바일 버전 */
@media (max-width: 768px) {
    .filter-flex {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .gallery-category-box {
        width: 100%;
        font-size: 0.75em;
        padding: 6px 4px;
        border-width: 1px;
        min-height: 35px;
        height: auto;
    }
}
</style>