.default-page,
.default-single {
	margin: 0;
	color: var(--site-text);
	background: var(--site-background);
}

.default-page__featured-image,
.default-single__featured-image {
	margin: 0 var(--site-gutter) clamp(40px, 4vw, 72px);
}

.default-page__featured-image img,
.default-single__featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.default-page__content,
.default-single__content {
	margin: 0;
	padding: 0 var(--site-gutter) 72px;
}

.default-page__content ol,
.default-single__content ol {
	list-style-type: decimal;
}

.default-page__content ol ol,
.default-single__content ol ol {
	list-style-type: alpha;
}

.default-page__content {
	width: min(100%, calc(800px + (2 * var(--site-gutter))));
	padding-top: clamp(20px, 2vw, 38px);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.wp-block-details.is-style-text-accordion {
	margin: 0;
	font-family: var(--wp--preset--font-family--primary);
	font-size: calc(18px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.25;
}

.wp-block-details.is-style-text-accordion > summary {
	position: relative;
	display: block;
	padding: 10px 32px 8px 0;
	border-bottom: 1px solid var(--site-border-soft);
	font-size: calc(24px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.2;
	list-style: none;
	cursor: pointer;
}

.wp-block-details.is-style-text-accordion > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-text-accordion > summary::marker {
	content: "";
}

.wp-block-details.is-style-text-accordion > summary::after {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 7px;
	height: 7px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	content: "";
	transform: translateY(-65%) rotate(45deg);
	transition: transform 200ms ease;
}

.wp-block-details.is-style-text-accordion[open] > summary::after {
	transform: translateY(-25%) rotate(225deg);
}

.wp-block-details.is-style-text-accordion > summary:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

.wp-block-details.is-style-text-accordion[open] > summary {
	margin-bottom: 20px;
}

.wp-block-details.is-style-text-accordion[open] {
	padding-bottom: clamp(22px, 2vw, 36px);
}

.wp-block-details.is-style-text-accordion > :not(summary):first-of-type {
	margin-top: 0;
}

.wp-block-details.is-style-text-accordion > :last-child {
	margin-bottom: 0;
}

.default-single__meta {
	display: flex;
	gap: 12px 24px;
	margin: 0 var(--site-gutter) clamp(32px, 3vw, 56px);
	font-size: calc(18px * var(--a11y-text-scale, 1));
}

.default-single__meta:empty {
	display: none;
}

.default-single__meta > * {
	margin: 0;
}

.single-post .default-single__title-wrap .sticky-title__full {
	width: min(100%, 680px);
	margin-inline: auto;
	font-size: calc(45px * var(--a11y-text-scale, 1));
}

.single-post .default-single__title-wrap::after {
	display: none;
}

.single-post .default-single__featured-image,
.single-post .default-single__meta {
	width: min(calc(100% - (2 * var(--site-gutter))), 680px);
	margin-right: auto;
	margin-left: auto;
}

.single-post .default-single__featured-image {
	margin-bottom: clamp(24px, 2.25vw, 42px);
}

.single-post .default-single__primary-media--youtube {
	aspect-ratio: 16 / 9;
	background: #000;
}

.single-post .default-single__primary-media--youtube iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.single-post .default-single__primary-media--gallery .gallery-carousel,
.single-post .default-single__primary-media--gallery .wp-block-gallery {
	margin-block: 0;
}

.single-post
	:is(.default-single__primary-media--gallery, .default-single__content)
	.gallery-carousel__slide
	img {
	width: 100%;
	height: 100%;
	min-height: 0;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.single-post
	:is(.default-single__primary-media--gallery, .default-single__content)
	.gallery-carousel__thumbnail
	img {
	height: 100%;
	object-fit: contain;
	object-position: center;
	background: #f4f4f4;
}

.single-post .default-single__meta {
	margin-bottom: clamp(32px, 3vw, 56px);
	color: var(--site-muted-soft);
	font-size: calc(13px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.2;
}

.single-post .default-single__content {
	width: min(100%, calc(680px + (2 * var(--site-gutter))));
	margin-inline: auto;
	padding-bottom: clamp(48px, 5vw, 96px);
	font-size: calc(18px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.3;
}

.single-post .default-single__content > p:first-child {
	font-size: calc(24px * var(--a11y-text-scale, 1));
	line-height: 1.25;
}

.post-footer {
	margin: 0;
}

.post-footer__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	width: min(100%, calc(680px + (2 * var(--site-gutter))));
	margin: 0 auto clamp(52px, 5vw, 96px);
	padding-inline: var(--site-gutter);
	font-size: calc(13px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.3;
}

.post-footer__tags a {
	color: inherit;
	text-decoration: none;
}

.post-footer__tags a:hover,
.post-footer__tags a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.post-footer__top-link-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 60px;
	margin-inline: var(--site-gutter);
	border-bottom: 1px solid var(--site-border);
}

.post-footer__top-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	font-size: calc(15px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.2;
	text-decoration: none;
}

.post-related {
	margin: 0;
	padding: clamp(32px, 2.5vw, 48px) var(--site-gutter)
		clamp(72px, 7vw, 132px);
}

.post-related__heading {
	margin: 0 0 clamp(28px, 2.25vw, 42px);
	font-family: var(--wp--preset--font-family--primary);
	font-size: calc(18px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.25;
}

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

.post-related-card {
	min-width: 0;
	margin: 0;
}

.post-related-card__media {
	display: block;
	margin: 0 0 12px;
	overflow: hidden;
}

.post-related-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--site-border-subtle);
	transition: transform 350ms ease;
}

.post-related-card__media:hover .post-related-card__image,
.post-related-card__media:focus-visible .post-related-card__image {
	transform: scale(1.025);
}

.post-related-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--primary);
	font-size: calc(18px * var(--a11y-text-scale, 1));
	font-weight: 300;
	line-height: 1.25;
}

.post-related-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-related-card__title a:hover,
.post-related-card__title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (max-width: 1024px) {
	.post-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 48px;
	}
}

@media (max-width: 767px) {
	.default-page__featured-image,
	.default-single__featured-image {
		margin: 0 16px 40px;
	}

	.default-page__content,
	.default-single__content {
		padding: 0 16px 72px;
	}

	.default-page__content {
		padding-top: 20px;
	}

	.wp-block-details.is-style-text-accordion > summary {
		font-size: calc(20px * var(--a11y-text-scale, 1));
	}

	.default-single__meta {
		margin: 0 16px 32px;
	}

	.single-post .default-single__featured-image,
	.single-post .default-single__meta {
		width: calc(100% - 32px);
		margin-right: auto;
		margin-left: auto;
	}

	.single-post .default-single__content > p:first-child {
		font-size: calc(20px * var(--a11y-text-scale, 1));
	}

	.single-post .default-single__content {
		font-size: calc(16px * var(--a11y-text-scale, 1));
	}

	.post-footer__tags {
		margin-bottom: 48px;
		padding-inline: 16px;
	}

	.post-footer__top-link-row {
		margin-inline: 16px;
	}

	.post-related {
		padding-right: 16px;
		padding-bottom: 72px;
		padding-left: 16px;
	}
}

@media (max-width: 599px) {
	.post-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-details.is-style-text-accordion > summary::after {
		transition: none;
	}

	.post-related-card__image {
		transition: none;
	}
}
