.agp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.agp-item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.agp-thumb { display: block; line-height: 0; }
.agp-thumb img {
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 3 / 2;
}

.agp-body { padding: 16px 0; }

.agp-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: .85em; }
.agp-term { text-decoration: none; font-weight: 600; }

.agp-title { margin: 0 0 8px; font-size: 1.15em; line-height: 1.3; }
.agp-title a { color: inherit; text-decoration: none; }
.agp-title a:hover,
.agp-title a:focus-visible { text-decoration: underline; }

.agp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; font-size: .85em; opacity: .75; }
.agp-excerpt { margin: 0 0 12px; }
.agp-readmore { font-weight: 600; }

/* Skin: horizontal */
.agp-skin-horizontal .agp-item { flex-direction: row; align-items: stretch; }
.agp-skin-horizontal .agp-thumb { flex: 0 0 40%; }
.agp-skin-horizontal .agp-thumb img { height: 100%; }
.agp-skin-horizontal .agp-body { flex: 1; padding: 16px; }

/* Skin: overlay */
.agp-skin-overlay .agp-item { color: #fff; }
.agp-skin-overlay .agp-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	pointer-events: none;
}
.agp-skin-overlay .agp-thumb { height: 100%; }
.agp-skin-overlay .agp-thumb img { height: 100%; }
.agp-skin-overlay .agp-body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	padding: 20px;
}
.agp-skin-overlay .agp-title a,
.agp-skin-overlay .agp-term,
.agp-skin-overlay .agp-readmore,
.agp-skin-overlay .agp-meta,
.agp-skin-overlay .agp-excerpt { color: inherit; }

/* Pagination */
.agp-footer,
.agp-pagination { margin-top: 32px; text-align: center; }

.agp-pagination ul { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.agp-pagination a,
.agp-pagination span {
	display: inline-block;
	min-width: 2.5em;
	padding: .5em .8em;
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
	line-height: 1.2;
}
.agp-pagination .current { background: currentColor; }
.agp-pagination .current { color: #fff; }

.agp-load-more {
	padding: .75em 1.75em;
	border: 1px solid transparent;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.agp-load-more:focus-visible,
.agp-pagination a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.agp-load-more:disabled { opacity: .6; cursor: progress; }

.agp-empty { padding: 24px; text-align: center; opacity: .7; }

@media (max-width: 767px) {
	.agp-skin-horizontal .agp-item { flex-direction: column; }
	.agp-skin-horizontal .agp-thumb { flex-basis: auto; }
}
