.ag-page {
	padding: 0;
}

.ag-header {
	margin-bottom: 1.25rem;
	text-align: center;
}

.ag-header h1 {
	margin: 0 0 0.35rem;
	text-align: center;
}

.ag-desc-box {
	margin: 0 0 1.25rem;
}

.ag-desc-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0 0 0.6rem;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.ag-desc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15em;
	height: 1.15em;
	margin-right: 0.35em;
	vertical-align: -0.15em;
	border: 1px solid #d0d0d0;
	border-radius: 3px;
	background: #ececec;
	box-sizing: border-box;
}

.ag-desc-icon svg {
	display: block;
	fill: #666;
}

.single-ag_section .hero-section,
.single-ag_photo .hero-section,
.post-type-archive-ag_section .hero-section,
.single-ag_section .page-title,
.single-ag_photo .page-title,
.post-type-archive-ag_section .page-title,
.single-ag_section .entry-title,
.single-ag_photo .entry-title {
	text-align: center;
}

.single-ag_photo .ct-featured-image {
	display: none;
}

.ag-meta,
.ag-crumb {
	margin: 0;
	opacity: 0.75;
}

.ag-grid {
	display: grid;
	grid-template-columns: repeat(var(--ag-cols, 3), minmax(0, 1fr));
	gap: 1.25rem;
	list-style: none;
}

.ag-grid.is-list {
	grid-template-columns: 1fr;
}

.ag-grid.is-list .ag-card {
	display: grid;
	grid-template-columns: minmax(96px, 180px) minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
}

.ag-grid.is-list .ag-card-title {
	margin: 0;
	text-align: left;
}

.ag-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.06);
}

.ag-grid.is-list .ag-card-media {
	aspect-ratio: 1;
}

.ag-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ag-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 8rem;
	background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04) 8px, transparent 8px, transparent 16px);
}

.ag-no-photo {
	position: relative;
	background: #e8e8e8;
}

.ag-no-photo-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.75rem;
	text-align: center;
	font-size: 0.9rem;
	color: #666;
}

.ag-card-title {
	font-size: 1.05rem;
	margin: 0.6rem 0 0;
	text-align: center;
}

.ag-card-title a {
	text-decoration: none;
}

.ag-card-desc {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	line-height: 1.45;
	text-align: left;
}

.ag-count {
	margin-left: 0.25rem;
	opacity: 0.65;
	font-weight: 400;
}

.ag-count::before {
	content: "(";
}

.ag-count::after {
	content: ")";
}

.ag-tree {
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
	font-size: 0.92rem;
}

.ag-tree ul {
	margin: 0.2rem 0 0;
	padding: 0 0 0 0.9rem;
}

.ag-tree a {
	text-decoration: none;
}

.ag-subs {
	margin-top: 0.45rem;
}

.ag-subs-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font: inherit;
	text-align: left;
}

.ag-plus {
	display: inline-block;
	width: 1em;
	line-height: 1;
	font-weight: 700;
}

.ag-plus::before {
	content: "+";
}

.ag-subs-toggle[aria-expanded="true"] .ag-plus::before {
	content: "−";
}

.ag-section-desc {
	margin: 0 0 1.5rem;
}

.ag-children {
	margin-bottom: 2rem;
}

.ag-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 1.25rem;
}

.ag-switch {
	display: inline-flex;
	border: 1px solid currentColor;
	border-radius: 4px;
	overflow: hidden;
}

.ag-switch button svg {
	display: block;
	fill: currentColor;
}

.ag-switch button,
.ag-switch a {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 0.35rem 0.7rem;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.ag-switch button.is-active,
.ag-switch a.is-active {
	font-weight: 700;
	text-decoration: underline;
}

.ag-rows {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
}

.ag-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0 0 1rem;
}

.ag-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.5rem;
}

.ag-pager a,
.ag-pager span {
	display: inline-block;
	padding: 0.2rem 0.55rem;
}

.ag-figure {
	margin: 0 auto 1.25rem;
}

.ag-img-full {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.ag-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}

.ag-tags li {
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	font-size: 0.85rem;
}

.ag-photo-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ag-photo-nav a {
	text-decoration: none;
}

.ag-next {
	margin-left: auto;
	text-align: right;
}

@media (max-width: 720px) {
	.ag-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-grid.is-list .ag-card {
		grid-template-columns: 88px minmax(0, 1fr);
	}
}

.ag-meta.ag-photo-author,
.ag-meta.ag-photo-views {
	display: block;
}

.ag-page .ag-meta .ag-meta-label,
.ag-page .ag-meta .ag-meta-value {
	display: inline;
}

.ag-meta-label {
	margin-right: 0.35em;
}
