/* Snippets / gallery hub — extracted from page-gallery-new.php */

:root {
	--sv-bg: #0d0d0d;
	--sv-gold: #b8943f;
	--sv-gold-dim: rgba(184, 148, 63, 0.3);
	--sv-border: rgba(255, 255, 255, 0.05);
	--sv-text: #f0f0f5;
	--sv-text-muted: #8888a0;
	--sv-card-bg: rgba(255, 255, 255, 0.02);
}

.cfo-gallery-page-new {
	background: var(--sv-bg);
	color: var(--sv-text);
}

.page-template-page-gallery-new .hero-search-bar {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 2rem 3rem;
	position: relative;
	z-index: 5;
}

.search-box {
	position: relative;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--sv-border);
	border-radius: 50px;
	padding: 0.5rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	transition: all 0.3s ease;
}

.search-box:focus-within {
	background: rgba(255, 255, 255, 0.07);
	border-color: var(--sv-gold-dim);
	box-shadow: 0 0 20px rgba(184, 148, 63, 0.1);
}

.search-box svg {
	width: 20px;
	height: 20px;
	color: var(--sv-gold);
}

.search-box input {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.1rem;
	width: 100%;
	padding: 0.8rem 0;
	outline: none;
}

.search-box input::placeholder {
	color: var(--sv-text-muted);
	opacity: 0.6;
}

.result-count {
	display: block;
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--sv-text-muted);
	text-align: center;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 2rem;
	padding: 4rem 0;
}

.snippet-card {
	background: var(--sv-card-bg);
	border: 1px solid var(--sv-border);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	text-decoration: none;
	display: flex;
	flex-direction: column;
}

.snippet-card:hover {
	transform: translateY(-8px);
	border-color: var(--sv-gold-dim);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.snippet-image {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.snippet-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.6s ease;
}

.snippet-card:hover .snippet-image img {
	transform: scale(1.05);
}

.snippet-image-placeholder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.5rem;
	color: #fff;
	text-align: center;
}

.snippet-quote {
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	line-height: 1.5;
	margin-bottom: 1.5rem;
}

.snippet-author {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--sv-gold);
	font-weight: 700;
}

.snippet-overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 13, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.snippet-card:hover .snippet-overlay {
	opacity: 1;
}

.snippet-li-btn {
	background: #0a66c2;
	color: #fff;
	padding: 0.8rem 1.5rem;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.snippet-footer {
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.02);
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--sv-border);
}

.snippet-title {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
}

@media (max-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	}
}

@media (max-width: 768px) {
	.page-template-page-gallery-new .hero-search-bar {
		padding-bottom: 2rem;
	}

	.search-box {
		padding: 0.3rem 1.2rem;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}
}
