/*
 * CaryTamura blog index (/blog/, the posts page, CT Blog Archive 5488) —
 * 2026 redesign.
 *
 * Loaded on the blog index only (functions.php, is_home()), after
 * page-hero.css and sections.css. Below the split title band: the main
 * query (6 a page, carytamura_blog_index_query()) as CT Loop – Blog Archive
 * Card (5487) — the first article on each page as a full-width feature, the
 * rest three to a row — then WordPress's own pagination (/blog/page/2/),
 * the listings sign-up and the contact band.
 *
 * The original two-up stone cards with rules running past their edges are
 * not reproduced.
 */

/* --------------------------------------------------------------- section */
.ct-blog-archive.e-con {
	--padding-top: var(--ct-space-section);
	--padding-bottom: var(--ct-space-section);
	--padding-left: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2));
	--padding-right: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2));
	--row-gap: 0px;
	--kit-widget-spacing: 0px;
	background-color: var(--ct-canvas);
}

.elementor .ct-blog-archive.e-con > .elementor-widget.ct-blog-archive__grid {
	--kit-widget-spacing: 0px;
	width: 100%;
	margin: 0;
}

.ct-blog-archive .elementor-loop-container.elementor-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}

/* ------------------------------------------------------------------- card
 * The whole card is the link (the container's own link). Photo 4:3, then
 * title, the excerpt where the post has one, and Read more. */
.ct-blog-archive .e-loop-item {
	display: flex;
}

.ct-blog-archive .ct-blog-entry.e-con {
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--row-gap: 0px;
	width: 100%;
	color: var(--ct-ink);
	text-decoration: none;
}

.ct-blog-archive .ct-blog-entry .elementor-widget {
	--kit-widget-spacing: 0px;
	margin: 0;
}

.ct-blog-archive .ct-blog-entry__img {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: var(--ct-surface);
}

.ct-blog-archive .ct-blog-entry__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	max-width: none;
	object-fit: cover;
	transition: transform 600ms var(--ct-ease);
}

.ct-blog-archive .ct-blog-entry:hover .ct-blog-entry__img img {
	transform: scale(1.03);
}

.ct-blog-archive .ct-blog-entry__body.e-con {
	--padding-top: 22px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--row-gap: 12px;
}

.ct-blog-archive .ct-blog-entry__title .elementor-heading-title {
	margin: 0;
	font-family: var(--ct-font-display);
	font-size: clamp(20px, 1.6vw, 24px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ct-ink);
}

.ct-blog-archive .ct-blog-entry:hover .ct-blog-entry__title .elementor-heading-title {
	text-decoration: underline;
	text-decoration-color: var(--ct-accent);
	text-underline-offset: 5px;
}

/* The post's own excerpt, where it has one: three lines at most. */
.ct-blog-archive .ct-blog-entry__excerpt .elementor-heading-title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--ct-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ct-ink-body);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ct-blog-archive .ct-blog-entry__more .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 0;
	padding-bottom: 4px;
	font-family: var(--ct-font-body);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--ct-ink);
	background-image: linear-gradient(var(--ct-accent), var(--ct-accent));
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
}

.ct-blog-archive .ct-blog-entry__more .elementor-heading-title::after {
	content: "\2192";
	transition: transform var(--ct-transition);
}

.ct-blog-archive .ct-blog-entry:hover .ct-blog-entry__more .elementor-heading-title::after {
	transform: translateX(4px);
}

.ct-blog-archive .ct-blog-entry:focus-visible {
	outline: 2px solid var(--ct-accent);
	outline-offset: 6px;
}

/* The first article on each page: a full-width feature, photo beside text. */
@media (min-width: 900px) {
	.ct-blog-archive .e-loop-item:first-of-type {
		grid-column: 1 / -1;
	}

	.ct-blog-archive .e-loop-item:first-of-type .ct-blog-entry.e-con {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: clamp(32px, 4vw, 64px);
		align-items: center;
		padding-bottom: 56px;
		border-bottom: 1px solid var(--ct-border);
	}

	.ct-blog-archive .e-loop-item:first-of-type .ct-blog-entry__img img {
		aspect-ratio: 16 / 10;
	}

	.ct-blog-archive .e-loop-item:first-of-type .ct-blog-entry__body.e-con {
		--padding-top: 0px;
		--row-gap: 18px;
	}

	.ct-blog-archive .e-loop-item:first-of-type .ct-blog-entry__title .elementor-heading-title {
		font-size: var(--ct-type-h2);
		line-height: var(--ct-leading-heading);
	}

	.ct-blog-archive .e-loop-item:first-of-type .ct-blog-entry__excerpt .elementor-heading-title {
		font-size: 17px;
		-webkit-line-clamp: 5;
	}
}

/* ------------------------------------------------------------- pagination
 * WordPress's own pages (/blog/page/2/): square ink controls. */
.ct-blog-archive .elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 64px 0 0;
	font-family: var(--ct-font-body);
	line-height: 1;
}

.ct-blog-archive .elementor-pagination .page-numbers {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 48px;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--ct-border);
	background: var(--ct-canvas);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	color: var(--ct-ink);
	transition: background-color var(--ct-transition), color var(--ct-transition), border-color var(--ct-transition);
}

.ct-blog-archive .elementor-pagination a.page-numbers:hover,
.ct-blog-archive .elementor-pagination a.page-numbers:focus-visible,
.ct-blog-archive .elementor-pagination .page-numbers.current {
	border-color: var(--ct-ink);
	background-color: var(--ct-ink);
	color: var(--ct-on-dark);
}

.ct-blog-archive .elementor-pagination .page-numbers.prev,
.ct-blog-archive .elementor-pagination .page-numbers.next {
	width: 48px;
	font-size: 0;
}

.ct-blog-archive .elementor-pagination span.page-numbers.prev,
.ct-blog-archive .elementor-pagination span.page-numbers.next {
	opacity: 0.4;
	pointer-events: none;
}

.ct-blog-archive .elementor-pagination .page-numbers.prev::before,
.ct-blog-archive .elementor-pagination .page-numbers.next::before {
	content: "\2190";
	font-size: 17px;
	font-weight: 400;
}

.ct-blog-archive .elementor-pagination .page-numbers.next::before {
	content: "\2192";
}

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1024px) {
	.ct-blog-archive .elementor-loop-container.elementor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ct-blog-archive .elementor-loop-container.elementor-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-blog-archive .ct-blog-entry__img img,
	.ct-blog-archive .elementor-pagination .page-numbers {
		transition: none;
	}
}
