.agency-carousel-editor {
	border: 1px dashed #8c8f94;
	padding: 1rem;
}

.agency-carousel-editor__label {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.agency-quote-slide__title {
	margin-bottom: 2rem;
}

.agency-quote-slide__rating {
	display: flex;
	gap: .25rem;
	justify-content: center;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	line-height: 1;
}

.agency-quote-slide__rating .is-filled {
	color: #f4b400;
}

.agency-quote-slide__rating .is-empty {
	color: currentColor;
	opacity: .3;
}

.agency-carousel-editor .block-editor-block-list__layout {
	display: grid;
	gap: 1rem;
}

.agency-quote-slide,
.agency-logo-slide {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 60rem;
	padding: 2rem 5rem;
	text-align: center;
}

.agency-quote-slide cite {
	display: flex;
	flex-direction: column;
	font-style: normal;
	gap: .25rem;
}

.agency-logo-slide__logo {
	display: block;
	height: auto;
	margin: 0 auto 1.5rem;
	max-height: 8rem;
	max-width: 16rem;
	object-fit: contain;
	width: auto;
}

.agency-logo-slide__media img {
	height: 6rem;
	object-fit: contain;
	width: 12rem;
}

.agency-logo-slide__media-actions {
	display: flex;
	gap: .5rem;
	justify-content: center;
	margin: 1rem 0;
}

.agency-logo-slide label,
.agency-logo-slide input {
	display: block;
	margin: .5rem auto;
	max-width: 30rem;
	width: 100%;
}

@media (max-width: 575.98px) {
	.agency-quote-slide,
	.agency-logo-slide {
		padding-inline: 3.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.agency-carousel .carousel-item {
		transition: none;
	}
}

/* Latest Insights carousel */
.agency-insights {
	--agency-insights-card: #ffd21f;
	--agency-insights-ink: #171b45;
	--agency-insights-gap: 1.5rem;
	position: relative;
}

.agency-insights__heading {
	margin-bottom: 2rem;
	text-align: center;
}

.agency-insights__viewport {
	position: relative;
	padding-inline: 4.5rem;
}

.agency-insights__track {
	display: grid;
	grid-auto-columns: calc((100% - (var(--agency-insights-gap) * 2)) / 3);
	grid-auto-flow: column;
	gap: var(--agency-insights-gap);
	overflow-x: auto;
	padding-block: 2rem 3rem;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.agency-insights__track::-webkit-scrollbar {
	display: none;
}

.agency-insights__card-wrap {
	filter: drop-shadow(1rem 1.25rem 1rem rgb(0 0 0 / 18%));
	scroll-snap-align: start;
}

.agency-insights__card {
	display: flex;
	flex-direction: column;
	min-height: 31rem;
	padding: 2rem 2rem 2.5rem;
	color: var(--agency-insights-ink);
	background: var(--agency-insights-card);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5.5rem), calc(100% - 5.5rem) 100%, 0 100%);
}

.agency-insights__number {
	display: grid;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.5rem;
	place-items: center;
	font-weight: 700;
	color: var(--agency-insights-card);
	background: var(--agency-insights-ink);
}

.agency-insights__title {
	margin: 0;
	padding-top: 1.5rem;
	border-top: 2px solid currentColor;
}

.agency-insights__title a {
	color: inherit;
	text-decoration: none;
}

.agency-insights__title a:hover,
.agency-insights__title a:focus-visible {
	text-decoration: underline;
}

.agency-insights__link {
	margin-top: auto;
	padding-top: 1.5rem;
	border-top: 2px solid currentColor;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .15em;
}

.agency-insights__control {
	position: absolute;
	z-index: 2;
	top: 50%;
	display: grid;
	width: 3.5rem;
	height: 5rem;
	padding: 0;
	border: 0;
	place-items: center;
	font-size: 5rem;
	font-weight: 200;
	line-height: 1;
	color: currentColor;
	background: transparent;
	transform: translateY(-50%);
	cursor: pointer;
}

.agency-insights__control--prev {
	left: 0;
}

.agency-insights__control--next {
	right: 0;
}

.agency-insights__control:disabled {
	opacity: .3;
	cursor: default;
}

.agency-insights__control:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 991.98px) {
	.agency-insights__track {
		grid-auto-columns: calc((100% - var(--agency-insights-gap)) / 2);
	}
}

@media (max-width: 575.98px) {
	.agency-insights__viewport {
		padding-inline: 3rem;
	}

	.agency-insights__track {
		grid-auto-columns: 100%;
	}

	.agency-insights__card {
		min-height: 27rem;
	}

	.agency-insights__control {
		width: 2.5rem;
		font-size: 4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.agency-insights__track {
		scroll-behavior: auto;
	}
}
