/**
 * Matcha AI Smart Gallery — Frontend styles.
 *
 * Grid layout, masonry, filter bar, gallery items, lightbox, and animations.
 *
 * @package matcha-ai-smart-gallery
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

.matcha-gallery {
	--matcha-primary: #4caf50;
	--matcha-primary-dark: #2e7d32;
	--matcha-primary-light: #81c784;
	--matcha-surface: #ffffff;
	--matcha-text: #1a1a1a;
	--matcha-text-muted: #666666;
	--matcha-radius: 10px;
	--matcha-radius-sm: 6px;
	--matcha-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--matcha-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
	--matcha-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	/* These are overridden inline by the block render callback: */
	--matcha-columns: 3;
	--matcha-columns-tablet: 2;
	--matcha-columns-mobile: 1;
	--matcha-gutter: 16px;

	position: relative;
	margin: 2em 0;
}

/* ==========================================================================
   Section Chapter Tabs (Multi-Section / Multi-Wall Organization)
   ========================================================================== */

.matcha-gallery__section-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-bottom: 22px;
	padding: 4px;
	background: rgba(15, 23, 42, 0.05);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	max-width: 100%;
}

.matcha-gallery--theme-dark .matcha-gallery__section-tabs {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}

/* Chapter Section Tabs Button Theme Isolation & Clean Modern Design */
button.matcha-section-tab,
.matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab,
.entry-content .matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 7px 14px !important;
	border-radius: 8px !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #64748b !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
	user-select: none !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	outline: none !important;
}

button.matcha-section-tab:hover,
.matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab:hover,
.entry-content .matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab:hover,
button.matcha-section-tab:focus,
.matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab:focus,
.entry-content .matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab:focus {
	background: rgba(15, 23, 42, 0.08) !important;
	background-color: rgba(15, 23, 42, 0.08) !important;
	color: #0f172a !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

.matcha-gallery--theme-dark button.matcha-section-tab:hover,
.matcha-gallery--theme-dark .matcha-gallery__section-tabs button.matcha-section-tab:hover,
.matcha-gallery--theme-dark button.matcha-section-tab:focus,
.matcha-gallery--theme-dark .matcha-gallery__section-tabs button.matcha-section-tab:focus {
	background: rgba(255, 255, 255, 0.12) !important;
	background-color: rgba(255, 255, 255, 0.12) !important;
	color: #ffffff !important;
	border-color: transparent !important;
}

button.matcha-section-tab.matcha-section-tab--active,
.matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab.matcha-section-tab--active,
.entry-content .matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab.matcha-section-tab--active,
button.matcha-section-tab.matcha-section-tab--active:hover,
.matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab.matcha-section-tab--active:hover,
button.matcha-section-tab.matcha-section-tab--active:focus,
.matcha-gallery .matcha-gallery__section-tabs button.matcha-section-tab.matcha-section-tab--active:focus {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #0f172a !important;
	border-color: rgba(0, 0, 0, 0.08) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
	font-weight: 700 !important;
	outline: none !important;
}

.matcha-gallery--theme-dark button.matcha-section-tab.matcha-section-tab--active,
.matcha-gallery--theme-dark .matcha-gallery__section-tabs button.matcha-section-tab.matcha-section-tab--active,
.matcha-gallery--theme-dark button.matcha-section-tab.matcha-section-tab--active:hover,
.matcha-gallery--theme-dark button.matcha-section-tab.matcha-section-tab--active:focus {
	background: #1e293b !important;
	background-color: #1e293b !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.15) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.matcha-section-tab .tab-icon {
	display: inline-flex;
	align-items: center;
	opacity: 0.6;
}

.matcha-section-tab--active .tab-icon {
	opacity: 1;
	color: #10b981 !important;
}

.matcha-section-tab__count {
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	font-weight: 700;
	color: #64748b;
	margin-left: 2px;
}

.matcha-section-tab--active .matcha-section-tab__count {
	background: rgba(16, 185, 129, 0.15) !important;
	color: #047857 !important;
}

.matcha-gallery--theme-dark .matcha-section-tab--active .matcha-section-tab__count {
	background: rgba(16, 185, 129, 0.25) !important;
	color: #10b981 !important;
}

/* ==========================================================================
   3D Album Stacks & Deck Layout (Chapter Presentation Mode)
   ========================================================================== */

.matcha-album-deck {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 38px 28px;
	margin-bottom: 36px;
	padding: 18px 4px 14px;
	width: 100%;
}

/* When Album Deck is active in overview mode, strictly hide photo grid, filter bars, search, and pagers */
.matcha-gallery.has-album-deck-active .matcha-gallery__grid,
.matcha-gallery.has-album-deck-active .matcha-gallery__toolbar,
.matcha-gallery.has-album-deck-active .matcha-gallery__filters,
.matcha-gallery.has-album-deck-active .matcha-gallery__search-wrap,
.matcha-gallery.has-album-deck-active .matcha-gallery__load-more-wrap,
.matcha-gallery.has-album-deck-active .matcha-gallery__pagination,
.matcha-gallery.has-album-deck-active .matcha-canvas-empty-state {
	display: none !important;
}

button.matcha-album-card,
.matcha-album-card {
	position: relative;
	cursor: pointer;
	user-select: none;
	perspective: 1000px;
	outline: none !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	text-decoration: none !important;
	-webkit-appearance: none;
	appearance: none;
}

button.matcha-album-card:hover,
button.matcha-album-card:focus,
button.matcha-album-card:focus-visible,
button.matcha-album-card:active,
.matcha-album-card:hover,
.matcha-album-card:focus,
.matcha-album-card:active {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

button.matcha-album-card:hover .matcha-album-title,
.matcha-album-card:hover .matcha-album-title {
	color: var(--matcha-accent, #5ec27f) !important;
}

button.matcha-album-card:hover .matcha-album-count-badge,
.matcha-album-card:hover .matcha-album-count-badge {
	background: rgba(94, 194, 127, 0.15) !important;
	color: var(--matcha-accent, #5ec27f) !important;
}

.matcha-album-stack {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 16px;
	transform-style: preserve-3d;
}

/* Individual Stack Layers */
.matcha-stack-layer {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #1e293b;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
	transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	will-change: transform, box-shadow;
}

.matcha-stack-layer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* Layer 1 (Front / Hero Cover) */
.matcha-stack-layer--1 {
	z-index: 3;
	transform: translate3d(0, 0, 0) rotate(0deg);
}

/* Layer 2 (Middle) */
.matcha-stack-layer--2 {
	z-index: 2;
	transform: translate3d(5px, -6px, -10px) rotate(3deg);
	filter: brightness(0.92);
	opacity: 0.95;
}

/* Layer 3 (Back) */
.matcha-stack-layer--3 {
	z-index: 1;
	transform: translate3d(-6px, -12px, -20px) rotate(-3.5deg);
	filter: brightness(0.85);
	opacity: 0.88;
}

/* Hover Furl Physics */
.matcha-album-card:hover .matcha-stack-layer--1 {
	transform: translate3d(0, -6px, 10px);
	box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.28), 0 12px 16px -6px rgba(0, 0, 0, 0.18);
}

.matcha-album-card:hover .matcha-stack-layer--2 {
	transform: translate3d(14px, -14px, 0) rotate(6.5deg);
	filter: brightness(0.96);
	opacity: 1;
}

.matcha-album-card:hover .matcha-stack-layer--3 {
	transform: translate3d(-14px, -18px, -10px) rotate(-7deg);
	filter: brightness(0.9);
	opacity: 0.95;
}

/* Meta Label & Photo Count */
.matcha-album-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 4px;
}

.matcha-album-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease;
}

.matcha-gallery--theme-dark .matcha-album-title {
	color: #f8fafc;
}

.matcha-album-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(15, 23, 42, 0.06);
	color: #475569;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.matcha-gallery--theme-dark .matcha-album-count-badge {
	background: rgba(255, 255, 255, 0.1);
	color: #94a3b8;
}

/* Style: Polaroid Deck */
.matcha-album-style--polaroid .matcha-stack-layer {
	border: 6px solid #ffffff;
	border-bottom-width: 24px;
	border-radius: 4px;
	background: #ffffff;
}

/* Style: Luxury Editorial */
.matcha-album-style--editorial .matcha-stack-layer {
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
}
.matcha-album-style--editorial .matcha-album-title {
	font-family: Georgia, Cambria, serif;
	letter-spacing: 0.3px;
}

/* Back to All Albums Navigation Bar */
.matcha-album-back-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	padding: 10px 14px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
}

.matcha-gallery--theme-dark .matcha-album-back-bar {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
}

.matcha-album-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.18s ease;
}

.matcha-gallery--theme-dark .matcha-album-back-btn {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.15);
	color: #f8fafc;
}

.matcha-album-back-btn:hover {
	transform: translateX(-2px);
	border-color: #5ec27f;
	color: #5ec27f;
}

.matcha-album-active-label {
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 6px;
}

.matcha-gallery--theme-dark .matcha-album-active-label {
	color: #ffffff;
}

/* ==========================================================================
   Toolbar & Filter Bar
   ========================================================================== */

.matcha-gallery__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	width: 100%;
}

.matcha-gallery__search-wrap {
	position: relative;
	max-width: 320px;
	width: 100%;
}

.matcha-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	display: flex;
	align-items: center;
}

.matcha-gallery__search-input {
	width: 100%;
	padding: 9px 14px 9px 34px;
	font-size: 13px;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	background: #ffffff;
	color: #0f172a;
	outline: none;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	box-sizing: border-box;
}

.matcha-gallery__search-input:focus {
	border-color: #607d66;
	box-shadow: 0 0 0 3px rgba(96, 125, 102, 0.15);
}

/* Visitor Interactive Sort Dropdown */
.matcha-gallery__sort-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.matcha-gallery__sort-select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	padding: 8px 34px 8px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.matcha-gallery__sort-select:hover {
	border-color: #cbd5e1;
	color: #0f172a;
}

.matcha-gallery__sort-select:focus {
	border-color: #607d66;
	box-shadow: 0 0 0 3px rgba(96, 125, 102, 0.15);
}

/* Color Swatches */
.matcha-gallery__color-swatches {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	padding: 5px 12px;
	border-radius: 100px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	width: fit-content;
}

.matcha-color-label {
	display: flex;
	align-items: center;
	color: #64748b;
	margin-right: 2px;
}

.matcha-color-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	outline: none;
}

.matcha-color-dot:hover {
	transform: scale(1.25);
	box-shadow: 0 0 0 2px #607d66;
	z-index: 2;
}

.matcha-color-dot.is-active {
	transform: scale(1.3);
	box-shadow: 0 0 0 2.5px #607d66, 0 2px 8px rgba(0,0,0,0.25);
	z-index: 3;
}

/* Filters */
.matcha-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.matcha-filter {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #334155;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	user-select: none;
	font-family: inherit;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.matcha-filter:hover {
	border-color: var(--matcha-accent, #607d66);
	color: var(--matcha-accent, #607d66);
	background: rgba(96, 125, 102, 0.08);
	transform: translateY(-1px);
}

.matcha-filter--active {
	background: var(--matcha-accent, #607d66) !important;
	color: #ffffff !important;
	border-color: var(--matcha-accent, #607d66) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
}

.matcha-filter__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	padding: 1px 6px;
	font-size: 10px;
	font-weight: 700;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 999px;
}

.matcha-filter--active .matcha-filter__count {
	background: rgba(255,255,255,0.25);
	color: #ffffff;
}

/* ==========================================================================
   Unified Toolbar & Control Skins (Search, Filters, Sort & Swatches)
   ========================================================================== */

/* --- 1. Modern Capsule Skin (Free Default) --- */
.matcha-gallery__toolbar--skin-capsule .matcha-gallery__search-input {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.matcha-gallery__toolbar--skin-capsule .matcha-gallery__search-input:focus {
	border-color: var(--matcha-accent, #607d66);
	box-shadow: 0 0 0 3px rgba(96, 125, 102, 0.15);
}
.matcha-gallery__toolbar--skin-capsule .matcha-gallery__sort-select {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	color: #334155;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.matcha-gallery__toolbar--skin-capsule .matcha-gallery__sort-select:focus {
	border-color: var(--matcha-accent, #607d66);
	box-shadow: 0 0 0 3px rgba(96, 125, 102, 0.15);
}
.matcha-gallery__toolbar--skin-capsule .matcha-gallery__color-swatches {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 100px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.matcha-gallery__toolbar--skin-capsule .matcha-filter,
.matcha-gallery__filters--skin-capsule .matcha-filter,
.matcha-gallery__filters--style-pills .matcha-filter {
	border-radius: 100px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #334155;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.matcha-gallery__toolbar--skin-capsule .matcha-filter:hover,
.matcha-gallery__filters--skin-capsule .matcha-filter:hover,
.matcha-gallery__filters--style-pills .matcha-filter:hover {
	border-color: var(--matcha-accent, #607d66);
	color: var(--matcha-accent, #607d66);
	background: rgba(96, 125, 102, 0.08);
}
.matcha-gallery__toolbar--skin-capsule .matcha-filter--active,
.matcha-gallery__filters--skin-capsule .matcha-filter--active,
.matcha-gallery__filters--style-pills .matcha-filter--active {
	background: var(--matcha-accent, #607d66) !important;
	border-color: var(--matcha-accent, #607d66) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
}
/* Capsule Dark Theme Adaptation */
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-capsule .matcha-gallery__search-input,
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-capsule .matcha-gallery__sort-select,
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-capsule .matcha-gallery__color-swatches {
	background: #1e293b;
	border-color: #334155;
	color: #f1f5f9;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-capsule .matcha-filter,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-capsule .matcha-filter,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-pills .matcha-filter {
	background: #1e293b !important;
	border-color: #334155 !important;
	color: #cbd5e1 !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-capsule .matcha-filter:hover,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-capsule .matcha-filter:hover,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-pills .matcha-filter:hover {
	background: #334155 !important;
	color: #ffffff !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-capsule .matcha-filter--active,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-capsule .matcha-filter--active,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-pills .matcha-filter--active {
	background: var(--matcha-accent, #607d66) !important;
	border-color: var(--matcha-accent, #607d66) !important;
	color: #ffffff !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-capsule .matcha-filter__count,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-capsule .matcha-filter__count,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-pills .matcha-filter__count {
	background: rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
}

/* --- 2. Minimalist Hairline Skin (Fine-Art / Editorial - PRO) --- */
.matcha-gallery__toolbar--skin-underline .matcha-gallery__search-wrap {
	border-bottom: 1.5px solid #cbd5e1;
	transition: border-color 0.2s ease;
}
.matcha-gallery__toolbar--skin-underline .matcha-gallery__search-wrap:focus-within {
	border-bottom-color: var(--matcha-accent, #607d66);
}
.matcha-gallery__toolbar--skin-underline .matcha-gallery__search-input {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 8px 12px 8px 30px !important;
	color: #0f172a;
	font-weight: 500;
}
.matcha-gallery__toolbar--skin-underline .matcha-search-icon {
	left: 4px;
	color: #64748b;
}
.matcha-gallery__toolbar--skin-underline .matcha-gallery__sort-select {
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	border-bottom: 1.5px solid #cbd5e1 !important;
	box-shadow: none !important;
	padding: 8px 30px 8px 8px !important;
	color: #0f172a !important;
	font-weight: 600;
}
.matcha-gallery__toolbar--skin-underline .matcha-gallery__sort-select:focus {
	border-bottom-color: var(--matcha-accent, #607d66) !important;
}
.matcha-gallery__toolbar--skin-underline .matcha-gallery__color-swatches {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 4px 0 !important;
}
.matcha-gallery__toolbar--skin-underline .matcha-filter,
.matcha-gallery__filters--skin-underline .matcha-filter,
.matcha-gallery__filters--style-underline .matcha-filter {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 8px 14px;
	color: #64748b !important;
	position: relative;
	border-bottom: 2px solid transparent !important;
	font-weight: 600;
}
.matcha-gallery__toolbar--skin-underline .matcha-filter:hover,
.matcha-gallery__filters--skin-underline .matcha-filter:hover,
.matcha-gallery__filters--style-underline .matcha-filter:hover {
	color: #0f172a !important;
	background: transparent !important;
	transform: none;
	border-bottom-color: #cbd5e1 !important;
}
.matcha-gallery__toolbar--skin-underline .matcha-filter--active,
.matcha-gallery__filters--skin-underline .matcha-filter--active,
.matcha-gallery__filters--style-underline .matcha-filter--active {
	background: transparent !important;
	color: #0f172a !important;
	border-color: transparent !important;
	border-bottom: 2px solid var(--matcha-accent, #607d66) !important;
	box-shadow: none !important;
}
.matcha-gallery__toolbar--skin-underline .matcha-filter--active .matcha-filter__count,
.matcha-gallery__filters--skin-underline .matcha-filter--active .matcha-filter__count,
.matcha-gallery__filters--style-underline .matcha-filter--active .matcha-filter__count {
	background: #e2e8f0;
	color: #0f172a;
}
/* Underline Dark Theme Adaptation */
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-gallery__search-wrap,
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-gallery__sort-select {
	border-bottom-color: #475569 !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-gallery__search-input {
	color: #f1f5f9 !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-gallery__sort-select {
	color: #f1f5f9 !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-filter,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-underline .matcha-filter,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-underline .matcha-filter {
	background: transparent !important;
	border: none !important;
	color: #94a3b8 !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-filter:hover,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-underline .matcha-filter:hover,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-underline .matcha-filter:hover {
	color: #ffffff !important;
	border-bottom-color: #64748b !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-filter--active,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-underline .matcha-filter--active,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-underline .matcha-filter--active {
	background: transparent !important;
	color: #ffffff !important;
	border-bottom-color: var(--matcha-accent, #607d66) !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-underline .matcha-filter--active .matcha-filter__count,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-underline .matcha-filter--active .matcha-filter__count,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-underline .matcha-filter--active .matcha-filter__count {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

/* --- 3. Obsidian Dark Skin (Charcoal Pro) --- */
.matcha-gallery__toolbar--skin-obsidian .matcha-gallery__search-input {
	background: #1e293b !important;
	border: 1px solid #334155 !important;
	border-radius: 100px;
	color: #f8fafc !important;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.matcha-gallery__toolbar--skin-obsidian .matcha-gallery__search-input::placeholder {
	color: #64748b;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-gallery__search-input:focus {
	border-color: var(--matcha-accent, #607d66) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--matcha-accent, #607d66) 25%, transparent) !important;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-search-icon {
	color: #94a3b8;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-gallery__sort-select {
	background-color: #1e293b !important;
	border: 1px solid #334155 !important;
	border-radius: 100px;
	color: #e2e8f0 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-gallery__sort-select:focus {
	border-color: var(--matcha-accent, #607d66) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--matcha-accent, #607d66) 25%, transparent) !important;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-gallery__color-swatches {
	background: #1e293b !important;
	border: 1px solid #334155 !important;
	border-radius: 100px;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-filter,
.matcha-gallery__filters--skin-obsidian .matcha-filter,
.matcha-gallery__filters--style-dark:not([class*="--skin-capsule"]):not([class*="--skin-underline"]):not([class*="--skin-glass"]) .matcha-filter {
	background: #1e293b !important;
	border: 1px solid #334155 !important;
	color: #cbd5e1 !important;
	border-radius: 100px;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-filter:hover,
.matcha-gallery__filters--skin-obsidian .matcha-filter:hover,
.matcha-gallery__filters--style-dark:not([class*="--skin-capsule"]):not([class*="--skin-underline"]):not([class*="--skin-glass"]) .matcha-filter:hover {
	background: #334155 !important;
	border-color: #475569 !important;
	color: #ffffff !important;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-filter--active,
.matcha-gallery__filters--skin-obsidian .matcha-filter--active,
.matcha-gallery__filters--style-dark:not([class*="--skin-capsule"]):not([class*="--skin-underline"]):not([class*="--skin-glass"]) .matcha-filter--active {
	background: var(--matcha-accent, #607d66) !important;
	border-color: var(--matcha-accent, #607d66) !important;
	color: #ffffff !important;
	font-weight: 700;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--matcha-accent, #607d66) 35%, transparent) !important;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-filter__count,
.matcha-gallery__filters--skin-obsidian .matcha-filter__count,
.matcha-gallery__filters--style-dark:not([class*="--skin-capsule"]):not([class*="--skin-underline"]):not([class*="--skin-glass"]) .matcha-filter__count {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #cbd5e1 !important;
}
.matcha-gallery__toolbar--skin-obsidian .matcha-filter--active .matcha-filter__count,
.matcha-gallery__filters--skin-obsidian .matcha-filter--active .matcha-filter__count,
.matcha-gallery__filters--style-dark:not([class*="--skin-capsule"]):not([class*="--skin-underline"]):not([class*="--skin-glass"]) .matcha-filter--active .matcha-filter__count {
	background: rgba(0, 0, 0, 0.25) !important;
	color: #0c140e !important;
}

/* --- 4. Frosted Glass Skin (Glassmorphism Pro) --- */
.matcha-gallery__toolbar--skin-glass .matcha-gallery__search-input {
	background: rgba(255, 255, 255, 0.55) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
	border: 1px solid rgba(255, 255, 255, 0.85) !important;
	border-radius: 100px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
	color: #0f172a !important;
}
.matcha-gallery__toolbar--skin-glass .matcha-gallery__search-input:focus {
	border-color: var(--matcha-accent, #607d66) !important;
	box-shadow: 0 0 0 3px rgba(96, 125, 102, 0.2), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
.matcha-gallery__toolbar--skin-glass .matcha-gallery__sort-select {
	background-color: rgba(255, 255, 255, 0.55) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
	border: 1px solid rgba(255, 255, 255, 0.85) !important;
	border-radius: 100px;
	color: #1e293b !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
.matcha-gallery__toolbar--skin-glass .matcha-gallery__color-swatches {
	background: rgba(255, 255, 255, 0.55) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
	border: 1px solid rgba(255, 255, 255, 0.85) !important;
	border-radius: 100px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
.matcha-gallery__toolbar--skin-glass .matcha-filter,
.matcha-gallery__filters--skin-glass .matcha-filter,
.matcha-gallery__filters--style-glass .matcha-filter {
	background: rgba(255, 255, 255, 0.48) !important;
	backdrop-filter: blur(10px) !important;
	-webkit-backdrop-filter: blur(10px) !important;
	border: 1px solid rgba(255, 255, 255, 0.85) !important;
	border-radius: 100px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
	color: #1e293b !important;
}
.matcha-gallery__toolbar--skin-glass .matcha-filter:hover,
.matcha-gallery__filters--skin-glass .matcha-filter:hover,
.matcha-gallery__filters--style-glass .matcha-filter:hover {
	background: rgba(255, 255, 255, 0.75) !important;
	color: #0f172a !important;
}
.matcha-gallery__toolbar--skin-glass .matcha-filter--active,
.matcha-gallery__filters--skin-glass .matcha-filter--active,
.matcha-gallery__filters--style-glass .matcha-filter--active {
	background: var(--matcha-accent, #607d66) !important;
	border-color: var(--matcha-accent, #607d66) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}
/* Glass Dark Mode Adaptation (Smoked Glassmorphism) */
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-glass .matcha-gallery__search-input,
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-glass .matcha-gallery__sort-select,
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-glass .matcha-gallery__color-swatches {
	background: rgba(15, 23, 42, 0.75) !important;
	border-color: rgba(255, 255, 255, 0.18) !important;
	color: #f8fafc !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-glass .matcha-filter,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-glass .matcha-filter,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-glass .matcha-filter {
	background: rgba(15, 23, 42, 0.65) !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
	color: #f8fafc !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}
.matcha-gallery--theme-dark .matcha-gallery__toolbar--skin-glass .matcha-filter:hover,
.matcha-gallery--theme-dark .matcha-gallery__filters--skin-glass .matcha-filter:hover,
.matcha-gallery--theme-dark .matcha-gallery__filters--style-glass .matcha-filter:hover {
	background: rgba(30, 41, 59, 0.85) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
	color: #ffffff !important;
}

/* --- Filter Toolbar Alignments --- */
.matcha-gallery__filters--align-left { justify-content: flex-start; }
.matcha-gallery__filters--align-center { justify-content: center; width: 100%; }
.matcha-gallery__filters--align-right { justify-content: flex-end; width: 100%; }
.matcha-gallery__filters--align-between { justify-content: space-between; width: 100%; }

/* --- Option: Hide Filter Count --- */
.matcha-gallery__filters--hide-count .matcha-filter__count {
	display: none !important;
}

/* --- Responsive Mobile Toolbar & Horizontal Filter Swipe --- */
@media (max-width: 640px) {
	.matcha-gallery__toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}
	.matcha-gallery__search-wrap {
		max-width: 100%;
	}
	.matcha-gallery__filters {
		overflow-x: auto;
		flex-wrap: nowrap !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 6px;
		max-width: 100%;
	}
	.matcha-gallery__filters::-webkit-scrollbar {
		display: none;
	}
}

/* --- Load More Button (Dynamic Accent & Visual Themes) --- */
.matcha-gallery__load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 28px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: inherit;
	line-height: 1;
	user-select: none;
}

/* 1. Solid Pill (Default) */
.matcha-gallery__load-more-btn,
.matcha-gallery__load-more-btn--pill {
	background: var(--matcha-accent, #607d66);
	color: #ffffff !important;
	border: 1px solid transparent;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.matcha-gallery__load-more-btn:hover,
.matcha-gallery__load-more-btn--pill:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	color: #ffffff !important;
}

/* 2. Outline / Border */
.matcha-gallery__load-more-btn--outline {
	background: transparent !important;
	color: var(--matcha-accent, #607d66) !important;
	border: 2px solid var(--matcha-accent, #607d66) !important;
	box-shadow: none !important;
}
.matcha-gallery__load-more-btn--outline:hover {
	background: var(--matcha-accent, #607d66) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
}

/* 3. Minimalist Link */
.matcha-gallery__load-more-btn--minimal {
	background: transparent !important;
	color: var(--matcha-accent, #607d66) !important;
	border: 1px solid transparent !important;
	box-shadow: none !important;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.matcha-gallery__load-more-btn--minimal:hover {
	background: rgba(0,0,0,0.05) !important;
	transform: none;
}

/* 4. Frosted Glass */
.matcha-gallery__load-more-btn--glass {
	background: rgba(255, 255, 255, 0.65) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.85) !important;
	color: #0f172a !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
.matcha-gallery__load-more-btn--glass:hover {
	background: rgba(255, 255, 255, 0.9) !important;
	color: var(--matcha-accent, #607d66) !important;
	border-color: var(--matcha-accent, #607d66) !important;
	transform: translateY(-2px);
}

/* 5. Solid Dark / Obsidian */
.matcha-gallery__load-more-btn--dark {
	background: #0f172a !important;
	color: var(--matcha-accent, #607d66) !important;
	border: 1px solid #1e293b !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
.matcha-gallery__load-more-btn--dark:hover {
	background: #1e293b !important;
	border-color: var(--matcha-accent, #607d66) !important;
	transform: translateY(-2px);
}

.matcha-gallery__ai-meta {
	font-size: 11px;
	color: #2e7d32;
	background: #e8f5e9;
	border: 1px solid #c8e6c9;
	padding: 4px 10px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.matcha-gallery__ai-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .3px;
	background: rgba(255,255,255,.95);
	color: #2e7d32;
	border: 1px solid #c8e6c9;
	padding: 2px 7px;
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* Proofing Favorites Button (Theme-Resistant Circular Glass Badge) */
.matcha-gallery .matcha-gallery__proof-btn,
.matcha-gallery__item .matcha-gallery__proof-btn,
button.matcha-gallery__proof-btn {
	all: unset !important;
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	color: #334155 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	z-index: 30 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
	line-height: 1 !important;
	outline: none !important;
}

.matcha-gallery .matcha-gallery__proof-btn:hover,
.matcha-gallery__item .matcha-gallery__proof-btn:hover,
button.matcha-gallery__proof-btn:hover {
	transform: scale(1.14) !important;
	background: #ffffff !important;
	color: #ef4444 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
}

.matcha-gallery .matcha-gallery__proof-btn:active,
.matcha-gallery__item .matcha-gallery__proof-btn:active,
button.matcha-gallery__proof-btn:active {
	transform: scale(0.92) !important;
}

.matcha-gallery__proof-btn .matcha-heart-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 16px !important;
	height: 16px !important;
	pointer-events: none !important;
	line-height: 1 !important;
}

.matcha-gallery__proof-btn .matcha-heart-icon svg {
	width: 16px !important;
	height: 16px !important;
	stroke: currentColor !important;
	fill: transparent !important;
	transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	display: block !important;
	pointer-events: none !important;
}

/* Favorited state with vibrant red fill and subtle glow */
.matcha-gallery .matcha-gallery__proof-btn.is-favorited,
.matcha-gallery__item .matcha-gallery__proof-btn.is-favorited,
button.matcha-gallery__proof-btn.is-favorited {
	background: #ffffff !important;
	color: #ef4444 !important;
	border-color: rgba(239, 68, 68, 0.35) !important;
	box-shadow: 0 2px 10px rgba(239, 68, 68, 0.28) !important;
	animation: matcha-heart-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.matcha-gallery .matcha-gallery__proof-btn.is-favorited .matcha-heart-icon svg,
.matcha-gallery__item .matcha-gallery__proof-btn.is-favorited .matcha-heart-icon svg,
button.matcha-gallery__proof-btn.is-favorited .matcha-heart-icon svg {
	fill: #ef4444 !important;
	stroke: #ef4444 !important;
}

@keyframes matcha-heart-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.28); }
	100% { transform: scale(1); }
}

/* Gallery Item Pointer & Zoom Cursors */
.matcha-gallery__item {
	cursor: zoom-in;
}
.matcha-gallery__item[data-click-action="direct"] {
	cursor: pointer;
}

/* ==========================================================================
   The Grid (Malabo Skin) — Ultra-Sleek Choreographed Hover Experience
   ========================================================================== */

/* Full-card Scrim Overlay */
.matcha-item-overlay {
	position: absolute !important;
	inset: 0 !important;
	z-index: 10 !important;
	background: rgba(15, 23, 42, 0.78) !important;
	backdrop-filter: blur(2px) !important;
	-webkit-backdrop-filter: blur(2px) !important;
	opacity: 0 !important;
	transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
	pointer-events: none !important;
}

.matcha-gallery__item-inner:hover .matcha-item-overlay,
.matcha-gallery__item:hover .matcha-item-overlay {
	opacity: 1 !important;
}

/* Image Base Transition */
.matcha-gallery__item-inner img {
	transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), filter 0.35s ease !important;
}

/* Default Zoom (The Grid Malabo) */
.matcha-gallery--hover-zoom .matcha-gallery__item:hover img,
.matcha-gallery--hover-zoom .matcha-gallery__item-inner:hover img,
.matcha-gallery:not([class*="matcha-gallery--hover-"]) .matcha-gallery__item:hover img,
.matcha-gallery:not([class*="matcha-gallery--hover-"]) .matcha-gallery__item-inner:hover img {
	transform: scale(1.08) !important;
}

/* Base Hairline Frame Element (Brasilia) */
.matcha-item-frame {
	display: none;
}

/* Centered Content Stack (Zero Horizontal Collision) */
.matcha-item-content {
	position: absolute !important;
	inset: 0 !important;
	z-index: 15 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	padding: 16px 14px !important;
	box-sizing: border-box !important;
	pointer-events: none !important;
	opacity: 0 !important;
	transition: opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.matcha-gallery__item-inner:hover .matcha-item-content,
.matcha-gallery__item:hover .matcha-item-content {
	opacity: 1 !important;
}

/* Drop-Down Title */
.matcha-item-title {
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #ffffff !important;
	letter-spacing: 0.3px !important;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
	max-width: 96% !important;
	overflow: hidden !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	opacity: 0 !important;
	transform: translateY(-22px) !important;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.matcha-gallery__item-inner:hover .matcha-item-title,
.matcha-gallery__item:hover .matcha-item-title {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

/* Micro-Action Buttons Container */
.matcha-item-actions {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	margin: 0 0 10px 0 !important;
	pointer-events: none !important;
}

/* Choreographed Micro-Action Buttons */
.matcha-gallery .matcha-action-btn,
.matcha-gallery__item .matcha-action-btn,
button.matcha-action-btn,
a.matcha-action-btn,
span.matcha-action-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	box-sizing: border-box !important;
	background: rgba(255, 255, 255, 0.16) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	color: #ffffff !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
	pointer-events: auto !important;
	opacity: 0 !important;
	transform: scale(0.7) !important;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.04s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.04s, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.matcha-action-btn svg {
	width: 15px !important;
	height: 15px !important;
	stroke: currentColor !important;
	stroke-width: 2.2 !important;
	flex-shrink: 0 !important;
	display: block !important;
}

/* Choreographed Staggered Entrance */
/* Duo buttons: slide in from left & right */
.matcha-gallery .matcha-action-btn:first-child:not(:only-child) {
	transform: translateX(-24px) !important;
}

.matcha-gallery .matcha-action-btn:last-child:not(:only-child) {
	transform: translateX(24px) !important;
}

.matcha-gallery__item-inner:hover .matcha-action-btn,
.matcha-gallery__item:hover .matcha-action-btn {
	opacity: 1 !important;
	transform: translate(0) scale(1) !important;
}

/* Micro-Action Hover States */
.matcha-action-btn--media:hover {
	background: rgba(255, 255, 255, 0.28) !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	transform: translate(0) scale(1.12) !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

.matcha-action-btn--link:hover,
.matcha-action-btn--shop:hover {
	background: var(--matcha-accent, #607d66) !important;
	color: #ffffff !important;
	border-color: var(--matcha-accent, #607d66) !important;
	transform: translate(0) scale(1.12) !important;
	box-shadow: 0 6px 20px color-mix(in srgb, var(--matcha-accent, #607d66) 50%, transparent) !important;
}

.matcha-action-btn:active {
	transform: translate(0) scale(0.95) !important;
}

/* Slide-Up Metadata & Price */
.matcha-item-meta {
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	transform: translateY(20px) !important;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.06s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.06s !important;
}

.matcha-gallery__item-inner:hover .matcha-item-meta,
.matcha-gallery__item:hover .matcha-item-meta {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

.matcha-item-category {
	display: inline-block !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.8px !important;
	text-transform: uppercase !important;
	color: rgba(255, 255, 255, 0.75) !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.matcha-item-price {
	display: inline-flex !important;
	align-items: center !important;
	padding: 3px 10px !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.2) !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	letter-spacing: 0.2px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.matcha-item-caption {
	font-size: 11px !important;
	line-height: 1.35 !important;
	color: rgba(255, 255, 255, 0.8) !important;
	margin: 0 !important;
	max-width: 90% !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

/* Sticky Client Proofing Favorites Tray */
.matcha-gallery__favorites-tray {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: rgba(30, 30, 30, 0.94);
	color: #fff;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255,255,255,0.15);
	padding: 10px 20px;
	border-radius: 100px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: 0 10px 35px rgba(0,0,0,0.4);
	z-index: 9999;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	opacity: 0;
}

.matcha-gallery__favorites-tray.is-visible {
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
	opacity: 1;
}

.matcha-gallery__favorites-info {
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.matcha-gallery__export-btn {
	background: linear-gradient(135deg, #4caf50, #2e7d32);
	color: #fff !important;
	border: none;
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.matcha-gallery__export-btn:hover {
	background: #43a047;
	transform: scale(1.04);
}

/* ==========================================================================
   Layouts: Grid, Masonry, Bento
   ========================================================================== */

.matcha-gallery--grid .matcha-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--matcha-columns), 1fr);
	gap: var(--matcha-gutter);
}

.matcha-gallery--masonry .matcha-gallery__grid {
	column-count: var(--matcha-columns);
	column-gap: var(--matcha-gutter);
	orphans: 1;
	widows: 1;
}

.matcha-gallery--masonry .matcha-gallery__item {
	display: inline-block !important;
	width: 100% !important;
	margin: 0 0 var(--matcha-gutter) 0 !important;
	padding: 0 !important;
	vertical-align: top !important;
	box-sizing: border-box !important;
	break-inside: avoid !important;
	break-inside: avoid-column !important;
	-webkit-column-break-inside: avoid !important;
	page-break-inside: avoid !important;
	content-visibility: visible !important;
	contain: none !important;
}

.matcha-gallery--masonry .matcha-gallery__item-inner {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	overflow: hidden !important;
	transform: translateZ(0) !important;
	-webkit-transform: translateZ(0) !important;
}

.matcha-gallery--masonry .matcha-gallery__item img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	object-fit: cover !important;
}

/* Bento Grid */
.matcha-gallery--bento .matcha-gallery__grid,
.layout-bento-showcase .matcha-gallery__grid,
.matcha-gallery-container.layout-bento-showcase > .matcha-gallery__grid,
#galleryContainer.layout-bento-showcase {
	display: grid !important;
	grid-template-columns: repeat(var(--matcha-columns, 4), 1fr) !important;
	grid-auto-rows: var(--matcha-row-height, 220px) !important;
	gap: var(--matcha-gutter, 20px) !important;
	grid-auto-flow: dense !important;
}

.matcha-gallery--bento .gallery-item,
.matcha-gallery--bento .matcha-gallery__item,
.layout-bento-showcase .gallery-item,
.layout-bento-showcase .matcha-gallery__item {
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	aspect-ratio: unset !important;
}

/* Default Bento Hero Anchors when custom spans are not set */
.matcha-gallery--bento .matcha-gallery__item:not([class*="matcha-gallery__item--span-"]):nth-child(1),
.layout-bento-showcase .gallery-item:not([class*="matcha-gallery__item--span-"]):nth-child(1) {
	grid-column: span 2 !important;
	grid-row: span 2 !important;
}

.matcha-gallery--bento .matcha-gallery__item:not([class*="matcha-gallery__item--span-"]):nth-child(4),
.layout-bento-showcase .gallery-item:not([class*="matcha-gallery__item--span-"]):nth-child(4) {
	grid-column: span 2 !important;
	grid-row: span 1 !important;
}

/* Item Inner & Framing System */
.matcha-gallery__item-inner {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: var(--matcha-radius);
	overflow: hidden;
	background: #fff;
	padding: var(--matcha-matting, 0px);
	box-sizing: border-box;
	transition: transform var(--matcha-transition), box-shadow var(--matcha-transition);
}

/* Frame Styles (Gallery Wall Realism) */
.matcha-gallery--frame-none .matcha-gallery__item-inner {
	padding: var(--matcha-matting, 0px);
	background: transparent;
	border: none !important;
}

.matcha-gallery--frame-white-mat .matcha-gallery__item-inner {
	padding: max(12px, var(--matcha-matting, 14px));
	background: #fafaf8;
	border: 8px solid #ffffff;
	box-shadow: inset 0 0 0 1px #e2e2da, 0 4px 16px rgba(0,0,0,0.1);
}

.matcha-gallery--frame-black-metal .matcha-gallery__item-inner {
	padding: var(--matcha-matting, 0px);
	background: #111;
	border: 6px solid #1a1a1a;
	box-shadow: inset 0 0 0 1px #333, 0 8px 24px rgba(0,0,0,0.22);
}

.matcha-gallery--frame-natural-oak .matcha-gallery__item-inner {
	padding: max(10px, var(--matcha-matting, 10px));
	background: #fdfbf7;
	border: 10px solid #cbb292;
	box-shadow: inset 0 0 0 1px #b19675, 0 6px 20px rgba(78, 56, 32, 0.18);
}

.matcha-gallery--frame-gold-brass .matcha-gallery__item-inner {
	padding: max(10px, var(--matcha-matting, 10px));
	background: #fff;
	border: 8px solid #d4af37;
	box-shadow: inset 0 0 0 1px #b89728, 0 8px 28px rgba(212, 175, 55, 0.25);
}

.matcha-gallery--frame-glass-float .matcha-gallery__item-inner {
	padding: max(8px, var(--matcha-matting, 8px));
	background: rgba(255,255,255,0.45);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.7);
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Realistic Shadow Elevations & Depth (All Skins) */
.matcha-gallery--shadow-none .matcha-gallery__item-inner,
.matcha-gallery--shadow-none.skin-editorial .gallery-item,
.matcha-gallery--shadow-none.skin-editorial .matcha-gallery__item {
	box-shadow: none !important;
}
.matcha-gallery--shadow-none .matcha-gallery__item:hover,
.matcha-gallery--shadow-none .matcha-gallery__item-inner:hover,
.matcha-gallery--shadow-none.skin-editorial .gallery-item:hover,
.matcha-gallery--shadow-none.skin-editorial .matcha-gallery__item:hover {
	box-shadow: none !important;
	transform: none !important;
}

.matcha-gallery--shadow-soft:not(.skin-editorial) .matcha-gallery__item-inner,
.matcha-gallery--shadow-soft.skin-editorial .gallery-item,
.matcha-gallery--shadow-soft.skin-editorial .matcha-gallery__item {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07) !important;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.matcha-gallery--shadow-soft:not(.skin-editorial) .matcha-gallery__item:hover .matcha-gallery__item-inner,
.matcha-gallery--shadow-soft:not(.skin-editorial) .matcha-gallery__item-inner:hover,
.matcha-gallery--shadow-soft.skin-editorial .gallery-item:hover,
.matcha-gallery--shadow-soft.skin-editorial .matcha-gallery__item:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.11) !important;
	transform: translateY(-3px) !important;
}

.matcha-gallery--shadow-medium:not(.skin-editorial) .matcha-gallery__item-inner,
.matcha-gallery--shadow-medium.skin-editorial .gallery-item,
.matcha-gallery--shadow-medium.skin-editorial .matcha-gallery__item {
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12) !important;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.matcha-gallery--shadow-medium:not(.skin-editorial) .matcha-gallery__item:hover .matcha-gallery__item-inner,
.matcha-gallery--shadow-medium:not(.skin-editorial) .matcha-gallery__item-inner:hover,
.matcha-gallery--shadow-medium.skin-editorial .gallery-item:hover,
.matcha-gallery--shadow-medium.skin-editorial .matcha-gallery__item:hover {
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18) !important;
	transform: translateY(-5px) !important;
}

.matcha-gallery--shadow-gallery-spotlight:not(.skin-editorial) .matcha-gallery__item-inner,
.matcha-gallery--shadow-gallery-spotlight.skin-editorial .gallery-item,
.matcha-gallery--shadow-gallery-spotlight.skin-editorial .matcha-gallery__item {
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.matcha-gallery--shadow-gallery-spotlight:not(.skin-editorial) .matcha-gallery__item:hover .matcha-gallery__item-inner,
.matcha-gallery--shadow-gallery-spotlight:not(.skin-editorial) .matcha-gallery__item-inner:hover,
.matcha-gallery--shadow-gallery-spotlight.skin-editorial .gallery-item:hover,
.matcha-gallery--shadow-gallery-spotlight.skin-editorial .matcha-gallery__item:hover {
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28), 0 6px 16px rgba(0, 0, 0, 0.12) !important;
	transform: translateY(-6px) !important;
}

.matcha-gallery--shadow-deep-lift:not(.skin-editorial) .matcha-gallery__item-inner,
.matcha-gallery--shadow-deep-lift.skin-editorial .gallery-item,
.matcha-gallery--shadow-deep-lift.skin-editorial .matcha-gallery__item {
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.12) !important;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.matcha-gallery--shadow-deep-lift:not(.skin-editorial) .matcha-gallery__item:hover .matcha-gallery__item-inner,
.matcha-gallery--shadow-deep-lift:not(.skin-editorial) .matcha-gallery__item-inner:hover,
.matcha-gallery--shadow-deep-lift.skin-editorial .gallery-item:hover,
.matcha-gallery--shadow-deep-lift.skin-editorial .matcha-gallery__item:hover {
	box-shadow: 0 38px 90px rgba(0, 0, 0, 0.36), 0 12px 30px rgba(0, 0, 0, 0.2) !important;
	transform: translateY(-8px) scale(1.015) !important;
}

/* Wall & Canvas Backdrops */
.matcha-gallery--backdrop-white { background: #ffffff; padding: 24px; border-radius: 12px; }
.matcha-gallery--backdrop-cream { background: #fbf9f4; padding: 24px; border-radius: 12px; }
.matcha-gallery--backdrop-sage { background: #eef4ed; padding: 24px; border-radius: 12px; }
.matcha-gallery--backdrop-charcoal { background: #22252a; padding: 24px; border-radius: 12px; }
.matcha-gallery--backdrop-dark-slate { background: #12161a; padding: 24px; border-radius: 12px; }

/* PhotoBlocks Mosaic Grid (Custom per-block spans) */
.matcha-gallery--mosaic .matcha-gallery__grid,
.matcha-gallery--pinwheel .matcha-gallery__grid {
	display: grid !important;
	grid-template-columns: repeat(var(--matcha-columns), 1fr) !important;
	grid-auto-rows: var(--matcha-row-height, 220px) !important;
	gap: var(--matcha-gutter) !important;
	grid-auto-flow: dense !important;
}

.matcha-gallery--mosaic .matcha-gallery__item,
.matcha-gallery--pinwheel .matcha-gallery__item {
	grid-column: span 1;
	grid-row: span 1;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	aspect-ratio: unset !important;
}

.matcha-gallery--mosaic .matcha-gallery__item--span-1x1,
.matcha-gallery--bento .matcha-gallery__item--span-1x1,
.matcha-gallery--pinwheel .matcha-gallery__item--span-1x1,
.layout-bento-showcase .gallery-item.matcha-gallery__item--span-1x1 {
	grid-column: span 1 !important;
	grid-row: span 1 !important;
}

.matcha-gallery--mosaic .matcha-gallery__item--span-2x1,
.matcha-gallery--bento .matcha-gallery__item--span-2x1,
.matcha-gallery--pinwheel .matcha-gallery__item--span-2x1,
.layout-bento-showcase .gallery-item.matcha-gallery__item--span-2x1 {
	grid-column: span 2 !important;
	grid-row: span 1 !important;
}

.matcha-gallery--mosaic .matcha-gallery__item--span-1x2,
.matcha-gallery--bento .matcha-gallery__item--span-1x2,
.matcha-gallery--pinwheel .matcha-gallery__item--span-1x2,
.layout-bento-showcase .gallery-item.matcha-gallery__item--span-1x2 {
	grid-column: span 1 !important;
	grid-row: span 2 !important;
}

.matcha-gallery--mosaic .matcha-gallery__item--span-2x2,
.matcha-gallery--bento .matcha-gallery__item--span-2x2,
.matcha-gallery--pinwheel .matcha-gallery__item--span-2x2,
.layout-bento-showcase .gallery-item.matcha-gallery__item--span-2x2 {
	grid-column: span 2 !important;
	grid-row: span 2 !important;
}

.matcha-gallery--mosaic .matcha-gallery__item-inner,
.matcha-gallery--pinwheel .matcha-gallery__item-inner,
.matcha-gallery--bento .matcha-gallery__item-inner {
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.matcha-gallery--mosaic .matcha-gallery__item img,
.matcha-gallery--pinwheel .matcha-gallery__item img,
.matcha-gallery--bento .matcha-gallery__item img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.matcha-gallery--mosaic .matcha-gallery__item-inner,
.matcha-gallery--pinwheel .matcha-gallery__item-inner {
	height: 100%;
}

/* Justified (Flickr Rows) Layout */
.matcha-gallery--justified .matcha-gallery__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--matcha-gutter);
}

.matcha-gallery--justified .matcha-gallery__grid::after {
	content: '';
	flex-grow: 99999;
	min-width: 100px;
	height: 0;
}

.matcha-gallery--justified .matcha-gallery__item {
	flex-grow: 1;
	height: var(--matcha-row-height, 240px);
	min-width: 120px;
}

.matcha-gallery--justified .matcha-gallery__item-inner {
	height: 100%;
	width: 100%;
}

.matcha-gallery--justified .matcha-gallery__item img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Card Aesthetic Themes (Glass, Glow, Dark)
   ========================================================================== */

.matcha-gallery--theme-glass .matcha-gallery__item-inner {
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.matcha-gallery--theme-glow .matcha-gallery__item-inner:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border: 1px solid var(--matcha-accent, #607d66);
}

.matcha-gallery--theme-dark {
	--matcha-surface: #1e1e1e;
	--matcha-text: #f5f5f5;
	--matcha-text-muted: #aaaaaa;
}

/* Fallback for un-skinned galleries */
.matcha-gallery--theme-dark .matcha-gallery__toolbar:not([class*="--skin-"]) .matcha-gallery__search-input {
	background: #2a2a2a;
	color: #e0e0e0;
	border-color: #3e3e3e;
}
.matcha-gallery--theme-dark .matcha-gallery__filters:not([class*="--skin-"]):not([class*="--style-"]) .matcha-filter {
	background: #2a2a2a;
	color: #e0e0e0;
	border-color: #3e3e3e;
}

/* ==========================================================================
   Gallery Items
   ========================================================================== */

.matcha-gallery__item {
	position: relative;
	transition:
		opacity var(--matcha-transition),
		transform var(--matcha-transition);
	will-change: opacity, transform;
}

/* Zero-CLS Aspect Ratio reservation (Scoped strictly to Grid and Masonry) */
.matcha-gallery--grid .matcha-gallery__grid--instant-frames .matcha-gallery__item,
.matcha-gallery--grid.matcha-gallery__grid--instant-frames .matcha-gallery__item {
	aspect-ratio: 1;
}

.matcha-gallery--masonry .matcha-gallery__grid--instant-frames .matcha-gallery__item,
.matcha-gallery--masonry.matcha-gallery__grid--instant-frames .matcha-gallery__item {
	aspect-ratio: var(--matcha-aspect, 4/3);
}

/* Explicitly prevent aspect-ratio from overriding fixed grid track heights */
.matcha-gallery--mosaic .matcha-gallery__item,
.matcha-gallery--pinwheel .matcha-gallery__item,
.matcha-gallery--bento .matcha-gallery__item,
.matcha-gallery--justified .matcha-gallery__item {
	aspect-ratio: unset !important;
}

.matcha-gallery__item-inner {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: var(--matcha-radius);
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
	box-shadow: var(--matcha-shadow);
	transition: box-shadow var(--matcha-transition), transform var(--matcha-transition);
	cursor: pointer;
}

.matcha-gallery--theme-dark .matcha-gallery__item-inner {
	background: rgba(255, 255, 255, 0.04);
}

.matcha-gallery--grid:not(.skin-editorial) .matcha-gallery__item-inner {
	aspect-ratio: 1;
}

.matcha-gallery__item-inner:hover {
	box-shadow: var(--matcha-shadow-lg);
	transform: translateY(-4px);
}

.matcha-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

/* Preloader UI */
.matcha-gallery-preloader {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
	width: 100%;
	opacity: 1;
	transition: opacity 0.4s ease;
}

.matcha-gallery-preloader.is-hidden {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.matcha-preloader-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0,0,0,0.1);
	border-top-color: var(--matcha-accent, #607d66);
	border-radius: 50%;
	animation: matcha-spin 1s linear infinite;
}

.matcha-gallery--theme-dark .matcha-preloader-spinner {
	border-color: rgba(255,255,255,0.1);
	border-top-color: var(--matcha-accent, #5ec27f);
}

@keyframes matcha-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Creative Gallery Hover Presets (Inspired by The Grid — All Skins)
   ========================================================================== */

/* 1. Cinematic Pullback (The Grid: Bogota) — Scales down into matte canvas */
.matcha-gallery--hover-pullback .item-media-wrap,
.matcha-gallery--hover-pullback .matcha-gallery__item-inner {
	background: #090d16 !important;
}
.matcha-gallery--hover-pullback .matcha-gallery__item:hover img,
.matcha-gallery--hover-pullback .matcha-gallery__item-inner:hover img,
.matcha-gallery--hover-pullback .matcha-gallery__item.is-touch-revealed img {
	transform: scale(0.92) !important;
	border-radius: 6px !important;
}

/* 2. Editorial Hairline Frame (The Grid: Brasilia) — Fine art matting border */
.matcha-gallery--hover-frame .item-media-wrap::after,
.matcha-gallery--hover-frame:not(.skin-editorial) .matcha-gallery__item-inner::after,
.matcha-gallery--hover-frame .matcha-item-frame {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	inset: 12px !important;
	border: 1px solid var(--matcha-hover-frame-color, rgba(255, 255, 255, 0.75)) !important;
	border-radius: 4px !important;
	pointer-events: none !important;
	opacity: 0 !important;
	transform: scale(0.92) !important;
	transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
	z-index: 12 !important;
	box-sizing: border-box !important;
}
.matcha-gallery--hover-frame .matcha-gallery__item:hover .item-media-wrap::after,
.matcha-gallery--hover-frame:not(.skin-editorial) .matcha-gallery__item:hover .matcha-gallery__item-inner::after,
.matcha-gallery--hover-frame .matcha-gallery__item-inner:hover .matcha-item-frame,
.matcha-gallery--hover-frame .matcha-gallery__item.is-touch-revealed .item-media-wrap::after {
	opacity: 1 !important;
	transform: scale(1) !important;
}
.matcha-gallery--hover-frame .matcha-gallery__item:hover img,
.matcha-gallery--hover-frame .matcha-gallery__item-inner:hover img,
.matcha-gallery--hover-frame .matcha-gallery__item.is-touch-revealed img {
	transform: scale(1.04) !important;
}

/* 3. Architectural Slide Curtain (The Grid: Sofia) — Mechanical bottom-up wipe */
.matcha-gallery--hover-curtain .item-media-wrap::before,
.matcha-gallery--hover-curtain:not(.skin-editorial) .item-overlay,
.matcha-gallery--hover-curtain .matcha-item-overlay {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.25) 100%) !important;
	backdrop-filter: blur(2px) !important;
	-webkit-backdrop-filter: blur(2px) !important;
	transform: translateY(101%) !important;
	opacity: 1 !important;
	transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1) !important;
	z-index: 8 !important;
	pointer-events: none !important;
	display: block !important;
}
.matcha-gallery--hover-curtain .matcha-gallery__item:hover .item-media-wrap::before,
.matcha-gallery--hover-curtain:not(.skin-editorial) .matcha-gallery__item:hover .item-overlay,
.matcha-gallery--hover-curtain .matcha-gallery__item-inner:hover .matcha-item-overlay,
.matcha-gallery--hover-curtain .matcha-gallery__item.is-touch-revealed .item-media-wrap::before {
	transform: translateY(0) !important;
}
.matcha-gallery--hover-curtain .matcha-gallery__item:hover img,
.matcha-gallery--hover-curtain .matcha-gallery__item-inner:hover img,
.matcha-gallery--hover-curtain .matcha-gallery__item.is-touch-revealed img {
	transform: scale(1.05) translateY(-3px) !important;
}

/* 4. Minimalist Bottom Drawer (The Grid: Lome) — Leaves top 55% photo crystal clear */
.matcha-gallery--hover-drawer .item-media-wrap::before,
.matcha-gallery--hover-drawer:not(.skin-editorial) .item-overlay,
.matcha-gallery--hover-drawer .matcha-item-overlay {
	content: "" !important;
	position: absolute !important;
	top: auto !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: 45% !important;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 65%, transparent 100%) !important;
	backdrop-filter: blur(3px) !important;
	-webkit-backdrop-filter: blur(3px) !important;
	transform: translateY(101%) !important;
	opacity: 1 !important;
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
	z-index: 8 !important;
	pointer-events: none !important;
	display: block !important;
}
.matcha-gallery--hover-drawer .matcha-gallery__item:hover .item-media-wrap::before,
.matcha-gallery--hover-drawer:not(.skin-editorial) .matcha-gallery__item:hover .item-overlay,
.matcha-gallery--hover-drawer .matcha-gallery__item-inner:hover .matcha-item-overlay,
.matcha-gallery--hover-drawer .matcha-gallery__item.is-touch-revealed .item-media-wrap::before {
	transform: translateY(0) !important;
}
.matcha-gallery--hover-drawer .matcha-gallery__item:hover img,
.matcha-gallery--hover-drawer .matcha-gallery__item-inner:hover img,
.matcha-gallery--hover-drawer .matcha-gallery__item.is-touch-revealed img {
	transform: scale(1.04) translateY(-3%) !important;
}

/* 5. Editorial Monochrome to Vivid */
.matcha-gallery--hover-grayscale .matcha-gallery__item-inner img,
.matcha-gallery--hover-grayscale .item-img {
	filter: grayscale(100%) contrast(92%) !important;
}
.matcha-gallery--hover-grayscale .matcha-gallery__item:hover img,
.matcha-gallery--hover-grayscale .matcha-gallery__item-inner:hover img,
.matcha-gallery--hover-grayscale .matcha-gallery__item.is-touch-revealed img {
	filter: grayscale(0%) contrast(105%) !important;
	transform: scale(1.05) !important;
}

/* 6. Clean Static (No Motion) */
.matcha-gallery--hover-none .matcha-gallery__item:hover img,
.matcha-gallery--hover-none .matcha-gallery__item-inner:hover img,
.matcha-gallery--hover-none .matcha-gallery__item.is-touch-revealed img {
	transform: none !important;
	filter: none !important;
}
.matcha-gallery--hover-none .matcha-gallery__item:hover,
.matcha-gallery--hover-none .matcha-gallery__item-inner:hover,
.matcha-gallery--hover-none .matcha-gallery__item.is-touch-revealed {
	transform: none !important;
}

/* Multimedia Video Badges & Lightbox Player */
.matcha-item-video-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 11;
	pointer-events: none;
	transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.matcha-item-video-badge svg {
	margin-left: 1px;
}
.matcha-gallery__item-inner:hover .matcha-item-video-badge,
.matcha-gallery__item.is-touch-revealed .matcha-item-video-badge {
	transform: scale(1.1);
	background: var(--matcha-accent, #607d66);
	border-color: rgba(255, 255, 255, 0.7);
}

.matcha-lightbox__video-container {
	position: relative;
	width: 82vw;
	max-width: 1040px;
	aspect-ratio: 16 / 9;
	background: #000000;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.88);
	animation: matcha-video-appear 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes matcha-video-appear {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
.matcha-lightbox__video-iframe,
.matcha-lightbox__video-player {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
.matcha-lightbox__video-player {
	object-fit: contain;
}

/* Hover overlay */
.matcha-gallery__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0);
	transition: background var(--matcha-transition, 0.28s ease);
	pointer-events: none;
	z-index: 4;
}

.matcha-gallery__item-inner:hover .matcha-gallery__overlay,
.matcha-gallery__item:hover .matcha-gallery__overlay {
	background: transparent;
}

.matcha-gallery__zoom-icon {
	color: #fff;
	opacity: 0;
	transform: scale(0.7);
	transition: all var(--matcha-transition, 0.25s ease);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.matcha-gallery__item-inner:hover .matcha-gallery__zoom-icon,
.matcha-gallery__item:hover .matcha-gallery__zoom-icon {
	opacity: 1;
	transform: scale(1);
}

/* Item info (title / caption) */
.matcha-gallery__info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 14px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
	color: #fff;
	transform: translateY(4px);
	opacity: 0;
	transition: all var(--matcha-transition);
}

.matcha-gallery__item-inner:hover .matcha-gallery__info {
	transform: translateY(0);
	opacity: 1;
}

.matcha-gallery__title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.matcha-gallery__caption {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.9;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Filter Animation States & Staggered Load More
   ========================================================================== */

.matcha-gallery__item--hidden {
	opacity: 0 !important;
	transform: scale(0.88) !important;
	pointer-events: none !important;
	position: absolute !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Grid: use display-based hiding for proper grid reflow */
.matcha-gallery--grid .matcha-gallery__item--hidden {
	position: absolute;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

/* Masonry: collapse height */
.matcha-gallery--masonry .matcha-gallery__item--hidden {
	position: absolute;
	width: 0;
	height: 0;
	margin: 0;
	overflow: hidden;
}

/* Entrance animation for staggered Load More & initial reveals */
.matcha-gallery__item--entering {
	opacity: 0 !important;
	transform: translateY(24px) scale(0.96) !important;
	transition: none !important;
}

/* ==========================================================================
   Lightbox (Cinematic Minimalist Design)
   ========================================================================== */

.matcha-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.matcha-lightbox.matcha-lightbox--open,
.matcha-lightbox.matcha-lightbox--active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Backdrop */
.matcha-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 15, 29, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	cursor: zoom-out;
}

/* Top Header Bar */
.matcha-lightbox__header {
	position: absolute;
	top: 24px;
	left: 28px;
	right: 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 10;
	pointer-events: none;
}

.matcha-lightbox__counter {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	letter-spacing: 0.5px;
	pointer-events: auto;
}

.matcha-lightbox__header-right {
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.matcha-lb-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	aspect-ratio: 1 / 1;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	padding: 0;
	box-sizing: border-box;
}

.matcha-lb-tool svg {
	display: block;
	stroke: #ffffff !important;
}

.matcha-lb-tool:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.45);
}

.matcha-lb-tool.matcha-lb-close:hover {
	background: rgba(239, 68, 68, 0.45);
	border-color: rgba(239, 68, 68, 0.6);
	color: #ffffff;
	transform: scale(1.06) rotate(90deg);
}

/* Nav Prev/Next Buttons (Sleek Frosted Glass Circles) */
.matcha-lightbox__nav {
	position: fixed !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.08) !important;
	backdrop-filter: blur(16px) !important;
	-webkit-backdrop-filter: blur(16px) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	z-index: 1000001 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
	opacity: 0.8 !important;
}

.matcha-lightbox__nav svg {
	width: 22px !important;
	height: 22px !important;
	stroke: #ffffff !important;
	display: block !important;
}

.matcha-lightbox__prev {
	left: 24px !important;
}

.matcha-lightbox__next {
	right: 24px !important;
}

.matcha-lightbox__nav:hover {
	opacity: 1 !important;
	background: rgba(255, 255, 255, 0.2) !important;
	transform: translateY(-50%) scale(1.08) !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Stage & Image Wrap (Immersive Stage with Safe Viewport Clearance) */
.matcha-lightbox__stage {
	position: fixed !important;
	top: 60px !important;
	bottom: 132px !important;
	left: 0 !important;
	right: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 5 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100vw !important;
	max-height: calc(100vh - 192px) !important;
}

.matcha-lightbox__image-wrap {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: zoom-in !important;
	pointer-events: auto !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

.matcha-lightbox__image-wrap.is-zoomed {
	cursor: zoom-out !important;
	overflow: auto !important;
}

.matcha-lightbox__image-wrap.is-zoomed .matcha-lightbox__img {
	position: static !important;
	transform: scale(1.6) !important;
	cursor: grab !important;
	margin: auto !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
}

.matcha-lightbox__img {
	position: absolute !important;
	inset: 0 !important;
	margin: auto !important;
	max-width: calc(100vw - 140px) !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	display: block !important;
	border-radius: 8px !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	box-shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.45) !important;
	will-change: opacity, transform !important;
	user-select: none !important;
	-webkit-user-drag: none !important;
}

.matcha-lightbox__img--exiting {
	position: absolute !important;
	inset: 0 !important;
	margin: auto !important;
	pointer-events: none !important;
	z-index: 1 !important;
}

.matcha-lightbox__img--incoming {
	position: absolute !important;
	inset: 0 !important;
	margin: auto !important;
	z-index: 2 !important;
}

/* Minimalist Caption (Positioned cleanly between photo and dock) */
.matcha-lightbox__caption-bar {
	position: fixed !important;
	bottom: 74px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	max-width: 640px !important;
	width: 88% !important;
	text-align: center !important;
	z-index: 1000000 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 16px !important;
	transition: opacity 0.2s ease !important;
	will-change: opacity !important;
}

.matcha-lightbox__title {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #f8fafc !important;
	letter-spacing: 0.2px !important;
	margin: 0 !important;
	line-height: 1.3 !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.matcha-lightbox__caption {
	font-size: 12px !important;
	color: #94a3b8 !important;
	margin: 2px 0 0 !important;
	line-height: 1.35 !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.matcha-lightbox__shop {
	margin-top: 8px !important;
	display: none;
}

.matcha-lb-shop-btn {
	pointer-events: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	background: rgba(22, 101, 52, 0.94) !important;
	border: 1px solid rgba(74, 222, 128, 0.35) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	padding: 6px 16px !important;
	border-radius: 100px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(34, 197, 94, 0.25) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	cursor: pointer !important;
}

.matcha-lb-shop-btn:hover {
	background: #15803d !important;
	border-color: rgba(74, 222, 128, 0.7) !important;
	transform: translateY(-1px) scale(1.04) !important;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 197, 94, 0.4) !important;
	color: #ffffff !important;
}

.matcha-lb-shop-price {
	background: rgba(255, 255, 255, 0.22) !important;
	padding: 1px 7px !important;
	border-radius: 999px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.2px !important;
}

/* Bottom Filmstrip (Sleek Floating Frosted Glass Dock) */
.matcha-lightbox__filmstrip {
	position: fixed !important;
	bottom: 14px !important;
	left: 0 !important;
	right: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 16px !important;
	z-index: 1000000 !important;
	background: transparent !important;
	pointer-events: none !important;
	margin: 0 !important;
}

.matcha-lightbox__thumbnails {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 6px 8px !important;
	background: rgba(15, 23, 42, 0.7) !important;
	backdrop-filter: blur(20px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
	max-width: min(88vw, 720px) !important;
	overflow-x: auto !important;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
	pointer-events: auto !important;
}

.matcha-lightbox__thumbnails::-webkit-scrollbar {
	display: none !important;
}

.matcha-lb-thumb {
	width: 50px !important;
	height: 35px !important;
	min-width: 50px !important;
	min-height: 35px !important;
	border-radius: 7px !important;
	overflow: hidden !important;
	border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
	opacity: 0.45 !important;
	padding: 0 !important;
	background: #0b0f19 !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
	transform: scale(0.96) !important;
}

.matcha-lb-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.25s ease !important;
}

.matcha-lb-thumb:hover {
	opacity: 0.85 !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	transform: scale(1.04) !important;
}

.matcha-lb-thumb:hover img {
	transform: scale(1.08) !important;
}

.matcha-lb-thumb.is-active {
	opacity: 1 !important;
	border-color: #ffffff !important;
	box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
	transform: scale(1.08) !important;
}

@media (max-width: 768px) {
	.matcha-lightbox__header {
		top: 14px;
		left: 14px;
		right: 14px;
	}
	.matcha-lightbox__nav {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		min-height: 38px !important;
	}
	.matcha-lightbox__nav svg {
		width: 18px !important;
		height: 18px !important;
	}
	.matcha-lightbox__prev { left: 8px !important; }
	.matcha-lightbox__next { right: 8px !important; }
	.matcha-lightbox__stage {
		top: 50px !important;
		bottom: 114px !important;
		max-height: calc(100vh - 164px) !important;
	}
	.matcha-lightbox__img {
		max-width: calc(100vw - 20px) !important;
		max-height: 100% !important;
	}
	.matcha-lightbox__caption-bar {
		bottom: 58px !important;
		width: 94% !important;
		padding: 0 10px !important;
	}
	.matcha-lightbox__filmstrip {
		bottom: 10px !important;
	}
	.matcha-lightbox__thumbnails {
		gap: 6px !important;
		padding: 4px 6px !important;
		border-radius: 10px !important;
	}
	.matcha-lb-thumb {
		width: 42px !important;
		height: 30px !important;
		min-width: 42px !important;
		min-height: 30px !important;
		border-radius: 5px !important;
	}
}

/* ==========================================================================
   Responsive (Tablet <= 1024px & Mobile <= 767px)
   ========================================================================== */

@media ( max-width: 1024px ) {
	.matcha-gallery {
		--matcha-columns: var(--matcha-columns-tablet, 2) !important;
	}

	.matcha-gallery--grid .matcha-gallery__grid,
	.matcha-gallery--bento .matcha-gallery__grid,
	.matcha-gallery--mosaic .matcha-gallery__grid,
	.matcha-gallery--pinwheel .matcha-gallery__grid {
		grid-template-columns: repeat(var(--matcha-columns-tablet, 2), 1fr) !important;
	}

	.matcha-gallery--masonry .matcha-gallery__grid {
		column-count: var(--matcha-columns-tablet, 2) !important;
	}

	.matcha-gallery--mosaic .matcha-gallery__item--span-2x1,
	.matcha-gallery--mosaic .matcha-gallery__item--span-2x2,
	.matcha-gallery--pinwheel .matcha-gallery__item--span-2x1,
	.matcha-gallery--pinwheel .matcha-gallery__item--span-2x2 {
		grid-column: span min(2, var(--matcha-columns-tablet, 2)) !important;
	}
}

@media ( max-width: 767px ) {
	.matcha-gallery {
		--matcha-columns: var(--matcha-columns-mobile, 1) !important;
	}

	.matcha-gallery--grid .matcha-gallery__grid,
	.matcha-gallery--bento .matcha-gallery__grid,
	.matcha-gallery--mosaic .matcha-gallery__grid,
	.matcha-gallery--pinwheel .matcha-gallery__grid {
		grid-template-columns: repeat(var(--matcha-columns-mobile, 1), 1fr) !important;
	}

	.matcha-gallery--masonry .matcha-gallery__grid {
		column-count: var(--matcha-columns-mobile, 1) !important;
	}

	.matcha-gallery--mosaic .matcha-gallery__item--span-2x1,
	.matcha-gallery--mosaic .matcha-gallery__item--span-2x2,
	.matcha-gallery--pinwheel .matcha-gallery__item--span-2x1,
	.matcha-gallery--pinwheel .matcha-gallery__item--span-2x2 {
		grid-column: span min(2, var(--matcha-columns-mobile, 1)) !important;
	}

	.matcha-gallery--justified .matcha-gallery__item {
		height: min(var(--matcha-row-height, 240px), 180px);
	}

	.matcha-gallery__filters {
		gap: 6px;
		margin-bottom: 16px;
	}

	.matcha-filter {
		padding: 6px 14px;
		font-size: 12px;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media ( prefers-reduced-motion: reduce ) {
	.matcha-gallery__item,
	.matcha-gallery__item-inner,
	.matcha-gallery__item img,
	.matcha-gallery__overlay,
	.matcha-gallery__zoom-icon,
	.matcha-gallery__info,
	.matcha-filter,
	.matcha-lightbox,
	.matcha-lightbox__content {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.matcha-gallery__item-inner:hover {
		transform: none;
	}

	.matcha-gallery__item-inner:hover img {
		transform: none;
	}
}

/* ==========================================================================
   Accessibility: Focus
   ========================================================================== */

.matcha-gallery__item:focus-visible .matcha-gallery__item-inner {
	outline: 3px solid var(--matcha-primary);
	outline-offset: 3px;
}

/* ==========================================================================
   Anti-Stacking, Zero-CLS & Progressive Loading Engine
   ========================================================================== */

.matcha-gallery__item {
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.matcha-gallery__item.is-paginated-hidden {
	display: none !important;
	opacity: 0;
	transform: scale(0.96);
}

.matcha-gallery__item-inner {
	background: #1e2430;
	position: relative;
	overflow: hidden;
}

.matcha-gallery__item img {
	opacity: 1;
	transition: opacity 0.35s ease;
}

/* ==========================================================================
   Pagination & Load More Buttons
   ========================================================================== */

.matcha-gallery__load-more-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 32px;
	width: 100%;
}

.matcha-gallery__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.matcha-page-btn {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #1e293b;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	min-width: 38px;
	text-align: center;
}

.matcha-page-btn:hover {
	border-color: var(--matcha-accent, #607d66);
	color: var(--matcha-accent, #607d66);
}

.matcha-page-btn.is-active {
	background: var(--matcha-accent, #607d66);
	border-color: var(--matcha-accent, #607d66);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Curated Art Wall Layout & Exhibition Studio (Free & Pro 2026)
   ========================================================================== */
.matcha-gallery--art-wall {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.matcha-gallery--art-wall .matcha-gallery__grid {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 36px;
	min-height: 580px;
	padding: 56px 24px 64px;
	background: radial-gradient(circle at 50% 35%, #232c26 0%, #141916 65%, #0d110f 100%);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.65), 0 20px 40px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	overflow: visible;
}

/* Wall Backdrops & Museum Textures (Free & Pro 2026) */
.matcha-gallery--art-wall.matcha-gallery--backdrop-white .matcha-gallery__grid,
.matcha-gallery--art-wall.wall-gallery-white .matcha-gallery__grid,
.matcha-gallery--art-wall.matcha-wall-texture--gallery-white .matcha-gallery__grid,
.matcha-gallery__grid.wall-gallery-white {
	background: radial-gradient(circle at 50% 35%, #f4f1ea 0%, #ded9ce 70%, #d5cec2 100%) !important;
	border-color: #c9c2b4 !important;
	box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.matcha-gallery--art-wall.matcha-gallery--backdrop-cream .matcha-gallery__grid,
.matcha-gallery--art-wall.wall-warm-linen .matcha-gallery__grid,
.matcha-gallery--art-wall.matcha-wall-texture--warm-linen .matcha-gallery__grid,
.matcha-gallery__grid.wall-warm-linen {
	background: radial-gradient(circle at 50% 35%, #2d241f 0%, #1c1613 70%, #140f0c 100%) !important;
	border-color: rgba(255, 255, 255, 0.1) !important;
	box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.7) !important;
}

.matcha-gallery--art-wall.matcha-gallery--backdrop-sage .matcha-gallery__grid,
.matcha-gallery--art-wall.wall-sage-green .matcha-gallery__grid,
.matcha-gallery--art-wall.matcha-wall-texture--sage-green .matcha-gallery__grid,
.matcha-gallery__grid.wall-sage-green {
	background: radial-gradient(circle at 50% 35%, #1d2c22 0%, #111b15 70%, #0a110d 100%) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.65) !important;
}

.matcha-gallery--art-wall.matcha-gallery--backdrop-charcoal .matcha-gallery__grid,
.matcha-gallery--art-wall.wall-charcoal .matcha-gallery__grid,
.matcha-gallery--art-wall.matcha-wall-texture--charcoal .matcha-gallery__grid,
.matcha-gallery__grid.wall-charcoal {
	background: radial-gradient(circle at 50% 35%, #232c26 0%, #141916 65%, #0d110f 100%) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.75) !important;
}

.matcha-gallery--art-wall.matcha-gallery--backdrop-transparent .matcha-gallery__grid {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* 57" Museum Eye-Level Line */
.matcha-gallery--art-wall .matcha-gallery__grid::before {
	content: '';
	position: absolute;
	left: 24px;
	right: 24px;
	top: 50%;
	height: 1px;
	border-top: 1px dashed rgba(255, 255, 255, 0.14);
	pointer-events: none;
	z-index: 1;
}
.matcha-gallery--art-wall.matcha-gallery--backdrop-white .matcha-gallery__grid::before,
.matcha-gallery--art-wall.wall-gallery-white .matcha-gallery__grid::before,
.matcha-gallery--art-wall.wall-gallery-white .art-wall-guide-line,
.matcha-gallery--art-wall.matcha-gallery--backdrop-white .art-wall-guide-line {
	border-top-color: rgba(0, 0, 0, 0.22) !important;
}
.matcha-gallery--art-wall.matcha-gallery--backdrop-cream .matcha-gallery__grid::before,
.matcha-gallery--art-wall.matcha-gallery--backdrop-sage .matcha-gallery__grid::before {
	border-top-color: rgba(255, 255, 255, 0.16);
}

/* Art Wall Surplus Items (Exhibition Overflow) */
.matcha-gallery--art-wall .matcha-gallery__item--surplus {
	display: none !important;
}

/* Art Wall Frames */
.matcha-gallery--art-wall .matcha-gallery__item--wall-frame {
	position: relative;
	flex: 0 0 290px;
	width: 290px;
	height: 390px;
	cursor: pointer;
	border-radius: 2px !important;
	box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85), 0 8px 18px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
	z-index: 2;
	box-sizing: border-box;
	margin: 0;
}
.matcha-gallery--art-wall .matcha-gallery__item--wall-frame:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 34px 68px -12px rgba(0, 0, 0, 0.95), 0 14px 26px rgba(0, 0, 0, 0.6);
	z-index: 5;
}

/* Centerpiece Hero Frame in Triptych */
.matcha-gallery--art-wall .matcha-gallery__item--hero-frame {
	flex: 0 0 340px;
	width: 340px;
	height: 460px;
	z-index: 3;
}
.matcha-gallery--art-wall .matcha-gallery__item--hero-frame:hover {
	transform: translateY(-8px) scale(1.03);
}

/* Passe-Partout Museum Matting */
.matcha-gallery--art-wall .matcha-gallery__item--wall-frame .matcha-gallery__item-inner {
	width: 100%;
	height: 100%;
	padding: 14px !important;
	background: #faf8f5 !important;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25) !important;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
}

.matcha-gallery--art-wall .matcha-gallery__item--wall-frame img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 0 !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
	display: block;
}

/* Frame Moldings */
/* 1. Classic Matte Black (Free & Pro) */
.matcha-gallery--art-wall .matcha-wall-mold--mold-black,
.matcha-gallery--art-wall.matcha-wall-molding--mold-black .matcha-gallery__item--wall-frame {
	border: 11px solid #101412 !important;
	box-shadow: 0 26px 56px -12px rgba(0, 0, 0, 0.88), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* 2. Natural Oak (Pro) */
.matcha-gallery--art-wall .matcha-wall-mold--mold-oak,
.matcha-gallery--art-wall.matcha-wall-molding--mold-oak .matcha-gallery__item--wall-frame {
	border: 11px solid #9e744a !important;
	box-shadow: 0 26px 56px -12px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(0, 0, 0, 0.35) !important;
}

/* 3. Nordic White (Pro) */
.matcha-gallery--art-wall .matcha-wall-mold--mold-white,
.matcha-gallery--art-wall.matcha-wall-molding--mold-white .matcha-gallery__item--wall-frame {
	border: 11px solid #f8fafc !important;
	box-shadow: 0 26px 56px -12px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(0, 0, 0, 0.12) !important;
}

/* 4. Gold Brass (Pro) */
.matcha-gallery--art-wall .matcha-wall-mold--mold-brass,
.matcha-gallery--art-wall.matcha-wall-molding--mold-brass .matcha-gallery__item--wall-frame {
	border: 9px solid #d4af37 !important;
	box-shadow: 0 26px 56px -12px rgba(0, 0, 0, 0.85), inset 0 0 0 1px #b89728, 0 0 20px rgba(212, 175, 55, 0.22) !important;
}

/* 5. Floating Glass (Pro) */
.matcha-gallery--art-wall .matcha-wall-mold--mold-float,
.matcha-gallery--art-wall.matcha-wall-molding--mold-float .matcha-gallery__item--wall-frame {
	border: 1px solid rgba(255, 255, 255, 0.6) !important;
	box-shadow: 0 28px 65px -10px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}
.matcha-gallery--art-wall .matcha-wall-mold--mold-float .matcha-gallery__item-inner {
	background: rgba(255, 255, 255, 0.45) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
}

/* Frame Dimension Badge */
.matcha-wall-dim-badge {
	position: absolute;
	bottom: -28px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(13, 17, 15, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #94a399;
	font-size: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	padding: 2px 8px;
	border-radius: 4px;
	white-space: nowrap;
	pointer-events: none;
	letter-spacing: 0.04em;
	z-index: 4;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.matcha-gallery--art-wall.matcha-gallery--backdrop-white .matcha-wall-dim-badge,
.matcha-gallery--art-wall.wall-gallery-white .matcha-wall-dim-badge,
.matcha-gallery--art-wall.matcha-wall-texture--gallery-white .matcha-wall-dim-badge,
.matcha-gallery--art-wall.wall-gallery-white .frame-dim-badge,
.matcha-gallery--art-wall.matcha-gallery--backdrop-white .frame-dim-badge,
.matcha-gallery--art-wall.matcha-gallery--backdrop-cream .matcha-wall-dim-badge,
.matcha-gallery--art-wall.matcha-gallery--backdrop-sage .matcha-wall-dim-badge {
	background: rgba(245, 242, 235, 0.96) !important;
	border-color: rgba(0, 0, 0, 0.15) !important;
	color: #374151 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Surplus Exhibition Works Bar */
.matcha-wall-surplus-bar {
	display: flex;
	justify-content: center;
	margin-top: 24px;
	width: 100%;
}
.matcha-wall-surplus-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #141916;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #e6ede8;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.matcha-wall-surplus-btn:hover {
	background: var(--matcha-accent, #607d66);
	border-color: var(--matcha-accent, #607d66);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.matcha-gallery--art-wall.matcha-gallery--backdrop-white .matcha-wall-surplus-btn,
.matcha-gallery--art-wall.matcha-gallery--backdrop-cream .matcha-wall-surplus-btn,
.matcha-gallery--art-wall.matcha-gallery--backdrop-sage .matcha-wall-surplus-btn {
	background: #ffffff;
	border-color: rgba(0, 0, 0, 0.14);
	color: #1e293b;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.matcha-gallery--art-wall.matcha-gallery--backdrop-white .matcha-wall-surplus-btn:hover,
.matcha-gallery--art-wall.matcha-gallery--backdrop-cream .matcha-wall-surplus-btn:hover,
.matcha-gallery--art-wall.matcha-gallery--backdrop-sage .matcha-wall-surplus-btn:hover {
	background: var(--matcha-accent, #607d66);
	border-color: var(--matcha-accent, #607d66);
	color: #ffffff;
}

/* Pro Custom Stage (Coordinate Freeform) */
.matcha-gallery--art-wall.matcha-wall-custom-stage .matcha-gallery__grid {
	display: block;
	min-height: 860px;
	position: relative;
}
.matcha-gallery--art-wall.matcha-wall-custom-stage .matcha-gallery__item--wall-frame {
	position: absolute;
	flex: none;
	margin: 0;
}

/* Responsive Mobile Collapse: Vertical Exhibition Stack (< 768px) */
@media (max-width: 768px) {
	.matcha-gallery--art-wall .matcha-gallery__grid {
		flex-direction: column !important;
		align-items: center !important;
		gap: 40px !important;
		min-height: auto !important;
		padding: 36px 16px 48px !important;
		display: flex !important;
	}
	.matcha-gallery--art-wall .matcha-gallery__grid::before {
		display: none !important;
	}
	.matcha-gallery--art-wall .matcha-gallery__item--wall-frame,
	.matcha-gallery--art-wall .matcha-gallery__item--hero-frame,
	.matcha-gallery--art-wall.matcha-wall-custom-stage .matcha-gallery__item--wall-frame {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 320px !important;
		height: auto !important;
		aspect-ratio: 3 / 4 !important;
		margin: 0 auto !important;
	}
	.matcha-gallery--art-wall .matcha-wall-dim-badge {
		position: static !important;
		transform: none !important;
		margin: 8px auto 0 !important;
		display: table !important;
	}
}

/* ==========================================================================
   LOOKBOOK DUET (2026 EDITORIAL MAGAZINE STAGGER - FREE CORE)
   ========================================================================== */
.matcha-gallery--lookbook-duet .matcha-gallery__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	column-gap: var(--matcha-gutter, 28px) !important;
	row-gap: calc(var(--matcha-gutter, 28px) + 36px) !important;
	align-items: start !important;
	padding-bottom: 40px;
}

/* Stagger every 2nd column item in 3-column rows by 48px */
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(3n + 2) {
	margin-top: 48px !important;
	transform: translateY(0);
	transition: margin-top 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dynamic editorial aspect ratios */
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 1) .matcha-gallery__item-inner,
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 1) .matcha-gallery__media-wrap { aspect-ratio: 3 / 4 !important; }
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 2) .matcha-gallery__item-inner,
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 2) .matcha-gallery__media-wrap { aspect-ratio: 1 / 1 !important; }
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 3) .matcha-gallery__item-inner,
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 3) .matcha-gallery__media-wrap { aspect-ratio: 4 / 5 !important; }
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 4) .matcha-gallery__item-inner,
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 4) .matcha-gallery__media-wrap { aspect-ratio: 1 / 1 !important; }
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 5) .matcha-gallery__item-inner,
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 5) .matcha-gallery__media-wrap { aspect-ratio: 3 / 4 !important; }
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 6) .matcha-gallery__item-inner,
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n + 6) .matcha-gallery__media-wrap { aspect-ratio: 4 / 5 !important; }

.matcha-gallery--lookbook-duet .matcha-gallery__item-inner img,
.matcha-gallery--lookbook-duet .matcha-gallery__media-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: var(--matcha-radius, 8px);
}

/* Responsive Lookbook Duet: Tablet 2 columns (< 880px) */
@media (max-width: 880px) {
	.matcha-gallery--lookbook-duet .matcha-gallery__grid {
		grid-template-columns: repeat(2, 1fr) !important;
		row-gap: calc(var(--matcha-gutter, 20px) + 24px) !important;
	}
	.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(3n + 2) {
		margin-top: 0 !important;
	}
	.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(2n) {
		margin-top: 32px !important;
	}
}

/* Mobile 1 column (< 540px) */
@media (max-width: 540px) {
	.matcha-gallery--lookbook-duet .matcha-gallery__grid {
		grid-template-columns: 1fr !important;
		row-gap: var(--matcha-gutter, 20px) !important;
	}
	.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(2n),
	.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(3n + 2) {
		margin-top: 0 !important;
	}
}

/* ==========================================================================
   CINEMA REEL (HORIZONTAL RUNWAY STRIP - 16:9 WIDESCREEN - PRO ADDON)
   ========================================================================== */
.matcha-gallery--cinema-reel .matcha-gallery__grid {
	display: flex !important;
	flex-direction: row !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory !important;
	gap: var(--matcha-gutter, 24px) !important;
	padding: 12px 6px 28px !important;
	-webkit-overflow-scrolling: touch !important;
	scroll-behavior: smooth;
}

/* Custom luxury scrollbar for Cinema Reel */
.matcha-gallery--cinema-reel .matcha-gallery__grid::-webkit-scrollbar {
	height: 7px;
}
.matcha-gallery--cinema-reel .matcha-gallery__grid::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
}
.matcha-gallery--theme-dark.matcha-gallery--cinema-reel .matcha-gallery__grid::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.06);
}
.matcha-gallery--cinema-reel .matcha-gallery__grid::-webkit-scrollbar-thumb {
	background: var(--matcha-accent, #607d66);
	border-radius: 999px;
}

.matcha-gallery--cinema-reel .matcha-gallery__item {
	flex: 0 0 460px !important;
	max-width: 460px !important;
	min-width: 460px !important;
	aspect-ratio: 16 / 9 !important;
	scroll-snap-align: start !important;
	scroll-snap-stop: normal;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	border-radius: var(--matcha-radius, 10px);
	overflow: hidden;
	position: relative;
	transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease;
}

.matcha-gallery--cinema-reel .matcha-gallery__item-inner,
.matcha-gallery--cinema-reel .matcha-gallery__media-wrap {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9 !important;
}

.matcha-gallery--cinema-reel .matcha-gallery__item-inner img,
.matcha-gallery--cinema-reel .matcha-gallery__media-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}

/* Responsive Mobile Cinema Reel (< 640px) */
@media (max-width: 640px) {
	.matcha-gallery--cinema-reel .matcha-gallery__item {
		flex: 0 0 82vw !important;
		max-width: 82vw !important;
		min-width: 82vw !important;
	}
}

/* ==========================================================================
   CURATOR SPECIMEN ARCHIVE (SWISS MUSEUM STYLE - 2 COLUMN - PRO ADDON)
   ========================================================================== */
.matcha-gallery--curator-specimen .matcha-gallery__grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 40px !important;
	padding: 10px 0 30px !important;
}

.matcha-gallery--curator-specimen .matcha-gallery__item {
	background: #111613;
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 22px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
	border-radius: var(--matcha-radius, 8px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.matcha-gallery--curator-specimen .matcha-gallery__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
	border-color: rgba(94, 194, 127, 0.3);
}

.matcha-gallery--curator-specimen .matcha-gallery__item-inner,
.matcha-gallery--curator-specimen .matcha-gallery__media-wrap {
	width: 100%;
	aspect-ratio: 4 / 3 !important;
	border-radius: 4px;
	overflow: hidden;
	background: #000;
	border: none !important;
	box-shadow: none !important;
}

.matcha-gallery--curator-specimen .matcha-gallery__item-inner img,
.matcha-gallery--curator-specimen .matcha-gallery__media-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}

/* Responsive Curator Specimen (< 768px) */
@media (max-width: 768px) {
	.matcha-gallery--curator-specimen .matcha-gallery__grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
	.matcha-gallery--curator-specimen .matcha-gallery__item {
		padding: 16px;
	}
}

/* ==========================================================================
   2026 FINALIZED SKINS, BADGES, ACTION DOCK & LAYOUT ENGINE (MOCKUP PARITY)
   ========================================================================== */

/* --- Specular Glare (3D Spatial Holographic Tilt PRO) --- */
.item-specular-glare {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	z-index: 12;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	background: radial-gradient(circle 380px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 35%, transparent 75%);
}
.spatial-3d-active .gallery-item:hover .item-specular-glare,
.spatial-3d-active .matcha-gallery__item:hover .item-specular-glare {
	opacity: 1;
}

.spatial-3d-active .matcha-gallery__grid {
	perspective: 1400px;
}

.spatial-3d-active .gallery-item,
.spatial-3d-active .matcha-gallery__item {
	transform-style: preserve-3d;
	will-change: transform, box-shadow;
}

/* Base Gallery Item & Media Container */
.gallery-item,
.matcha-gallery__item {
	position: relative;
	border-radius: var(--matcha-radius, 10px);
	overflow: hidden;
	background: #111613 !important;
	isolation: isolate;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.item-media-wrap {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	border-radius: inherit;
	background: #111613 !important;
	isolation: isolate;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translateZ(0);
}
.item-img,
.matcha-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translateZ(0);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

/* --- PASSIVE CORNER BADGES (VIDEO & FAVORITE HEART) --- */
.item-badge-video {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 10;
	background: rgba(13, 17, 15, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 20px;
	padding: 3px 8px 3px 6px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
	font-weight: 700;
	color: #ffffff;
	font-family: monospace;
	letter-spacing: 0.02em;
	pointer-events: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.item-badge-video svg {
	color: var(--matcha-accent, #607d66);
	fill: var(--matcha-accent, #607d66);
}

.item-badge-heart {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(18, 23, 20, 0.78);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.88);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
	padding: 0;
}
.item-badge-heart:hover {
	color: #ef4444;
	background: #ffffff;
	border-color: #ffffff;
	transform: scale(1.1);
}
.item-badge-heart.active {
	color: #ef4444;
	background: #ffffff;
	border-color: #ffffff;
	animation: matchaHeartPop 0.35s ease;
}
.item-badge-heart.active svg {
	fill: #ef4444;
}
@keyframes matchaHeartPop {
	0% { transform: scale(1); }
	50% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

/* --- FLOATING ACTION ICONS (HOVER: CENTER VIEWFINDER) --- */
.item-action-dock {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.92);
	z-index: 15;
	background: transparent !important;
	border: none !important;
	border-radius: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	pointer-events: none;
}
.gallery-item:hover .item-action-dock,
.matcha-gallery__item:hover .item-action-dock {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}
.dock-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.24);
	color: rgba(255, 255, 255, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	padding: 0;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.dock-btn:hover {
	background: #ffffff;
	color: #0f172a;
	border-color: #ffffff;
	transform: scale(1.12);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.dock-btn.btn-shop {
	width: auto;
	border-radius: 20px;
	padding: 0 14px;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: #ffffff;
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.24);
}
.dock-btn.btn-shop:hover {
	background: var(--matcha-accent, #5ec27f);
	color: #ffffff;
	border-color: var(--matcha-accent, #5ec27f);
	transform: scale(1.06);
}

/* ==========================================================================
   SKIN 1: PURE MINIMALIST
   ========================================================================== */
.skin-pure-minimalist .gallery-item,
.skin-pure-minimalist .matcha-gallery__item {
	background: #111613 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	border-radius: var(--matcha-radius, 10px);
}
.skin-pure-minimalist .gallery-item:hover,
.skin-pure-minimalist .matcha-gallery__item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
/* In Justified Rows: keep flush with baseline, no translateY lift that exposes canvas */
.layout-justified-rows.skin-pure-minimalist .gallery-item:hover,
.layout-justified-rows.skin-pure-minimalist .matcha-gallery__item:hover,
.matcha-gallery--justified.skin-pure-minimalist .gallery-item:hover,
.matcha-gallery--justified.skin-pure-minimalist .matcha-gallery__item:hover,
.layout-justified-rows .gallery-item:hover,
.layout-justified-rows .matcha-gallery__item:hover,
.matcha-gallery--justified .gallery-item:hover,
.matcha-gallery--justified .matcha-gallery__item:hover {
	transform: none !important;
}
.skin-pure-minimalist .gallery-item:hover .item-img,
.skin-pure-minimalist .matcha-gallery__item:hover img {
	transform: scale(1.04);
	filter: contrast(1.05) brightness(0.85);
}
.skin-pure-minimalist .item-card-body {
	display: none !important;
}
.skin-pure-minimalist .item-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 16px;
	pointer-events: none;
	z-index: 5;
}
.skin-pure-minimalist .gallery-item:hover .item-overlay,
.skin-pure-minimalist .matcha-gallery__item:hover .item-overlay {
	opacity: 1;
}
.skin-pure-minimalist .overlay-title {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 2px;
	line-height: 1.25;
}
.skin-pure-minimalist .overlay-meta {
	font-size: 11px;
	color: var(--matcha-accent, #607d66);
	font-family: monospace;
	letter-spacing: 0.05em;
}
.skin-pure-minimalist .aura-palette-bar {
	display: none;
}

/* ==========================================================================
   SKIN 2: EDITORIAL CARD
   ========================================================================== */
.skin-editorial .gallery-item,
.skin-editorial .matcha-gallery__item {
	display: flex !important;
	flex-direction: column !important;
	background: #ffffff;
	border-radius: var(--matcha-radius, 12px);
	box-shadow: var(--matcha-shadow, 0 4px 14px rgba(0, 0, 0, 0.07));
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.skin-editorial .gallery-item:hover,
.skin-editorial .matcha-gallery__item:hover {
	transform: translateY(-4px);
	box-shadow: var(--matcha-shadow-hover, 0 10px 24px rgba(0, 0, 0, 0.11));
}
.skin-editorial .matcha-gallery__item-inner {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	height: auto !important;
	min-height: 100% !important;
	aspect-ratio: auto !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.skin-editorial .item-media-wrap {
	height: 200px !important;
	aspect-ratio: 16 / 10 !important;
	flex-shrink: 0 !important;
	border-radius: var(--matcha-radius, 12px) var(--matcha-radius, 12px) 0 0;
	position: relative;
	overflow: hidden;
}
.skin-editorial.layout-pinterest-masonry .item-media-wrap,
.skin-editorial.matcha-gallery--masonry .item-media-wrap,
.skin-editorial.layout-lookbook-duet .item-media-wrap,
.skin-editorial.matcha-gallery--lookbook-duet .item-media-wrap {
	height: auto;
}
.matcha-gallery:not([class*="matcha-gallery--hover-"]).skin-editorial .gallery-item:hover .item-img,
.matcha-gallery:not([class*="matcha-gallery--hover-"]).skin-editorial .matcha-gallery__item:hover img {
	transform: scale(1.03);
}
.skin-editorial:not(.matcha-gallery--hover-curtain):not(.matcha-gallery--hover-drawer) .item-overlay,
.skin-editorial .item-action-dock {
	display: none !important;
}
.skin-editorial .item-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #ffffff;
	color: #1e293b;
	flex-grow: 1;
}
.card-category-pill {
	align-self: flex-start;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 2px 7px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--matcha-accent, #607d66) 12%, transparent);
	color: var(--matcha-accent, #607d66);
}
.card-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
	margin: 0;
}
.card-caption {
	font-size: 12px;
	color: #64748b;
	line-height: 1.35;
	margin: 0;
}
.card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
}
.card-price {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	font-family: monospace;
}
.card-actions-group {
	display: flex;
	align-items: center;
	gap: 6px;
}
.card-icon-btn {
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s;
	padding: 0;
	text-decoration: none;
}
.card-icon-btn:hover {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}
.card-shop-btn {
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--matcha-accent, #607d66);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.15s;
	text-decoration: none;
}
.card-shop-btn:hover {
	background: color-mix(in srgb, var(--matcha-accent, #607d66) 85%, #000000);
	color: #ffffff;
}

/* Editorial Dark Theme variant */
.matcha-card-theme--dark.skin-editorial .gallery-item,
.matcha-card-theme--dark.skin-editorial .matcha-gallery__item,
.skin-editorial.matcha-card-theme--dark .gallery-item,
.skin-editorial.matcha-card-theme--dark .matcha-gallery__item {
	background: #1c231f !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
}
.matcha-card-theme--dark.skin-editorial .item-card-body,
.skin-editorial.matcha-card-theme--dark .item-card-body {
	background: #1c231f !important;
	color: #e6ede8 !important;
}
.matcha-card-theme--dark.skin-editorial .card-title,
.skin-editorial.matcha-card-theme--dark .card-title {
	color: #ffffff !important;
}
.matcha-card-theme--dark.skin-editorial .card-caption,
.skin-editorial.matcha-card-theme--dark .card-caption {
	color: #94a399 !important;
}
.matcha-card-theme--dark.skin-editorial .card-price,
.skin-editorial.matcha-card-theme--dark .card-price {
	color: var(--matcha-accent, #607d66) !important;
}
.matcha-card-theme--dark.skin-editorial .card-footer,
.skin-editorial.matcha-card-theme--dark .card-footer {
	border-top-color: rgba(255, 255, 255, 0.08) !important;
}
.matcha-card-theme--dark.skin-editorial .card-icon-btn,
.skin-editorial.matcha-card-theme--dark .card-icon-btn {
	background: #141916 !important;
	border-color: rgba(255, 255, 255, 0.15) !important;
	color: #a3b3a8 !important;
}
.matcha-card-theme--dark.skin-editorial .card-icon-btn:hover,
.skin-editorial.matcha-card-theme--dark .card-icon-btn:hover {
	background: #ffffff !important;
	color: #000000 !important;
}

/* ==========================================================================
   SKIN 3: EXHIBITION HAIRLINE
   ========================================================================== */
.skin-exhibition .gallery-item,
.skin-exhibition .matcha-gallery__item {
	background: transparent !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.matcha-gallery--frame-none.skin-exhibition .matcha-gallery__item-inner,
.matcha-gallery--frame-none .skin-exhibition .matcha-gallery__item-inner {
	background: #111613;
	padding: var(--matcha-matting, 12px);
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
	border: none !important;
}
.skin-exhibition .item-card-body {
	display: none !important;
}
.skin-exhibition .item-media-wrap {
	border-radius: 2px;
	position: relative;
	overflow: hidden;
}
.skin-exhibition .item-media-wrap::after {
	content: '';
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 1px;
	opacity: 0;
	transform: scale(0.97);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
	z-index: 8;
}
.skin-exhibition .gallery-item:hover .item-media-wrap::after,
.skin-exhibition .matcha-gallery__item:hover .item-media-wrap::after {
	opacity: 1;
	transform: scale(1);
	border-color: var(--matcha-hover-frame-color, var(--matcha-accent, #607d66));
}
.skin-exhibition .gallery-item:hover .item-img,
.skin-exhibition .matcha-gallery__item:hover img {
	transform: scale(1.02);
}
.skin-exhibition .item-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: rgba(13, 17, 15, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
	text-align: center;
	padding: 20px;
	z-index: 6;
}
.skin-exhibition .gallery-item:hover .item-overlay,
.skin-exhibition .matcha-gallery__item:hover .item-overlay {
	opacity: 1;
}
.skin-exhibition .exhibition-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
}
.skin-exhibition .exhibition-specimen {
	font-size: 10px;
	font-family: monospace;
	color: var(--matcha-accent, #607d66);
	margin-top: 4px;
	margin-bottom: 12px;
}
.skin-exhibition .aura-palette-bar {
	display: none;
}

/* ==========================================================================
   SKIN 4: AI ATMOSPHERIC AURA
   ========================================================================== */
.skin-aura .gallery-item,
.skin-aura .matcha-gallery__item {
	border-radius: var(--matcha-radius, 14px);
	position: relative;
	box-shadow: 0 8px var(--matcha-aura-bloom, 32px) var(--ambient-glow, var(--matcha-accent, #607d66)), 0 2px 10px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.15);
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.skin-aura .item-card-body {
	display: none !important;
}
.skin-aura .gallery-item:hover,
.skin-aura .matcha-gallery__item:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 16px calc(var(--matcha-aura-bloom, 32px) * 1.5) var(--ambient-glow, var(--matcha-accent, #607d66)), 0 6px 20px rgba(0, 0, 0, 0.22);
}
.skin-aura .matcha-gallery__item-inner {
	width: 100% !important;
	height: 100% !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.skin-aura .item-img,
.skin-aura .matcha-gallery__item img {
	transform-origin: var(--focal-x, 50%) var(--focal-y, 50%);
}
.skin-aura .gallery-item:hover .item-img,
.skin-aura .matcha-gallery__item:hover img {
	transform: scale(1.08);
}
.skin-aura .ai-focal-dot {
	position: absolute;
	left: var(--focal-x, 50%);
	top: var(--focal-y, 50%);
	width: 10px;
	height: 10px;
	margin-left: -5px;
	margin-top: -5px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	background: var(--matcha-accent, #607d66);
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
	z-index: 14;
}
.skin-aura .gallery-item:hover .ai-focal-dot,
.skin-aura .matcha-gallery__item:hover .ai-focal-dot {
	opacity: 1;
}
.skin-aura .item-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 16px;
	padding-bottom: 50px;
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 6;
}
.skin-aura .gallery-item:hover .item-overlay,
.skin-aura .matcha-gallery__item:hover .item-overlay {
	opacity: 1;
}
.skin-aura .aura-palette-bar {
	display: flex;
	gap: 4px;
	margin-bottom: 6px;
}
.skin-aura .aura-palette-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   LAYOUT ENGINE - ASPECT RATIOS & BLUEPRINT STYLES
   ========================================================================== */

.matcha-gallery-container {
	display: block !important;
	width: 100% !important;
}

/* 1. Classic Grid */
.layout-classic-grid .matcha-gallery__grid,
.matcha-gallery--grid .matcha-gallery__grid,
.matcha-gallery__grid.layout-classic-grid,
.matcha-gallery-container.layout-classic-grid > .matcha-gallery__grid,
#galleryContainer.layout-classic-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--matcha-columns, 3), 1fr) !important;
	gap: var(--matcha-gutter, 22px) !important;
}
.layout-classic-grid .gallery-item,
.matcha-gallery--grid .matcha-gallery__item {
	aspect-ratio: 1 / 1;
}
.layout-classic-grid.skin-editorial .gallery-item,
.matcha-gallery--grid.skin-editorial .matcha-gallery__item {
	aspect-ratio: auto !important;
	height: 100% !important;
}
.layout-classic-grid.skin-editorial .item-media-wrap,
.matcha-gallery--grid.skin-editorial .item-media-wrap {
	aspect-ratio: 16 / 10 !important;
	height: 200px !important;
}

/* 2. Pinterest Masonry (Continuous Dynamic Columns) */
.layout-pinterest-masonry .matcha-gallery__grid,
.matcha-gallery--masonry .matcha-gallery__grid,
.matcha-gallery__grid.layout-pinterest-masonry,
.matcha-gallery-container.layout-pinterest-masonry > .matcha-gallery__grid,
#galleryContainer.layout-pinterest-masonry {
	display: block !important;
	column-count: var(--matcha-columns, 3) !important;
	column-gap: var(--matcha-gutter, 22px) !important;
	grid-template-columns: none !important;
	orphans: 1;
	widows: 1;
}

.layout-pinterest-masonry .gallery-item,
.layout-pinterest-masonry .matcha-gallery__item,
.matcha-gallery--masonry .gallery-item,
.matcha-gallery--masonry .matcha-gallery__item {
	display: inline-block !important;
	width: 100% !important;
	margin: 0 0 var(--matcha-gutter, 22px) 0 !important;
	padding: 0 !important;
	vertical-align: top !important;
	box-sizing: border-box !important;
	break-inside: avoid !important;
	break-inside: avoid-column !important;
	-webkit-column-break-inside: avoid !important;
	page-break-inside: avoid !important;
	aspect-ratio: auto !important;
	height: auto !important;
}

.layout-pinterest-masonry .item-media-wrap,
.layout-pinterest-masonry .matcha-gallery__item-inner,
.matcha-gallery--masonry .item-media-wrap,
.matcha-gallery--masonry .matcha-gallery__item-inner {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: auto !important;
	position: relative !important;
	overflow: hidden !important;
	border-radius: inherit !important;
}

.layout-pinterest-masonry .item-img,
.layout-pinterest-masonry img,
.matcha-gallery--masonry .item-img,
.matcha-gallery--masonry img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	object-fit: cover !important;
	aspect-ratio: auto !important;
}

.layout-pinterest-masonry.skin-pure-minimalist .gallery-item,
.layout-pinterest-masonry.skin-pure-minimalist .matcha-gallery__item,
.matcha-gallery--masonry.skin-pure-minimalist .gallery-item,
.matcha-gallery--masonry.skin-pure-minimalist .matcha-gallery__item {
	background: transparent !important;
}


/* 3. Lookbook Duet */
.layout-lookbook-duet .matcha-gallery__grid,
.matcha-gallery--lookbook-duet .matcha-gallery__grid,
.matcha-gallery__grid.layout-lookbook-duet,
.matcha-gallery-container.layout-lookbook-duet > .matcha-gallery__grid,
#galleryContainer.layout-lookbook-duet {
	display: grid !important;
	grid-template-columns: repeat(var(--matcha-columns, 3), 1fr) !important;
	gap: var(--matcha-gutter, 22px) !important;
	align-items: start !important;
}
.layout-lookbook-duet .gallery-item:nth-child(2),
.layout-lookbook-duet .gallery-item:nth-child(5),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(2),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(5) {
	transform: translateY(40px);
}
.layout-lookbook-duet .gallery-item:nth-child(6n+1),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n+1) { aspect-ratio: 3/4; }
.layout-lookbook-duet .gallery-item:nth-child(6n+2),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n+2) { aspect-ratio: 1/1; }
.layout-lookbook-duet .gallery-item:nth-child(6n+3),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n+3) { aspect-ratio: 4/5; }
.layout-lookbook-duet .gallery-item:nth-child(6n+4),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n+4) { aspect-ratio: 1/1; }
.layout-lookbook-duet .gallery-item:nth-child(6n+5),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n+5) { aspect-ratio: 3/4; }
.layout-lookbook-duet .gallery-item:nth-child(6n+6),
.matcha-gallery--lookbook-duet .matcha-gallery__item:nth-child(6n+6) { aspect-ratio: 4/5; }

/* 4. Cinema Reel */
.layout-cinema-reel .matcha-gallery__grid,
.matcha-gallery--cinema-reel .matcha-gallery__grid,
.matcha-gallery__grid.layout-cinema-reel,
.matcha-gallery-container.layout-cinema-reel > .matcha-gallery__grid,
#galleryContainer.layout-cinema-reel {
	display: flex !important;
	flex-direction: row !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory;
	gap: 24px !important;
	padding: 10px 4px 24px !important;
	-webkit-overflow-scrolling: touch;
}
.layout-cinema-reel .gallery-item,
.matcha-gallery--cinema-reel .matcha-gallery__item {
	flex: 0 0 460px !important;
	aspect-ratio: 16 / 9 !important;
	scroll-snap-align: start;
}
.layout-cinema-reel.skin-editorial .gallery-item,
.matcha-gallery--cinema-reel.skin-editorial .matcha-gallery__item {
	aspect-ratio: auto !important;
}
.layout-cinema-reel.skin-editorial .item-media-wrap,
.matcha-gallery--cinema-reel.skin-editorial .item-media-wrap {
	aspect-ratio: 16 / 9 !important;
	height: 220px;
}

/* 5. Curator Specimen Archive */
.layout-curator-specimen .matcha-gallery__grid,
.matcha-gallery--curator-specimen .matcha-gallery__grid,
.matcha-gallery__grid.layout-curator-specimen,
.matcha-gallery-container.layout-curator-specimen > .matcha-gallery__grid,
#galleryContainer.layout-curator-specimen {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 40px !important;
}
.layout-curator-specimen .gallery-item,
.matcha-gallery--curator-specimen .matcha-gallery__item {
	aspect-ratio: 4 / 3;
	background: #111613;
	border: 1px solid rgba(255, 255, 255, 0.09);
	padding: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.layout-curator-specimen.skin-editorial .gallery-item,
.matcha-gallery--curator-specimen.skin-editorial .matcha-gallery__item {
	aspect-ratio: auto !important;
	padding: 0 !important;
}



