/**
 * 갤러리 상세 스킨 스타일시트
 *
 * @package WBK_Simple_Notice
 */

/* 전역 스타일 */
.wbk-gallery-detail-container {
	display: flex;
	gap: 30px;
	width: 100%;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 이미지 섹션 */
.wbk-gallery-image-section {
	flex: 1;
	min-height: 400px;
	width: 50%;
}

/* 메인 이미지 */
.wbk-gallery-main-image {
	width: 100%;
	margin-bottom: 20px;
	overflow: hidden;
}

.wbk-gallery-main-image-wrapper {
	width: 100%;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wbk-gallery-main-image-wrapper img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: opacity 0.3s ease;
}

/* 썸네일 섹션 */
.wbk-gallery-thumbnail-section {
	margin-top: 20px;
	overflow: hidden;
}

.wbk-gallery-thumbnail-swiper {
	width: 100%;
	position: relative;
	overflow: hidden;
}

.wbk-gallery-thumbnail-swiper .swiper-wrapper {
	height: auto;
}

.wbk-gallery-thumbnail-swiper .swiper-slide {
	width: auto;
	height: auto;
	margin-right: 10px;
}

.wbk-gallery-thumbnail-wrapper {
	width: 80px;
	height: 60px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.wbk-gallery-thumbnail-wrapper:hover {
	border-color: #007cba;
	transform: scale(1.05);
}

.wbk-gallery-thumbnail-wrapper.active {
	border-color: #007cba;
	box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.wbk-gallery-thumbnail-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Swiper 네비게이션 버튼 제거 */

/* 기존 Swiper 관련 스타일 제거를 위한 숨김 */
.wbk-gallery-swiper {
	display: none;
}

/* 이미지 없음 상태 */
.wbk-gallery-no-image {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 400px;
	background: #f8f9fa;
	border: 2px dashed #ddd;
	border-radius: 12px;
	color: #666;
}

.wbk-gallery-no-image-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.wbk-gallery-no-image-icon svg {
	width: 100%;
	height: 100%;
}

.wbk-gallery-no-image p {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
}

/* 텍스트 섹션 */
.wbk-gallery-text-section {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* 헤더 */
.wbk-gallery-header {
	margin-bottom: 30px;
}

.wbk-gallery-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 20px 0;
	color: #2c3e50;
}

.wbk-gallery-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #007cba;
}

.wbk-gallery-meta-item {
	font-size: 14px;
	color: #555;
}

.wbk-gallery-meta-item strong {
	color: #2c3e50;
	margin-right: 5px;
}

/* 내용 */
.wbk-gallery-content {
	flex: 1;
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 30px;
}

.wbk-gallery-content p {
	margin-bottom: 16px;
}

.wbk-gallery-content p:last-child {
	margin-bottom: 0;
}

.wbk-gallery-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 16px 0;
}

.wbk-gallery-content h1,
.wbk-gallery-content h2,
.wbk-gallery-content h3,
.wbk-gallery-content h4,
.wbk-gallery-content h5,
.wbk-gallery-content h6 {
	margin-top: 32px;
	margin-bottom: 16px;
	color: #2c3e50;
}

.wbk-gallery-content ul,
.wbk-gallery-content ol {
	padding-left: 20px;
	margin-bottom: 16px;
}

.wbk-gallery-content blockquote {
	border-left: 4px solid #007cba;
	padding-left: 20px;
	margin: 20px 0;
	font-style: italic;
	color: #666;
}

/* 액션 버튼 */
.wbk-gallery-actions {
	margin-top: auto;
}

.wbk-gallery-list-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #007cba;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.wbk-gallery-list-btn:hover {
	background: #005a87;
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.wbk-gallery-list-btn-icon {
	width: 18px;
	height: 18px;
}

/* 목록 페이지 스타일 */
.wbk-gallery-detail-list-container {}

/* 페이지 헤더 */
.wbk-gallery-detail-header {
	margin-bottom: 30px;
}

.wbk-gallery-detail-page-title {
	font-size: 32px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0;
	text-align: center;
}

/* 정렬 옵션 */
.wbk-gallery-detail-sort-header {
	margin-bottom: 30px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border-left: 4px solid #007cba;
}

.wbk-gallery-detail-sort-options {
	display: flex;
	align-items: center;
	gap: 15px;
}

.wbk-gallery-detail-sort-label {
	font-weight: 600;
	color: #2c3e50;
}

.wbk-gallery-detail-sort-buttons {
	display: flex;
	gap: 10px;
}

.wbk-gallery-detail-sort-btn {
	padding: 8px 16px;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	color: #666;
	font-weight: 500;
	transition: all 0.3s ease;
}

.wbk-gallery-detail-sort-btn:hover {
	border-color: #007cba;
	color: #007cba;
	text-decoration: none;
}

.wbk-gallery-detail-sort-btn.active {
	background: #007cba;
	border-color: #007cba;
	color: #fff;
}

/* 썸네일 그리드 컨테이너 */
.wbk-gallery-thumbnail-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

/* 썸네일 카드 */
.wbk-gallery-thumbnail {
	cursor: pointer;
	border-radius: 0;
	overflow: hidden;
	transition: all 0.3s ease;
}

/* 썸네일 래퍼 */
.wbk-thumbnail-wrapper {
	position: relative;
	overflow: hidden;
}

/* 썸네일 이미지 */
.wbk-thumbnail-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
}

.wbk-thumbnail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wbk-gallery-thumbnail:hover .wbk-thumbnail-image img {
	transform: scale(1.2);
}

/* 썸네일 콘텐츠 */
.wbk-thumbnail-content {
	text-align: center;
}

.wbk-thumbnail-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.wbk-thumbnail-link {
	color: inherit;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-direction: column;
	padding: 12px 0;
}

.wbk-thumbnail-link:hover {
	color: inherit;
	text-decoration: none;
}

.wbk-thumbnail-gallery-icon {
	width: 18px;
	height: 18px;
	margin-bottom: 4px;
}

/* 카드 컨테이너 (기존 - 숨김) */
.wbk-gallery-detail-cards-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

/* 카드 스타일 */
.wbk-gallery-detail-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wbk-gallery-detail-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	border-color: #007cba;
}

/* 카드 헤더 */
.wbk-gallery-detail-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.wbk-gallery-detail-card-info {
	flex: 1;
}

.wbk-gallery-detail-card-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.wbk-gallery-detail-card-link {
	color: #2c3e50;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wbk-gallery-detail-card-link:hover {
	color: #007cba;
	text-decoration: none;
}

.wbk-gallery-detail-gallery-icon {
	width: 20px;
	height: 20px;
	color: #007cba;
	flex-shrink: 0;
}

.wbk-gallery-detail-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.wbk-gallery-detail-author {
	font-weight: 500;
}

.wbk-gallery-detail-separator {
	color: #ddd;
}

.wbk-gallery-detail-card-number {
	font-size: 14px;
	font-weight: 600;
	color: #007cba;
	background: rgba(0, 124, 186, 0.1);
	padding: 4px 12px;
	border-radius: 20px;
	white-space: nowrap;
}

/* 카드 내용 */
.wbk-gallery-detail-card-content {
	margin-bottom: 16px;
}

.wbk-gallery-detail-excerpt {
	color: #555;
	line-height: 1.6;
	margin: 0;
}

/* 카드 통계 */
.wbk-gallery-detail-card-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.wbk-gallery-detail-stats-left {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.wbk-gallery-detail-stat-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.wbk-gallery-detail-icon {
	width: 16px;
	height: 16px;
}

.wbk-gallery-detail-stats-right {
	display: flex;
	gap: 10px;
}

.wbk-gallery-detail-type-badge {
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	background: #e9ecef;
	color: #495057;
	border-radius: 12px;
}

/* 페이지네이션 */
.wbk-gallery-detail-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.wbk-gallery-detail-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin: 0 4px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #666;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.wbk-gallery-detail-pagination .page-numbers:hover {
	border-color: #007cba;
	color: #007cba;
	text-decoration: none;
}

.wbk-gallery-detail-pagination .page-numbers.current {
	background: #007cba;
	border-color: #007cba;
	color: #fff;
}

.wbk-gallery-detail-pagination .page-numbers.prev,
.wbk-gallery-detail-pagination .page-numbers.next {
	padding: 0 16px;
}

/* 빈 상태 */
.wbk-gallery-detail-no-posts {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.wbk-gallery-detail-no-posts p {
	font-size: 18px;
	margin: 0;
}

/* 반응형 - 768px 이하 */
@media (max-width: 768px) {

	/* 썸네일 그리드 - 모바일 2열 */
	.wbk-gallery-thumbnail-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.wbk-thumbnail-title {
		font-size: 14px;
		margin-bottom: 8px;
	}

	.wbk-thumbnail-meta {
		font-size: 11px;
	}

	.wbk-thumbnail-meta-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		margin-bottom: 4px;
	}

	.wbk-thumbnail-number {
		top: 6px;
		right: 6px;
		font-size: 10px;
		padding: 3px 6px;
	}

	.wbk-gallery-detail-container {
		flex-direction: column;
		gap: 20px;
		padding: 15px;
	}

	.wbk-gallery-image-section {
		min-height: 300px;
	}

	.wbk-gallery-main-image-wrapper {
		height: 300px;
	}

	.wbk-gallery-thumbnail-wrapper {
		width: 70px;
		height: 50px;
	}

	.wbk-gallery-title {
		font-size: 24px;
	}

	.wbk-gallery-meta {
		flex-direction: column;
		gap: 10px;
	}

	.wbk-gallery-content {
		font-size: 15px;
		margin-bottom: 20px;
	}

	.wbk-gallery-detail-list-container {
		padding: 15px;
	}

	.wbk-gallery-detail-page-title {
		font-size: 28px;
	}

	.wbk-gallery-detail-sort-options {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.wbk-gallery-detail-card {
		padding: 20px;
	}

	.wbk-gallery-detail-card-header {
		flex-direction: column;
		gap: 12px;
	}

	.wbk-gallery-detail-card-number {
		align-self: flex-start;
	}

	.wbk-gallery-detail-card-stats {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.wbk-gallery-detail-stats-left {
		gap: 15px;
	}

	.wbk-gallery-main-image {
		width: 100%;
	}

	/* 썸네일 그리드 - 아주 작은 화면에서는 1열 옵션 */
	.wbk-gallery-thumbnail-grid {
		gap: 12px;
	}

	.wbk-thumbnail-title {
		font-size: 13px;
		margin-bottom: 6px;
	}

	.wbk-thumbnail-meta {
		font-size: 10px;
	}

	.wbk-gallery-detail-container {
		padding: 10px;
	}

	.wbk-gallery-image-section {
		width: 100%;
		min-height: 250px;
	}

	.wbk-gallery-main-image-wrapper {
		height: 220px;
	}

	.wbk-gallery-thumbnail-wrapper {
		width: 60px;
		height: 45px;
	}

	.wbk-gallery-title {
		font-size: 20px;
	}

	.wbk-gallery-meta {
		padding: 12px;
	}

	.wbk-gallery-list-btn {
		padding: 10px 20px;
		font-size: 14px;
	}

	.wbk-gallery-detail-list-container {
		padding: 10px;
	}

	.wbk-gallery-detail-page-title {
		font-size: 24px;
	}

	.wbk-gallery-detail-sort-buttons {
		flex-wrap: wrap;
	}

	.wbk-gallery-detail-card {
		padding: 16px;
	}

	.wbk-gallery-detail-card-title {
		font-size: 18px;
	}

	.wbk-gallery-detail-stats-left {
		flex-direction: column;
		gap: 8px;
	}
}