/*
Public Engagements dynamic component
Version: 0.2.4
--------------------------------------------- */

.jcatl-public-engagements {
	background: var(--jcatl-color-blue-tint-96);
	border-block: var(--jcatl-border-width) solid var(--jcatl-color-border);
	color: var(--jcatl-color-text);
	margin-block: 0;
	overflow: hidden;
	padding: var(--jcatl-space-1) var(--jcatl-space-3) var(--jcatl-space-3);
}

.jcatl-public-engagements__shell {
	margin-inline: auto;
	max-width: var(--jcatl-width-wide);
	width: 100%;
}

.jcatl-public-engagements__header {
	margin-bottom: var(--jcatl-space-3);
}

.jcatl-public-engagements__heading {
	color: var(--jcatl-color-brand-orange);
	font-size: var(--jcatl-font-size-xs);
	font-weight: var(--jcatl-font-weight-bold);
	letter-spacing: 0;
	line-height: var(--jcatl-line-height-tight);
	margin: 0;
	text-transform: uppercase;
}

.jcatl-public-engagements__panels {
	position: relative;
}

.jcatl-public-engagements__panel {
	display: grid;
	gap: var(--jcatl-space-2);
	grid-template-columns: minmax(0, 1fr);
	opacity: 1;
	transform: none;
	transition-duration: var(--jcatl-public-engagements-content-duration);
	transition-property: opacity, transform;
}

.jcatl-public-engagements__panel[hidden] {
	display: none;
}

.jcatl-public-engagements__panel.is-leaving {
	inset: 0;
	pointer-events: none;
	position: absolute;
	width: 100%;
}

.jcatl-public-engagements--content-none .jcatl-public-engagements__panel {
	transition: none;
}

.jcatl-public-engagements--content-crossfade .jcatl-public-engagements__panel.is-entering:not(.is-active),
.jcatl-public-engagements--content-crossfade .jcatl-public-engagements__panel.is-leaving,
.jcatl-public-engagements--content-fade-through .jcatl-public-engagements__panel.is-entering:not(.is-active),
.jcatl-public-engagements--content-fade-through .jcatl-public-engagements__panel.is-leaving {
	opacity: 0;
}

.jcatl-public-engagements--content-fade-through .jcatl-public-engagements__panel {
	transition-duration: var(--jcatl-public-engagements-content-half-duration);
}

.jcatl-public-engagements--content-fade-through .jcatl-public-engagements__panel.is-entering {
	transition-delay: var(--jcatl-public-engagements-content-half-duration);
}

.jcatl-public-engagements--content-slide .jcatl-public-engagements__panel.is-entering:not(.is-active) {
	opacity: 0;
	transform: translate3d(2rem, 0, 0);
}

.jcatl-public-engagements--content-slide .jcatl-public-engagements__panel.is-leaving {
	opacity: 0;
	transform: translate3d(-2rem, 0, 0);
}

.jcatl-public-engagements--content-scale-fade .jcatl-public-engagements__panel.is-entering:not(.is-active) {
	opacity: 0;
	transform: scale(0.985);
}

.jcatl-public-engagements--content-scale-fade .jcatl-public-engagements__panel.is-leaving {
	opacity: 0;
	transform: scale(1.015);
}

.jcatl-public-engagements__title-image {
	align-items: center;
	display: flex;
	justify-content: center;
}

.jcatl-public-engagements__title-image a {
	display: inline-flex;
	justify-content: center;
}

.jcatl-public-engagements__title-image a:focus-visible {
	border-radius: var(--jcatl-radius-sm);
	outline: 3px solid var(--jcatl-color-focus);
	outline-offset: 4px;
}

.jcatl-public-engagements__title-image img {
	height: auto;
	max-height: clamp(5rem, 15vw, 8.5rem);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.jcatl-public-engagements__stage {
	background: var(--jcatl-color-blue-tint-96);
	display: grid;
	grid-template: 1fr / 1fr;
	overflow: hidden;
	position: relative;
}

.jcatl-public-engagements__photo {
	grid-area: 1 / 1;
}

.jcatl-public-engagements__photo img {
	display: block;
	height: auto;
	width: 100%;
}

.jcatl-public-engagements__quote {
	align-self: end;
	background: rgb(0 55 79 / var(--jcatl-public-engagements-quote-opacity));
	color: var(--jcatl-color-white);
	grid-area: 1 / 1;
	justify-self: start;
	margin: var(--jcatl-space-4);
	max-width: min(90%, 34rem);
	padding: var(--jcatl-space-4);
	position: relative;
	z-index: 1;
}

.jcatl-public-engagements__quote blockquote {
	border: 0;
	font-size: var(--jcatl-public-engagements-quote-font-size, var(--jcatl-font-size-lg));
	font-style: italic;
	font-weight: var(--jcatl-font-weight-medium);
	line-height: var(--jcatl-line-height-heading);
	margin: 0;
	padding: 0;
}

.jcatl-public-engagements__quote blockquote p {
	margin: 0;
}

.jcatl-public-engagements__quote blockquote p + p {
	margin-top: var(--jcatl-space-3);
}

.jcatl-public-engagements__quote figcaption {
	font-size: var(--jcatl-font-size-sm);
	font-style: normal;
	font-weight: var(--jcatl-font-weight-semibold);
	line-height: var(--jcatl-line-height-base);
	margin-top: var(--jcatl-space-3);
}

.jcatl-public-engagements__quote--small {
	max-width: min(80%, 24rem);
	padding: var(--jcatl-space-3);
}

.jcatl-public-engagements__quote--small blockquote {
	font-size: var(--jcatl-public-engagements-quote-font-size, var(--jcatl-font-size-md));
}

.jcatl-public-engagements__quote--large {
	max-width: min(94%, 44rem);
	padding: var(--jcatl-space-5);
}

.jcatl-public-engagements__quote--large blockquote {
	font-size: var(--jcatl-public-engagements-quote-font-size, var(--jcatl-font-size-xl));
}

.jcatl-public-engagements__quote[data-desktop-anchor^="top-"] {
	align-self: start;
}

.jcatl-public-engagements__quote[data-desktop-anchor^="center"] {
	align-self: center;
}

.jcatl-public-engagements__quote[data-desktop-anchor^="bottom-"] {
	align-self: end;
}

.jcatl-public-engagements__quote[data-desktop-anchor$="-left"] {
	justify-self: start;
}

.jcatl-public-engagements__quote[data-desktop-anchor$="-center"],
.jcatl-public-engagements__quote[data-desktop-anchor="center"] {
	justify-self: center;
}

.jcatl-public-engagements__quote[data-desktop-anchor$="-right"] {
	justify-self: end;
}

.jcatl-public-engagements__carousel {
	align-items: stretch;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	margin-top: var(--jcatl-space-3);
	position: relative;
}

.jcatl-public-engagements__viewport {
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}

.jcatl-public-engagements__track {
	display: flex;
	transform: translate3d(0, 0, 0);
	width: 100%;
}

.jcatl-public-engagements.is-enhanced .jcatl-public-engagements__track {
	width: max-content;
}

.jcatl-public-engagements__logo-item {
	flex: 0 0 var(--jcatl-engagement-slot-width, calc(100% / var(--jcatl-public-engagements-visible-count)));
	max-width: var(--jcatl-engagement-slot-width, calc(100% / var(--jcatl-public-engagements-visible-count)));
	padding-inline: clamp(0.25rem, 1vw, var(--jcatl-space-3));
}

.jcatl-public-engagements__logo-button {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: var(--jcatl-space-2);
	height: 100%;
	justify-content: center;
	min-height: 5.5rem;
	padding: var(--jcatl-space-3) var(--jcatl-space-2) var(--jcatl-space-2);
	width: 100%;
}

.jcatl-public-engagements__logo-button:focus,
.jcatl-public-engagements__logo-button:active {
	background: transparent;
	color: inherit;
}

.jcatl-public-engagements__logo-button:hover,
.jcatl-public-engagements__logo-button:focus-visible {
	background: var(--wp--preset--color--blue-tint-80, #ccd7dc);
	color: inherit;
}

.jcatl-public-engagements__logo-button:focus-visible {
	outline: 3px solid var(--jcatl-color-focus);
	outline-offset: -3px;
}

.jcatl-public-engagements__logo-button img {
	display: block;
	height: clamp(3.5rem, 8vw, 6rem);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.jcatl-public-engagements__indicator {
	background: var(--jcatl-color-border);
	display: block;
	height: 2px;
	opacity: 0;
	transform: scaleX(0.35);
	transition: opacity var(--jcatl-public-engagements-hover-duration) ease, transform var(--jcatl-public-engagements-hover-duration) ease;
	width: min(3rem, 70%);
}

.jcatl-public-engagements__logo-button:not(.is-active):hover .jcatl-public-engagements__indicator,
.jcatl-public-engagements__logo-button:not(.is-active):focus-visible .jcatl-public-engagements__indicator {
	opacity: 0.7;
	transform: scaleX(0.7);
}

.jcatl-public-engagements__logo-button.is-active .jcatl-public-engagements__indicator {
	background: var(--jcatl-color-brand-orange);
	height: 4px;
	opacity: 1;
	transform: scaleX(1);
}

.jcatl-public-engagements__arrow {
	align-items: center;
	align-self: center;
	appearance: none;
	background: var(--jcatl-color-brand-blue);
	border: 2px solid var(--jcatl-color-brand-blue);
	border-radius: 999px;
	color: var(--jcatl-color-white);
	cursor: pointer;
	display: inline-flex;
	font-size: var(--jcatl-font-size-xl);
	height: 2.75rem;
	justify-content: center;
	line-height: 1;
	opacity: 1;
	padding: 0;
	transition: background-color var(--jcatl-public-engagements-hover-duration) ease, color var(--jcatl-public-engagements-hover-duration) ease, opacity var(--jcatl-public-engagements-hover-duration) ease;
	width: 2.75rem;
	z-index: 2;
}

.jcatl-public-engagements__arrow:hover,
.jcatl-public-engagements__arrow:focus-visible {
	background: var(--jcatl-color-white);
	color: var(--jcatl-color-brand-blue);
}

.jcatl-public-engagements__arrow:focus-visible {
	outline: 3px solid var(--jcatl-color-focus);
	outline-offset: 2px;
}

.jcatl-public-engagements__arrow--previous {
	margin-right: var(--jcatl-space-2);
}

.jcatl-public-engagements__arrow--next {
	margin-left: var(--jcatl-space-2);
}

.jcatl-public-engagements__playback {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--jcatl-space-2);
}

/* With the label hidden the whole control collapses out of the layout;
   the button itself is screen-reader-only and stays keyboard-reachable. */
.jcatl-public-engagements__playback--label-hidden {
	margin-top: 0;
}

.jcatl-public-engagements__playback-button {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: var(--jcatl-color-brand-blue);
	cursor: pointer;
	font-size: var(--jcatl-font-size-xs);
	font-weight: var(--jcatl-font-weight-semibold);
	padding: var(--jcatl-space-1) 0;
}

.jcatl-public-engagements__playback-button:hover,
.jcatl-public-engagements__playback-button:focus-visible {
	background: transparent;
	color: var(--jcatl-color-brand-black);
}

.jcatl-public-engagements__playback-button:focus-visible {
	outline: 3px solid var(--jcatl-color-focus);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.jcatl-public-engagements.is-enhanced:is(.jcatl-public-engagements--reveal-arrows-hover, .jcatl-public-engagements--reveal-arrows-focus) .jcatl-public-engagements__arrow {
		opacity: 0;
		pointer-events: none;
	}

	.jcatl-public-engagements--reveal-arrows-hover .jcatl-public-engagements__carousel:hover .jcatl-public-engagements__arrow,
	.jcatl-public-engagements--reveal-arrows-focus .jcatl-public-engagements__carousel:focus-within .jcatl-public-engagements__arrow,
	.jcatl-public-engagements__carousel:focus-within .jcatl-public-engagements__arrow {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (max-width: 767px) {
	.jcatl-public-engagements {
		padding: var(--jcatl-space-1) var(--jcatl-space-3) var(--jcatl-space-3);
	}

	.jcatl-public-engagements__panel {
		gap: var(--jcatl-space-1);
	}

	.jcatl-public-engagements__quote {
		margin: var(--jcatl-space-3);
		max-width: calc(100% - (2 * var(--jcatl-space-3)));
		padding: var(--jcatl-space-3);
	}

	.jcatl-public-engagements__quote[data-mobile-anchor^="top-"] {
		align-self: start;
	}

	.jcatl-public-engagements__quote[data-mobile-anchor^="center"] {
		align-self: center;
	}

	.jcatl-public-engagements__quote[data-mobile-anchor^="bottom-"] {
		align-self: end;
	}

	.jcatl-public-engagements__quote[data-mobile-anchor$="-left"] {
		justify-self: start;
	}

	.jcatl-public-engagements__quote[data-mobile-anchor$="-center"],
	.jcatl-public-engagements__quote[data-mobile-anchor="center"] {
		justify-self: center;
	}

	.jcatl-public-engagements__quote[data-mobile-anchor$="-right"] {
		justify-self: end;
	}

	.jcatl-public-engagements__logo-item {
		padding-inline: 0.2rem;
	}

	.jcatl-public-engagements__logo-button {
		min-height: 4.75rem;
		padding-inline: 0.25rem;
	}

	.jcatl-public-engagements__logo-button img {
		height: clamp(2.5rem, 12vw, 4rem);
	}

	.jcatl-public-engagements__arrow {
		height: 2.25rem;
		width: 2.25rem;
	}

	.jcatl-public-engagements__arrow--previous {
		margin-right: var(--jcatl-space-1);
	}

	.jcatl-public-engagements__arrow--next {
		margin-left: var(--jcatl-space-1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jcatl-public-engagements *,
	.jcatl-public-engagements *::before,
	.jcatl-public-engagements *::after {
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}

	.jcatl-public-engagements__panel,
	.jcatl-public-engagements__track {
		transform: none !important;
	}
}
