/* ==========================================================================
   KBoard Gallery-2502 Skin - Portfolio Style (Toss Design)
   ========================================================================== */

:root {
	--g2502-blue: #3182f6;
	--g2502-blue-hover: #1b64da;
	--g2502-black: #191f28;
	--g2502-gray-900: #333d4b;
	--g2502-gray-700: #4e5968;
	--g2502-gray-500: #8b95a1;
	--g2502-gray-300: #d1d6db;
	--g2502-gray-100: #f2f4f6;
	--g2502-gray-50: #f7f8fa;
	--g2502-white: #ffffff;
	--g2502-red: #f04452;
	--g2502-radius: 16px;
	--g2502-radius-sm: 8px;
	--g2502-shadow: 0 1px 3px rgba(0,0,0,0.08);
	--g2502-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
	--g2502-transition: all 0.2s ease;
}

/* Base */
#kboard-gallery2502-list,
#kboard-gallery2502-document,
#kboard-gallery2502-editor {
	max-width: 100%;
	margin: 0;
	padding: 0;
	color: var(--g2502-black);
	line-height: 1.6;
}

/* ==========================================================================
   LIST - 2 Column Grid
   ========================================================================== */

.gallery2502-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

@media (max-width: 640px) {
	.gallery2502-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* Card */
.gallery2502-card {
	position: relative;
	border-radius: var(--g2502-radius);
	overflow: hidden;
	background: var(--g2502-white);
	transition: var(--g2502-transition);
}

.gallery2502-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--g2502-shadow-lg);
}

.gallery2502-card a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.gallery2502-card.gallery2502-notice {
	box-shadow: inset 0 0 0 2px var(--g2502-blue);
}

.gallery2502-card.gallery2502-popular {
	box-shadow: inset 0 0 0 2px #f97316;
}

.gallery2502-popular-badge {
	display: inline-block;
	padding: 4px 10px;
	background: #f97316;
	color: var(--g2502-white);
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
	margin-bottom: 8px;
}

/* Thumbnail */
.gallery2502-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 75%;
	background: var(--g2502-gray-100);
	overflow: hidden;
}

.gallery2502-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--g2502-transition);
}

.gallery2502-card:hover .gallery2502-thumbnail img {
	transform: scale(1.05);
}

.gallery2502-no-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--g2502-gray-100) 0%, var(--g2502-gray-300) 100%);
}

/* Overlay - Title at bottom left */
.gallery2502-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 60px 20px 20px;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.gallery2502-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--g2502-white);
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Pagination */
.gallery2502-pagination {
	text-align: center;
	margin: 32px 0;
}

.gallery2502-pagination ul {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 4px;
}

.gallery2502-pagination li {
	display: inline-block;
}

.gallery2502-pagination a,
.gallery2502-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: var(--g2502-radius-sm);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--g2502-gray-700);
	background: transparent;
	transition: var(--g2502-transition);
}

.gallery2502-pagination a:hover {
	background: var(--g2502-gray-100);
	color: var(--g2502-black);
}

.gallery2502-pagination .active a,
.gallery2502-pagination .active span,
.gallery2502-pagination .current a,
.gallery2502-pagination .current span {
	background: var(--g2502-blue);
	color: var(--g2502-white);
}

/* Footer */
.gallery2502-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
}

.gallery2502-btn-write {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	height: 44px;
	background: var(--g2502-blue);
	color: var(--g2502-white);
	text-decoration: none;
	border-radius: var(--g2502-radius-sm);
	font-size: 15px;
	font-weight: 600;
	transition: var(--g2502-transition);
}

.gallery2502-btn-write:hover {
	background: var(--g2502-blue-hover);
	color: var(--g2502-white);
}

/* ==========================================================================
   DOCUMENT - Detail Page
   ========================================================================== */

#kboard-gallery2502-document {
	max-width: 100%;
	margin: 0 auto;
}

/* Hero Section */
.gallery2502-document-hero {
	position: relative;
	min-height: 320px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: var(--g2502-gray-100);
	border-radius: var(--g2502-radius);
	overflow: hidden;
	margin-bottom: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery2502-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(2px);
}

.gallery2502-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 40px 24px;
	max-width: 80%;
}

.gallery2502-document-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--g2502-black);
	margin: 0;
	line-height: 1.4;
	letter-spacing: -0.02em;
}

@media (max-width: 640px) {
	.gallery2502-document-hero {
		min-height: 240px;
	}

	.gallery2502-document-title {
		font-size: 24px;
	}

	.gallery2502-hero-content {
		max-width: 90%;
		padding: 32px 16px;
	}
}

/* Content */
.gallery2502-document-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--g2502-gray-900);
	margin-bottom: 40px;
}

.gallery2502-document-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--g2502-radius-sm);
	margin: 16px 0;
}

.gallery2502-document-content p {
	margin: 0 0 16px 0;
}

/* Attachments */
.gallery2502-attachments {
	padding: 20px;
	background: var(--g2502-gray-50);
	border-radius: var(--g2502-radius-sm);
	margin-bottom: 32px;
}

.gallery2502-attachments ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gallery2502-attachments li {
	padding: 8px 0;
}

.gallery2502-attachments li + li {
	border-top: 1px solid var(--g2502-gray-300);
}

.gallery2502-attachments a {
	color: var(--g2502-blue);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.gallery2502-attachments a:hover {
	text-decoration: underline;
}

/* Actions */
.gallery2502-document-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 40px 0;
}

.gallery2502-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	height: 44px;
	border: 1px solid var(--g2502-gray-300);
	border-radius: var(--g2502-radius-sm);
	background: var(--g2502-white);
	color: var(--g2502-gray-700);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: var(--g2502-transition);
}

.gallery2502-btn:hover {
	background: var(--g2502-gray-100);
	color: var(--g2502-gray-900);
}

.gallery2502-btn-primary {
	background: var(--g2502-blue);
	border-color: var(--g2502-blue);
	color: var(--g2502-white);
}

.gallery2502-btn-primary:hover {
	background: var(--g2502-blue-hover);
	border-color: var(--g2502-blue-hover);
	color: var(--g2502-white);
}

.gallery2502-btn-danger {
	border-color: var(--g2502-red);
	color: var(--g2502-red);
}

.gallery2502-btn-danger:hover {
	background: var(--g2502-red);
	color: var(--g2502-white);
}

/* Comments */
.gallery2502-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--g2502-gray-300);
}

/* ==========================================================================
   EDITOR
   ========================================================================== */

#kboard-gallery2502-editor {
	max-width: 100%;
}

.kboard-attr-row {
	margin-bottom: 24px;
}

.kboard-attr-row .attr-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--g2502-black);
	margin-bottom: 8px;
}

.kboard-attr-row .attr-required-text {
	color: var(--g2502-red);
	margin-left: 4px;
}

.kboard-attr-row input[type="text"],
.kboard-attr-row input[type="password"],
.kboard-attr-row input[type="email"],
.kboard-attr-row textarea,
.kboard-attr-row select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--g2502-gray-300);
	border-radius: var(--g2502-radius-sm);
	font-size: 15px;
	color: var(--g2502-black);
	background: var(--g2502-white);
	transition: var(--g2502-transition);
}

.kboard-attr-row input:focus,
.kboard-attr-row textarea:focus,
.kboard-attr-row select:focus {
	outline: none;
	border-color: var(--g2502-blue);
	box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.1);
}

.kboard-attr-row textarea {
	min-height: 200px;
	resize: vertical;
}

.gallery2502-editor-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

/* ==========================================================================
   CONFIRM
   ========================================================================== */

#kboard-gallery2502-confirm {
	max-width: 400px;
	margin: 60px auto;
	padding: 32px;
	background: var(--g2502-white);
	border-radius: var(--g2502-radius);
	box-shadow: var(--g2502-shadow-lg);
}

.gallery2502-confirm-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--g2502-black);
	margin: 0 0 24px 0;
	text-align: center;
}

.gallery2502-confirm-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

/* ==========================================================================
   CATEGORY
   ========================================================================== */

#kboard-gallery2502-list .kboard-category {
	margin-bottom: 24px;
}

#kboard-gallery2502-list .kboard-category select {
	padding: 10px 16px;
	border: 1px solid var(--g2502-gray-300);
	border-radius: var(--g2502-radius-sm);
	font-size: 14px;
	background: var(--g2502-white);
	transition: var(--g2502-transition);
}

#kboard-gallery2502-list .kboard-category select:focus {
	outline: none;
	border-color: var(--g2502-blue);
}

#kboard-gallery2502-list .kboard-category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 24px 0;
}

#kboard-gallery2502-list .kboard-category-list li a {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--g2502-gray-700);
	font-size: 14px;
	font-weight: 500;
	transition: var(--g2502-transition);
	background: var(--g2502-gray-100);
}

#kboard-gallery2502-list .kboard-category-list li a:hover {
	background: var(--g2502-gray-300);
	color: var(--g2502-black);
}

#kboard-gallery2502-list .kboard-category-list li.kboard-category-selected a {
	background: var(--g2502-blue);
	color: var(--g2502-white);
}

#kboard-gallery2502-list .category-mobile {
	display: none;
}

/* Tree Category */
#kboard-gallery2502-list .kboard-tree-category-search {
	margin-bottom: 24px;
}

#kboard-gallery2502-list .kboard-tree-category-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#kboard-gallery2502-list .kboard-search-option-wrap select {
	padding: 10px 16px;
	border: 1px solid var(--g2502-gray-300);
	border-radius: var(--g2502-radius-sm);
	font-size: 14px;
	background: var(--g2502-white);
	transition: var(--g2502-transition);
}

#kboard-gallery2502-list .kboard-search-option-wrap select:focus {
	outline: none;
	border-color: var(--g2502-blue);
}

#kboard-gallery2502-list .kboard-tree-category {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

#kboard-gallery2502-list .kboard-tree-category li a {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--g2502-gray-700);
	font-size: 14px;
	font-weight: 500;
	transition: var(--g2502-transition);
	background: var(--g2502-gray-100);
}

#kboard-gallery2502-list .kboard-tree-category li a:hover {
	background: var(--g2502-gray-300);
	color: var(--g2502-black);
}

#kboard-gallery2502-list .kboard-tree-category li.kboard-category-selected a {
	background: var(--g2502-blue);
	color: var(--g2502-white);
}

@media (max-width: 640px) {
	#kboard-gallery2502-list .category-mobile {
		display: block;
	}
	#kboard-gallery2502-list .category-pc {
		display: none;
	}
}

/* ==========================================================================
   LATEST
   ========================================================================== */

.kboard-gallery2502-latest {
	position: relative;
}

.gallery2502-latest-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (max-width: 640px) {
	.gallery2502-latest-grid {
		grid-template-columns: 1fr;
	}
}

.gallery2502-latest-item a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.gallery2502-latest-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 75%;
	background: var(--g2502-gray-100);
	border-radius: var(--g2502-radius);
	overflow: hidden;
}

.gallery2502-latest-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--g2502-transition);
}

.gallery2502-latest-item a:hover .gallery2502-latest-thumbnail img {
	transform: scale(1.05);
}

.gallery2502-latest-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 16px 16px;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.gallery2502-latest-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--g2502-white);
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Powered By */
.kboard-default-poweredby {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--g2502-gray-100);
}

.kboard-default-poweredby a {
	font-size: 12px;
	color: var(--g2502-gray-500);
	text-decoration: none;
}

.kboard-default-poweredby a:hover {
	color: var(--g2502-gray-700);
}

/* Image Alignment (WordPress Editor) */
#kboard-gallery2502-list .content-view img.alignleft,
#kboard-gallery2502-document .content-view img.alignleft {
	float: left;
	margin: 0 20px 15px 0;
}

#kboard-gallery2502-list .content-view img.alignright,
#kboard-gallery2502-document .content-view img.alignright {
	float: right;
	margin: 0 0 15px 20px;
}

#kboard-gallery2502-list .content-view img.aligncenter,
#kboard-gallery2502-document .content-view img.aligncenter {
	display: block;
	margin: 15px auto;
}

#kboard-gallery2502-list .content-view img.alignnone,
#kboard-gallery2502-document .content-view img.alignnone {
	margin: 15px 0;
}

#kboard-gallery2502-list .content-view::after,
#kboard-gallery2502-document .content-view::after {
	content: "";
	display: table;
	clear: both;
}
