/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

@property --content-inset {
	syntax: "<length>";
	inherits: true;
	initial-value: 4rem;
}

html {
	/* Computed on the viewport, then inherited as a length (not re-resolved on nested boxes). */
	--content-inset: max(var(--content-gutter), calc((100% - 120rem) / 2));
}

.site-container {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-inline: auto;
	padding-inline: var(--content-inset) !important;
}

#brxe-agvus0,
#brxe-v5e7lq,
.brxe-7620fd {
	padding-left: var(--content-inset) !important;
	padding-right: var(--content-inset) !important;
}

.brxe-08366b {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 52.6rem;
	min-height: 42.4rem;
	padding-bottom: 7.4rem;
	box-sizing: border-box;
}

.brxe-08366b .bricks-swiper-container,
.brxe-08366b .swiper {
	overflow: hidden;
	width: 100%;
	height: 35rem;
}

.brxe-08366b .swiper-wrapper {
	align-items: stretch;
	height: 35rem;
}

.brxe-08366b .swiper-slide {
	position: relative;
	box-sizing: border-box;
	width: 42rem !important;
	height: 35rem !important;
	overflow: hidden;
}

.brxe-08366b .swiper-slide .image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}

.brxe-08366b .swiper-slide img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.brxe-08366b .swiper-pagination {
	display: none;
}

.brxe-08366b {
	overflow: visible;
}

.brxe-08366b .swiper-slide {
	min-height: 35rem !important;
}

.brxe-08366b .bricks-swiper-button-prev,
.brxe-08366b .bricks-swiper-button-next {
	position: absolute !important;
	top: auto !important;
	bottom: 0 !important;
	z-index: 2;
	width: 5.8rem !important;
	height: 5.8rem !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
	background: transparent !important;
	background-image: none !important;
}

.brxe-08366b .bricks-swiper-button-prev {
	right: 7.4rem !important;
	left: auto !important;
	transform: none !important;
}

.brxe-08366b .bricks-swiper-button-next {
	right: 0 !important;
	left: auto !important;
	transform: rotate(180deg) !important;
}

.brxe-08366b .bricks-swiper-button-prev::before,
.brxe-08366b .bricks-swiper-button-next::before {
	content: "" !important;
	display: block;
	width: 5.8rem;
	height: 5.8rem;
	background-image: url("/wp-content/themes/bricks-child/assets/images/figma/icon-arrow-circle.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 5.8rem 5.8rem;
}

.brxe-08366b .bricks-swiper-button-prev:hover::before,
.brxe-08366b .bricks-swiper-button-next:hover::before,
.brxe-08366b .bricks-swiper-button-prev:focus-visible::before,
.brxe-08366b .bricks-swiper-button-next:focus-visible::before {
	background-image: url("/wp-content/themes/bricks-child/assets/images/figma/icon-arrow-circle-hover.svg");
}

.brxe-08366b .bricks-swiper-button-prev svg,
.brxe-08366b .bricks-swiper-button-next svg,
.brxe-08366b .bricks-swiper-button-prev i,
.brxe-08366b .bricks-swiper-button-next i {
	display: none;
}

@media (max-width: 478px) {
	.brxe-08366b {
		min-height: 37.8rem;
	}

	.brxe-08366b .bricks-swiper-container,
	.brxe-08366b .swiper-slide,
	.brxe-08366b .swiper-slide .image,
	.brxe-08366b .swiper-slide img {
		height: 30.4rem;
	}

	.brxe-08366b .swiper-slide {
		width: 100%;
	}
}

.editor-styles-wrapper,
.editorial-content {
	--editorial-rule: color-mix(in srgb, var(--color-deep-jade) 18%, transparent);
	color: var(--color-charcoal);
	font-family: Mulish, sans-serif;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.7;
}

.editorial-content > * + * {
	margin-top: var(--space-m);
}

.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editorial-content h2,
.editorial-content h3 {
	text-wrap: balance;
}

.editor-styles-wrapper h2,
.editorial-content h2 {
	margin-top: var(--space-2xl);
	color: var(--color-deep-jade);
	font-family: Mulish, sans-serif;
	font-size: 5.6rem;
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: -2px;
	text-transform: uppercase;
}

.editor-styles-wrapper h3,
.editorial-content h3 {
	margin-top: var(--space-xl);
	color: var(--color-charcoal);
	font-family: Literata, serif;
	font-size: 4.2rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -2px;
}

.editorial-content > p:first-of-type {
	font-family: Mulish, sans-serif;
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 1.25;
	font-style: normal;
}

.editorial-content a {
	color: var(--color-deep-jade);
	font-weight: 700;
	text-decoration: none;
}

.editorial-content a:hover,
.editorial-content a:focus-visible {
	color: var(--color-jade);
}

.editorial-content blockquote,
.editorial-content .wp-block-quote {
	margin-inline: 0;
	padding: 6.4rem var(--space-xl);
	border: 0;
	background: var(--color-warm-stone);
	color: var(--color-deep-jade);
	font-family: Literata, serif;
	font-size: 3.2rem;
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: -1px;
}

.editorial-content blockquote cite,
.editorial-content .wp-block-quote cite {
	display: block;
	margin-top: 1.8rem;
	color: var(--color-charcoal);
	font-family: Mulish, sans-serif;
	font-size: 1.5rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
}

@media (max-width: 478px) {
	.editor-styles-wrapper h2,
	.editorial-content h2 {
		font-size: 4rem;
		letter-spacing: -0.8px;
	}

	.editor-styles-wrapper h3,
	.editorial-content h3 {
		font-size: 3.2rem;
		letter-spacing: -0.64px;
	}

	.editorial-content > p:first-of-type {
		font-size: 2rem;
	}

	.editorial-content blockquote,
	.editorial-content .wp-block-quote {
		padding: 3.2rem var(--space-m);
		font-size: 2.4rem;
	}
}

.editorial-content ul,
.editorial-content ol {
	padding-inline-start: 1.35em;
}

.editorial-content li + li {
	margin-top: var(--space-xs);
}

.editorial-content .wp-block-group {
	padding: var(--space-l);
	border: 1px solid var(--editorial-rule);
	border-radius: var(--radius-s);
}

.editorial-content .wp-block-group > * + * {
	margin-top: var(--space-s);
}

.editorial-content .wp-block-columns {
	gap: var(--space-l);
}

.editorial-content .wp-block-table {
	overflow-x: auto;
}

.editorial-content table {
	width: 100%;
	border-collapse: collapse;
}

.editorial-content th,
.editorial-content td {
	padding: var(--space-s);
	border-bottom: 1px solid var(--editorial-rule);
	text-align: left;
	vertical-align: top;
}

.editorial-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
}

.btn-primary,
.is-style-btn-primary > .wp-block-button__link,
.editorial-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 1.6rem 3.2rem;
	border: 0;
	border-radius: 0;
	background: var(--color-jade, #4b7a74);
	box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.3);
	color: var(--color-white, #fff);
	font-family: Mulish, sans-serif;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.is-style-btn-primary > .wp-block-button__link:hover,
.is-style-btn-primary > .wp-block-button__link:focus-visible,
.editorial-content .wp-block-button__link:hover,
.editorial-content .wp-block-button__link:focus-visible {
	background: var(--color-deep-jade, #345d58);
	box-shadow: none;
	color: var(--color-white, #fff);
}

.btn-secondary,
.is-style-btn-secondary > .wp-block-button__link,
.editorial-content .is-style-btn-secondary > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 1.2rem 2.4rem;
	border: 0.2rem solid var(--color-sage, #85a894);
	border-radius: 0;
	background: var(--color-white-50, rgba(255, 255, 255, 0.5));
	box-shadow: none;
	color: var(--color-jade, #4b7a74);
	font-family: Mulish, sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.is-style-btn-secondary > .wp-block-button__link:hover,
.is-style-btn-secondary > .wp-block-button__link:focus-visible,
.editorial-content .is-style-btn-secondary > .wp-block-button__link:hover,
.editorial-content .is-style-btn-secondary > .wp-block-button__link:focus-visible {
	border-color: var(--color-jade, #4b7a74);
	background: rgba(133, 168, 148, 0.2);
	color: var(--color-deep-jade, #345d58);
}

@media (max-width: 767px) {
	.editorial-content .wp-block-columns {
		flex-direction: column;
	}

	.editorial-content .wp-block-group {
		padding: var(--space-m);
	}
}

/* Page Banner instance on /bulletins/: theme asset until the photo lives in the media library. */
.bulletins-page-banner .brxe-802d09 {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-image: url('assets/images/figma/bulletins-page-banner.jpg');
	background-size: cover;
	background-position: center 46%;
	background-repeat: no-repeat;
}

@media (max-width: 478px) {
	.bulletins-page-banner .brxe-802d09 {
		background-position: center center;
	}
}
