@charset "utf-8";

/**
 * Artwork Gallery Skin - Premium Design
 * @author https://www.cosmosfarm.com/
 */

/* ==========================================================================
   Global Variables & Reset
   ========================================================================== */

:root {
	--ag-primary: #0a0a0a;
	--ag-secondary: #6366f1;
	--ag-accent: #8b5cf6;
	--ag-text: #1f2937;
	--ag-text-light: #6b7280;
	--ag-border: #e5e7eb;
	--ag-bg: #ffffff;
	--ag-bg-secondary: #f9fafb;
	--ag-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	--ag-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	--ag-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--ag-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	--ag-radius: 12px;
	--ag-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest),
#kboard-artwork-gallery-document,
#kboard-artwork-gallery-editor {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	color: var(--ag-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) *,
#kboard-artwork-gallery-document *,
#kboard-artwork-gallery-editor * {
	box-sizing: border-box;
	text-shadow: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.kboard-artwork-gallery-button-small,
.kboard-artwork-gallery-button-write,
.kboard-artwork-gallery-button-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	border: 1px solid var(--ag-border);
	background: var(--ag-bg);
	color: var(--ag-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 8px;
	transition: var(--ag-transition);
	line-height: 1.5;
	text-decoration: none;
	box-shadow: var(--ag-shadow-sm);
}

.kboard-artwork-gallery-button-small:hover,
.kboard-artwork-gallery-button-search:hover {
	border-color: var(--ag-secondary);
	background-color: var(--ag-bg-secondary);
	box-shadow: var(--ag-shadow);
	transform: translateY(-1px);
}

.kboard-artwork-gallery-button-write {
	background: linear-gradient(135deg, var(--ag-secondary) 0%, var(--ag-accent) 100%);
	color: #ffffff;
	border-color: transparent;
	font-weight: 600;
	padding: 12px 28px;
	box-shadow: var(--ag-shadow);
}

.kboard-artwork-gallery-button-write:hover {
	box-shadow: var(--ag-shadow-lg);
	transform: translateY(-2px);
}

/* ==========================================================================
   List Header
   ========================================================================== */

[data-kboard-gallery="container"] {
	position: relative;
	margin: 0 auto;
	width: 100%;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
	gap: 16px;
	padding: 0 4px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-category-wrapper {
	flex: 1 1 auto;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-category {
	margin: 0;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-category-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-category-list li a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--ag-border);
	background: var(--ag-bg);
	color: var(--ag-text-light);
	font-size: 13px;
	font-weight: 500;
	border-radius: 20px;
	text-decoration: none;
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-category-list li a:hover {
	border-color: var(--ag-secondary);
	color: var(--ag-secondary);
	background: rgba(99, 102, 241, 0.05);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-category-list li.kboard-category-selected a {
	background: linear-gradient(135deg, var(--ag-secondary) 0%, var(--ag-accent) 100%);
	color: #ffffff;
	border-color: transparent;
	font-weight: 600;
}

/* Search */
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper {
	display: flex;
	gap: 8px;
	align-items: center;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper form {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper form>* {
	flex-shrink: 0;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper form input[type="text"] {
	flex-shrink: 1;
	min-width: 120px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper select,
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper input[type="text"] {
	padding: 10px 14px;
	border: 1px solid var(--ag-border);
	border-radius: 8px;
	font-size: 14px;
	height: 42px;
	background: var(--ag-bg);
	color: var(--ag-text);
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper select {
	min-width: 100px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper input[type="text"] {
	min-width: 200px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper select:focus,
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper input[type="text"]:focus {
	outline: none;
	border-color: var(--ag-secondary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper button {
	height: 42px;
	padding: 0 16px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper button svg {
	width: 18px;
	height: 18px;
}

/* Tree Category */
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-tree-category-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	margin-bottom: 16px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-tree-category-wrap select {
	padding: 10px 14px;
	border: 1px solid var(--ag-border);
	border-radius: 8px;
	font-size: 14px;
	min-width: 150px;
	background: var(--ag-bg);
	color: var(--ag-text);
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-tree-category-wrap select:focus {
	outline: none;
	border-color: var(--ag-secondary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   Horizontal Scroll Gallery
   ========================================================================== */
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper-outer {
	position: relative;
	width: 100%;
	padding: 20px 0;
	/* Add top/bottom padding for clean look */
	margin: 20px 0;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
	/* Hide scrollbar by default */
	padding: 20px 0;
	scroll-behavior: smooth;
	transition: scrollbar-color 0.3s;
}

/* Show scrollbar on hover */
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper:hover {
	scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper::-webkit-scrollbar {
	height: 8px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 4px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper:hover::-webkit-scrollbar-track {
	background: var(--ag-bg-secondary);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 4px;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper:hover::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, var(--ag-secondary) 0%, var(--ag-accent) 100%);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-wrapper::-webkit-scrollbar-thumb:hover {
	background: var(--ag-secondary);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-track {
	display: flex;
	gap: 24px;
	padding: 0 8px;
}

/* ==========================================================================
   Floating Scroll Arrows
   ========================================================================== */
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-arrow-scroll {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	/* Reduced from 48px */
	height: 40px;
	/* Reduced from 48px */
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	/* Slightly transparent */
	border: 1px solid var(--ag-border);
	box-shadow: var(--ag-shadow-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ag-text);
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-arrow-scroll:hover {
	background: var(--ag-secondary);
	color: #ffffff;
	border-color: transparent;
	transform: translateY(-50%) scale(1.1);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-arrow-scroll.prev {
	left: 0;
	/* Moved inward from -20px */
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-arrow-scroll.next {
	right: 0;
	/* Moved inward from -20px */
}

@media screen and (max-width: 768px) {
	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-arrow-scroll {
		display: flex;
		/* Ensure visible on mobile */
		width: 36px;
		/* Smaller on mobile */
		height: 36px;
	}
}

/* ==========================================================================
   Gallery Items
   ========================================================================== */

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-item {
	flex: 0 0 340px;
	position: relative;
	background: var(--ag-bg);
	border-radius: var(--ag-radius);
	overflow: hidden;
	box-shadow: var(--ag-shadow);
	transition: var(--ag-transition);
	cursor: pointer;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-item:hover {
	transform: translateY(-8px);
	box-shadow: var(--ag-shadow-xl);
}

/* Gallery Item Content */
:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-thumbnail {
	width: 100%;
	height: 260px;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-thumbnail::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
	opacity: 0;
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item:hover .item-thumbnail::before {
	opacity: 1;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .no-image {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--ag-bg-secondary) 0%, var(--ag-border) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ag-text-light);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .no-image svg {
	width: 64px;
	height: 64px;
	opacity: 0.4;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 20px;
	z-index: 1;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-meta {
	display: flex;
	gap: 16px;
	align-items: center;
	opacity: 0;
	transform: translateY(10px);
	transition: var(--ag-transition);
	color: #ffffff;
	font-size: 13px;
	font-weight: 500;
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item:hover .item-meta {
	opacity: 1;
	transform: translateY(0);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-info {
	padding: 20px;
	background: var(--ag-bg);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ag-text);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item:hover .item-title {
	color: var(--ag-secondary);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .gallery-item .item-author {
	font-size: 14px;
	color: var(--ag-text-light);
	font-weight: 500;
}

/* ==========================================================================
   Arrow Navigation Cards
   ========================================================================== */

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .arrow-card {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--ag-bg-secondary) 0%, var(--ag-bg) 100%);
	color: var(--ag-text-light);
	cursor: pointer;
	border: 2px dashed var(--ag-border);
	box-shadow: none;
	text-decoration: none;
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .arrow-card:hover {
	border-color: var(--ag-secondary);
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
	color: var(--ag-secondary);
	box-shadow: var(--ag-shadow-lg);
	transform: translateY(-8px);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .arrow-card .arrow-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--ag-bg);
	box-shadow: var(--ag-shadow);
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .arrow-card:hover .arrow-inner {
	background: linear-gradient(135deg, var(--ag-secondary) 0%, var(--ag-accent) 100%);
	color: #ffffff;
	box-shadow: var(--ag-shadow-lg);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .arrow-card .arrow-inner svg {
	width: 32px;
	height: 32px;
	transition: var(--ag-transition);
}

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .arrow-card:hover .arrow-inner svg {
	stroke: #ffffff;
}

/* ==========================================================================
   Control Buttons
   ========================================================================== */

:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-control {
	text-align: right;
	/* Changed to right align */
	padding: 20px 0;
}

/* ==========================================================================
   Powered By
   ========================================================================== */

.kboard-artwork-gallery-poweredby {
	text-align: right;
	/* Changed to right align */
	font-size: 13px;
	/* INCREASED from 11px */
	margin-top: 10px;
	padding: 10px 0;
	opacity: 0.5;
	transition: var(--ag-transition);
}

.kboard-artwork-gallery-poweredby:hover {
	opacity: 1;
}

.kboard-artwork-gallery-poweredby a {
	color: var(--ag-text-light);
	text-decoration: none;
}

/* ==========================================================================
   Document Page
   ========================================================================== */

#kboard-artwork-gallery-document {
	/* REMOVED max-width constraint, and added 100% width with generous padding */
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 40px 20px;
}

#kboard-artwork-gallery-document .kboard-title p {
	font-size: 36px;
	font-weight: 800;
	color: var(--ag-text);
	margin: 0 0 24px;
	line-height: 1.3;
}

#kboard-artwork-gallery-document .kboard-detail {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	border-bottom: 2px solid var(--ag-border);
	padding-bottom: 24px;
	margin-bottom: 40px;
	color: var(--ag-text-light);
	font-size: 14px;
}

#kboard-artwork-gallery-document .detail-attr {
	display: flex;
	gap: 8px;
	align-items: center;
}

#kboard-artwork-gallery-document .detail-attr .detail-name {
	font-weight: 700;
	color: var(--ag-text);
}

#kboard-artwork-gallery-document .detail-attr .detail-value {
	font-weight: 500;
}

#kboard-artwork-gallery-document .content-view {
	font-size: 17px;
	line-height: 1.8;
	color: var(--ag-text);
	margin-bottom: 48px;
	word-break: break-word;
}

#kboard-artwork-gallery-document .content-view img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ag-radius);
	box-shadow: var(--ag-shadow-lg);
	margin: 24px 0;
}

#kboard-artwork-gallery-document .content-view p {
	margin: 0 0 1em;
}

#kboard-artwork-gallery-document .content-view p:last-child {
	margin: 0;
}

#kboard-artwork-gallery-document .kboard-document-action {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
	padding: 24px 0;
	border-top: 1px solid var(--ag-border);
	border-bottom: 1px solid var(--ag-border);
}

#kboard-artwork-gallery-document .kboard-document-action .left,
#kboard-artwork-gallery-document .kboard-document-action .right {
	display: flex;
	gap: 8px;
}

#kboard-artwork-gallery-document .kboard-attach-box {
	background: var(--ag-bg-secondary);
	border-radius: var(--ag-radius);
	padding: 20px;
	margin-bottom: 32px;
}

#kboard-artwork-gallery-document .kboard-attach {
	font-size: 14px;
	color: var(--ag-text);
	margin: 8px 0;
}

#kboard-artwork-gallery-document .kboard-button-download {
	background: none;
	border: none;
	color: var(--ag-secondary);
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}

#kboard-artwork-gallery-document .kboard-button-download:hover {
	color: var(--ag-accent);
}

#kboard-artwork-gallery-document .kboard-control {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 0;
	gap: 16px;
}

#kboard-artwork-gallery-document .kboard-control .left,
#kboard-artwork-gallery-document .kboard-control .right {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Editor Page
   ========================================================================== */

#kboard-artwork-gallery-editor {
	/* REMOVED max-width constraint */
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 40px 20px;
}

#kboard-artwork-gallery-editor .kboard-attr-row {
	margin-bottom: 24px;
	clear: both;
	/* Added to fix layout issues */
}

#kboard-artwork-gallery-editor .kboard-attr-row .attr-name {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: var(--ag-text);
	font-size: 14px;
}

#kboard-artwork-gallery-editor .kboard-attr-row .attr-value input[type="text"],
#kboard-artwork-gallery-editor .kboard-attr-row .attr-value input[type="password"],
#kboard-artwork-gallery-editor .kboard-attr-row .attr-value select,
#kboard-artwork-gallery-editor .kboard-attr-row .attr-value textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--ag-border);
	border-radius: 8px;
	font-size: 15px;
	background: var(--ag-bg);
	color: var(--ag-text);
	transition: var(--ag-transition);
}

#kboard-artwork-gallery-editor .kboard-attr-row .attr-value input:focus,
#kboard-artwork-gallery-editor .kboard-attr-row .attr-value select:focus,
#kboard-artwork-gallery-editor .kboard-attr-row .attr-value textarea:focus {
	outline: none;
	border-color: var(--ag-secondary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#kboard-artwork-gallery-editor .kboard-content .editor-textarea {
	min-height: 300px;
	resize: vertical;
}

#kboard-artwork-gallery-editor .kboard-control {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 0;
	gap: 16px;
}

#kboard-artwork-gallery-editor .kboard-control .left,
#kboard-artwork-gallery-editor .kboard-control .right {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

#kboard-artwork-gallery-editor.confirm {
	max-width: 500px;
	margin-top: 100px;
}

#kboard-artwork-gallery-editor.confirm .description {
	color: #dc2626;
	font-size: 13px;
	margin-top: 8px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-header {
		flex-direction: column;
		align-items: stretch;
	}

	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper {
		width: 100%;
	}

	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper form {
		width: 100%;
		flex-wrap: wrap;
	}

	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper select {
		min-width: auto;
		flex: 1;
	}

	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-search-wrapper input[type="text"] {
		min-width: auto;
		flex: 2;
	}

	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-item {
		flex: 0 0 85%;
	}

	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-scroll-track {
		gap: 16px;
	}

	#kboard-artwork-gallery-document .kboard-title p {
		font-size: 28px;
	}

	#kboard-artwork-gallery-document .kboard-document-action {
		flex-direction: row;
		/* Keep in one line */
		flex-wrap: wrap;
		/* Allow wrapping only if really necessary, but we try to fit */
		justify-content: space-between;
		gap: 8px;
	}

	#kboard-artwork-gallery-document .kboard-control {
		flex-direction: column;
		align-items: stretch;
	}

	#kboard-artwork-gallery-document .kboard-document-action .left,
	#kboard-artwork-gallery-document .kboard-document-action .right {
		/* justify-content: flex-start; */
		/* Default */
	}

	#kboard-artwork-gallery-document .kboard-button-action {
		padding: 8px 12px;
		/* Reduce padding */
		font-size: 13px;
		/* Reduce font size */
	}

	#kboard-artwork-gallery-document .kboard-control .left,
	#kboard-artwork-gallery-document .kboard-control .right {
		justify-content: center;
	}

	#kboard-artwork-gallery-editor .kboard-control {
		flex-direction: column;
		align-items: stretch;
	}
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-item {
		flex: 0 0 320px;
	}
}

@media screen and (min-width: 1025px) {
	:is(#kboard-artwork-gallery-list, #kboard-artwork-gallery-latest) .kboard-list-item {
		flex: 0 0 360px;
	}
}
