.agceh-gallery-page,
.agceh-detail-page {
	background: transparent !important;
	color: #13213a;
	font-family: inherit;
	margin: 0 auto !important;
	max-width: 1320px;
	padding: 24px 18px 42px;
	text-align: left;
}

.agceh-gallery-page *,
.agceh-detail-page * {
	box-sizing: border-box;
}

.agceh-ads {
	margin: 15px 0;
	text-align: center;
}

body.search .agceh-gallery-page,
body.search .agceh-detail-page,
body.search .agceh-gallery-page:before,
body.search .agceh-detail-page:before {
	background: transparent !important;
}

body.search article:has(.agceh-gallery-page),
body.search article:has(.agceh-detail-page),
body.search main:has(.agceh-gallery-page),
body.search main:has(.agceh-detail-page),
body.search .entry-content:has(.agceh-gallery-page),
body.search .entry-content:has(.agceh-detail-page),
body.search .site-main:has(.agceh-gallery-page),
body.search .site-main:has(.agceh-detail-page) {
	background: transparent !important;
}

.agceh-gallery-breadcrumb {
	color: #526684;
	font-size: 13px;
	line-height: 1.45;
	margin: 0 0 18px;
	text-align: left;
}

.agceh-gallery-breadcrumb a {
	color: #526684;
	text-decoration: none;
}

.agceh-gallery-breadcrumb span {
	margin-left: 7px;
}

.agceh-gallery-header {
	margin: 0 0 26px;
	max-width: 820px;
	text-align: left;
}

.agceh-gallery-header h1 {
	color: #12213b;
	font-size: 34px;
	line-height: 1.16;
	margin: 0 0 12px;
	text-transform: none;
}

.agceh-gallery-copy {
	color: #526684;
	display: grid;
	gap: 8px;
	max-width: 760px;
}

.agceh-gallery-copy p,
.agceh-gallery-header p {
	color: #526684;
	font-size: 16px;
	line-height: 1.65;
	margin: 0;
	text-align: left;
}

.agceh-content-notes {
	border-top: 1px solid #e4eaf2;
	border-bottom: 1px solid #e4eaf2;
	margin: 8px 0 22px;
	padding: 14px 0;
}

.agceh-content-notes h2 {
	color: #12213b;
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 7px;
	text-transform: none;
}

.agceh-content-notes p {
	color: #526684;
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	max-width: 820px;
}

.agceh-gallery-grid {
	column-count: 5;
	column-gap: 16px;
}

.agceh-gallery-card {
	background: #fff;
	border: 1px solid #e7ebf1;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(15, 23, 42, .07);
	break-inside: avoid;
	color: #526684;
	display: inline-block;
	margin: 0 0 16px;
	overflow: hidden;
	text-decoration: none;
	width: 100%;
}

.agceh-gallery-card:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
	transform: translateY(-1px);
}

.agceh-gallery-thumb {
	background: #fff;
	display: block;
	overflow: hidden;
	padding: 0;
}

.agceh-gallery-thumb img {
	aspect-ratio: 4 / 5;
	display: block;
	height: auto;
	min-height: 180px;
	object-fit: cover;
	width: 100%;
}

.agceh-gallery-title {
	color: #526684;
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	padding: 11px 13px 13px;
	text-align: left;
}

.agceh-detail-hero {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e7ebf1;
	border-radius: 8px;
	box-shadow: 0 3px 14px rgba(15, 23, 42, .08);
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, .95fr);
	padding: 24px;
}

.agceh-detail-preview {
	background: #fff;
	border: 1px solid #e4e7ec;
	min-height: 360px;
	padding: 24px;
	text-align: center;
}

.agceh-detail-preview img {
	aspect-ratio: 4 / 5;
	display: inline-block;
	height: auto;
	max-height: 760px;
	max-width: 100%;
	object-fit: contain;
}

.agceh-detail-info h1 {
	color: #12213b;
	font-size: 30px;
	line-height: 1.22;
	margin: 2px 0 14px;
	text-align: left;
	text-transform: none;
}

.agceh-detail-copy {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
}

.agceh-detail-copy p,
.agceh-detail-info p {
	color: #526684;
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
	text-align: left;
}

.agceh-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 12px;
}

.agceh-detail-btn {
	align-items: center;
	border: 1px solid #2f55d4;
	border-radius: 6px;
	color: #2f55d4;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	min-height: 42px;
	padding: 0 18px;
	text-decoration: none;
}

.agceh-detail-btn-primary {
	background: #2f55d4;
	color: #fff;
}

.agceh-detail-source {
	color: #61728f !important;
	font-size: 13px !important;
	font-weight: 600;
}

.agceh-more-like {
	margin-top: 34px;
}

.agceh-more-like h2 {
	color: #12213b;
	font-size: 18px;
	margin: 0 0 14px;
	text-transform: none;
}

.agceh-gallery-page .agceh-related-section,
.agceh-detail-page .agceh-related-section {
	border-top: 1px solid #e8edf4 !important;
	margin-top: 28px !important;
	padding-top: 18px !important;
	text-align: left;
}

.agceh-gallery-page .agceh-related-title,
.agceh-detail-page .agceh-related-title {
	color: #12213b !important;
	font-size: 18px !important;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px !important;
	text-align: left;
	text-transform: none;
}

.agceh-gallery-page ul.agcehsuggest,
.agceh-detail-page ul.agcehsuggest {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.agceh-gallery-page li.agcehsuggestli,
.agceh-detail-page li.agcehsuggestli {
	margin: 0 !important;
	padding: 0 !important;
}

.agceh-gallery-page li.agcehsuggestli a,
.agceh-detail-page li.agcehsuggestli a {
	background: #fff;
	border: 1px solid #e1e7f0;
	border-radius: 999px;
	color: #526684;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	padding: 8px 12px;
	text-decoration: none;
}

.agceh-gallery-page li.agcehsuggestli svg,
.agceh-detail-page li.agcehsuggestli svg {
	display: none !important;
}

.agceh-related-posts {
	border-top: 1px solid #e8edf4;
	margin-top: 28px;
	padding-top: 18px;
}

.agceh-related-posts h2 {
	color: #12213b;
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 14px;
	text-align: left;
	text-transform: none;
}

.agceh-related-post-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agceh-related-post-card {
	background: #fff;
	border: 1px solid #e1e7f0;
	border-radius: 8px;
	overflow: hidden;
}

.agceh-related-post-thumb {
	aspect-ratio: 4 / 3;
	background: #f4f7fb;
	display: block;
	overflow: hidden;
}

.agceh-related-post-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.agceh-related-post-body {
	padding: 12px;
}

.agceh-related-post-body h3 {
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 7px;
	text-transform: none;
}

.agceh-related-post-body p {
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.agceh-gallery-grid-small {
	column-count: 5;
}

.agceh-empty-state {
	border: 1px solid #e1e7f0;
	border-radius: 8px;
	margin: 18px 0 0;
	padding: 22px;
	text-align: left;
}

.agceh-empty-state h2 {
	color: #12213b;
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 8px;
	text-transform: none;
}

.agceh-empty-state p {
	color: #526684;
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 1180px) {
	.agceh-gallery-grid,
	.agceh-gallery-grid-small {
		column-count: 4;
	}
}

@media (max-width: 900px) {
	.agceh-gallery-grid,
	.agceh-gallery-grid-small {
		column-count: 3;
	}

	.agceh-related-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.agceh-detail-hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.agceh-gallery-page,
	.agceh-detail-page {
		padding: 18px 12px 30px;
	}

	.agceh-gallery-grid,
	.agceh-gallery-grid-small {
		column-count: 2;
		column-gap: 12px;
	}

	.agceh-gallery-card {
		margin-bottom: 12px;
	}

	.agceh-gallery-header h1 {
		font-size: 26px;
	}

	.agceh-gallery-header p {
		font-size: 15px;
	}

	.agceh-detail-hero {
		padding: 14px;
	}

	.agceh-detail-preview {
		min-height: 0;
		padding: 12px;
	}

	.agceh-related-post-grid {
		grid-template-columns: 1fr;
	}
}
