.cc-homepage-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.cc-grid-search-wrap {
	max-width: 420px;
	margin: 0 auto 24px;
}

.cc-grid-search-input {
	width: 100%;
	padding: 12px 20px;
	border: 2px solid #ffd6a5;
	border-radius: 50px;
	font-size: 1rem;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.15s ease;
}

.cc-grid-search-input:focus {
	border-color: #FF6B8A;
}

.cc-grid-no-results {
	text-align: center;
	padding: 40px 20px;
	color: #888;
}

.cc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.cc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
	.cc-grid { grid-template-columns: repeat(2, 1fr); }
}

.cc-grid-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cc-grid-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Purely a click target around the photo — contributes no box of its own,
   so .cc-grid-photo-wrap lays out exactly as if it were a direct child of
   .cc-grid-card. */
.cc-grid-card-link {
	display: contents;
}

.cc-grid-photo-wrap {
	position: relative;
	aspect-ratio: 1/1;
	overflow: hidden;
}

.cc-grid-photo {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: #ffe4e8;
	transition: transform 0.3s;
}

.cc-grid-card:hover .cc-grid-photo {
	transform: scale(1.05);
}

.cc-grid-vote-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0,0,0,0.6);
	color: white;
	padding: 4px 10px;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 700;
	backdrop-filter: blur(4px);
}

.cc-grid-card-body {
	padding: 12px;
	text-align: center;
}

.cc-grid-name {
	font-size: 1rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cc-grid-load-more-wrap {
	text-align: center;
	margin-top: 32px;
}

#cc-load-more-btn {
	background: #FFB800;
	color: #1a1a1a;
	border: none;
	padding: 14px 36px;
	border-radius: 50px;
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.2s;
	margin-bottom: 12px;
}

#cc-load-more-btn:hover {
	transform: scale(1.03);
}

.cc-grid-count {
	display: block;
	color: #888;
	font-size: 0.85rem;
}

.cc-grid-hidden {
	display: none !important;
}

.cc-grid-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	background: #fff0f3;
}
