.gpp-grid-wrap {
	--gpp-columns-desktop: 3;
	--gpp-columns-tablet: 2;
	--gpp-columns-mobile: 1;
	--gpp-gap: 24px;
	--gpp-radius: 14px;
	--gpp-padding: 18px;
	--gpp-primary: #6d28d9;
	--gpp-text: #1f2937;
	--gpp-bg: #ffffff;
	--gpp-object-fit: cover;
	box-sizing: border-box;
}
.gpp-grid-wrap * { box-sizing: border-box; }

.gpp-grid {
	display: grid;
	grid-template-columns: repeat(var(--gpp-columns-desktop), 1fr);
	gap: var(--gpp-gap);
}

@media (max-width: 1024px) {
	.gpp-grid { grid-template-columns: repeat(var(--gpp-columns-tablet), 1fr); }
}
@media (max-width: 640px) {
	.gpp-grid { grid-template-columns: repeat(var(--gpp-columns-mobile), 1fr); }
}

.gpp-card {
	background: var(--gpp-bg);
	border-radius: var(--gpp-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	position: relative;
}
.gpp-style-shadow { box-shadow: 0 4px 18px rgba(15, 23, 42, .08); }
.gpp-style-border { border: 1px solid #e5e7eb; }
.gpp-style-flat { box-shadow: none; }

.gpp-hover-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(15, 23, 42, .14); }
.gpp-hover-zoom .gpp-thumb img { transition: transform .5s ease; }
.gpp-hover-zoom:hover .gpp-thumb img { transform: scale(1.08); }
.gpp-hover-overlay .gpp-thumb::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.45), transparent 60%);
	opacity: 0; transition: opacity .25s ease;
}
.gpp-hover-overlay:hover .gpp-thumb::after { opacity: 1; }

.gpp-card-link { display: block; text-decoration: none; color: inherit; }

.gpp-thumb { position: relative; overflow: hidden; background: #f3f4f6; }
.gpp-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: var(--gpp-object-fit, cover) !important;
	object-position: center !important;
	display: block !important;
	margin: 0 !important;
}
.gpp-ratio-1-1 { aspect-ratio: 1 / 1; }
.gpp-ratio-4-3 { aspect-ratio: 4 / 3; }
.gpp-ratio-16-9 { aspect-ratio: 16 / 9; }
.gpp-ratio-auto { aspect-ratio: auto; }
.gpp-ratio-auto img {
	height: auto !important;
	object-fit: initial !important;
}

.gpp-badge {
	position: absolute; top: 12px; inset-inline-start: 12px;
	background: var(--gpp-primary); color: #fff;
	font-size: 11px; font-weight: 600; padding: 5px 12px;
	border-radius: 999px; z-index: 2; line-height: 1.6;
}
.gpp-badge-noimg { position: static; display: inline-block; margin: var(--gpp-padding) var(--gpp-padding) 0; }

.gpp-content { padding: var(--gpp-padding); }

.gpp-title {
	font-size: 17px; line-height: 1.5; margin: 0 0 8px; color: var(--gpp-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gpp-excerpt { font-size: 13.5px; line-height: 1.8; color: #6b7280; margin: 0 0 12px; }

.gpp-meta { display: flex; gap: 12px; font-size: 12px; color: #9ca3af; margin-bottom: 10px; }

.gpp-readmore {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 600; color: var(--gpp-primary);
}
.gpp-readmore-arrow { transition: transform .2s ease; }
.gpp-card:hover .gpp-readmore-arrow { transform: translateX(-4px); }

.gpp-anim-fade .gpp-card { animation: gpp-fade-in .5s ease both; }
.gpp-anim-slide-up .gpp-card { animation: gpp-slide-up .5s ease both; }
.gpp-grid .gpp-card:nth-child(1) { animation-delay: .02s; }
.gpp-grid .gpp-card:nth-child(2) { animation-delay: .08s; }
.gpp-grid .gpp-card:nth-child(3) { animation-delay: .14s; }
.gpp-grid .gpp-card:nth-child(4) { animation-delay: .2s; }
.gpp-grid .gpp-card:nth-child(5) { animation-delay: .26s; }
.gpp-grid .gpp-card:nth-child(6) { animation-delay: .32s; }
@keyframes gpp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gpp-slide-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.gpp-loadmore-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.gpp-loadmore-btn {
	background: var(--gpp-primary); color: #fff; border: none; cursor: pointer;
	padding: 12px 30px; border-radius: 999px; font-size: 14px; font-weight: 600;
	transition: opacity .2s ease, transform .15s ease;
}
.gpp-loadmore-btn:hover { opacity: .9; transform: translateY(-2px); }
.gpp-loadmore-btn:disabled { opacity: .6; cursor: default; transform: none; }
.gpp-loadmore-spinner {
	width: 22px; height: 22px; border-radius: 50%;
	border: 3px solid #e5e7eb; border-top-color: var(--gpp-primary);
	display: none; animation: gpp-spin .7s linear infinite;
}
.gpp-loadmore-spinner.is-active { display: inline-block; }
@keyframes gpp-spin { to { transform: rotate(360deg); } }

.gpp-numbers-wrap { margin-top: 30px; }
.gpp-pagination { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.gpp-pagination li a, .gpp-pagination li span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 36px; border-radius: 8px;
	border: 1px solid #e5e7eb; text-decoration: none; color: var(--gpp-text); font-size: 13px;
}
.gpp-pagination li span.current { background: var(--gpp-primary); border-color: var(--gpp-primary); color: #fff; }
.gpp-pagination li a:hover { border-color: var(--gpp-primary); color: var(--gpp-primary); }

.gpp-empty { text-align: center; color: #9ca3af; padding: 40px 0; grid-column: 1 / -1; }
