.type-post { --post_type_label: 'Blog Post'; }

.type-page { --post_type_label: 'Page'; }

.type-equipment { --post_type_label: 'Equipment'; }

.type-testimonials { --post_type_label: 'Testimonial'; }

.type-facilities { --post_type_label: 'Facility'; }

/* The child selector outranks the `> *` margin reset of the templates' main group
   (templates/404.html), which prints after this file where it loads on a 404. */
.dj-page-hero-title, .wp-block-query-total,
.dj-main-content > .dj-page-hero-title {
	margin-bottom: 1.5rem;
}

.wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
	height: 56px;
}

.wp-block-search__input {
	padding: 1rem;
}

.wp-block-search__button {
	background-color: var(--color-primary-500);
	color: #fff;
	width: auto;
	height: 100%;
	aspect-ratio: 1/1;
	padding: 0;
}

.wp-block-query li {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--color-primary-900);
}

.wp-block-query li:last-child {
	margin-bottom: 0;
	border-bottom: none;
}

.wp-block-query article>h3 {
	color: var(--color-primary-900);
	margin-bottom: .5rem;
	font-size: var(--title-large-size-smartphone);
}

.wp-block-query article>h3 a {
	color: inherit;
}

.wp-block-query article>h3.wp-block-post-title::before {
	content: var(--post_type_label);
	display: block;
	width: fit-content;
	background-color: var(--color-primary-50);
	font-size: var(--label-medium-size-smartphone);
	font-family: Figtree;
	font-weight: 600;
	line-height: var(--label-medium-line-height-smartphone);
	padding: 4px 8px;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.wp-block-query h4.wp-block-query-title {
	display: none;
}

.wp-block-query article figure {
	margin-bottom: 1.5rem;
}

.wp-block-post-excerpt {
	margin: 0;
}

.wp-block-post-excerpt__more-text {
	margin-bottom: 0;
}

.wp-block-post-excerpt__more-link {
	font-size: var(--label-large-size-desktop);
	color: var(--color-primary-500);
	font-weight: 600;
	font-family: Figtree;
}

.wp-block-post-excerpt__more-link::after {
	content: var(--post_type_label);
}

.wp-block-query-pagination {
	gap: 0.5rem;
	justify-content: center;
	padding-bottom: 3rem;
}

.wp-block-query-pagination-numbers {
	display: contents;
}

.wp-block-query-pagination :is(a, span) {
	display: inline-block;
	height: 40px;
	line-height: 40px;
	min-width: 40px;
	text-align: center;
	border: 1px solid var(--color-neutral-500);
	color: var(--color-neutral-800);
	font-size: 14px;
	font-family: Figtree;
	text-decoration: none;
}

.wp-block-query-pagination .current {
	color: var(--color-primary-900);
	border-color: currentcolor;
	border-width: 2px;
}

@media (max-width: 44.99em) {

	.wp-block-query-pagination-previous, .wp-block-query-pagination-next {
		font-size: 0 !important;
	}

	.wp-block-query-pagination-previous::before {
		content: '<';
		font-size: 14px;
	}

	.wp-block-query-pagination-next::after {
		content: '>';
		font-size: 14px;
	}
}

@media (min-width: 45em) {

	.dj-page-hero-title,
	.dj-main-content > .dj-page-hero-title {
		margin-bottom: 2.5rem;
	}

	.wp-block-query-total {
		margin-bottom: 3rem;
	}

	.wp-block-query article:has(figure) {
		display: grid;
		grid-template-areas:
			"image empty1"
			"image title"
			"image excerpt"
			"image empty2";
	}

	.wp-block-query article figure {
		margin-bottom: 0;
		grid-area: image;
		max-width: 200px;
		float: none !important;
		margin-right: 1.5rem !important;
	}

	.wp-block-query article>h3 {
		font-size: var(--title-large-size-desktop);
		grid-area: title;
		margin-top: 0;
	}

	.wp-block-post-excerpt {
		grid-area: excerpt;
	}

	.wp-block-query-pagination-previous, .wp-block-query-pagination-next {
		padding: 0 1.5rem;
	}
}

@media (min-width: 64em) {

	.wp-block-query article figure {
		max-width: 381px;
		margin-right: 4rem !important;
	}
}
