/**
 * Block components (video hero, feeds, text sections) + masthead.
 *
 * @package applied-policy-4
 */

:root {
	--ap4-blue: #1779ba;
	--ap4-light-blue: #cfe9f6;
	--ap4-dark-blue: #263552;
	--ap4-gold: #c88b11;
	--ap4-dark-gold: #923c05;
	--ap4-orange: rgb( 248, 151, 29 );
	--ap4-twitter: #1d9bf0;
	--ap4-linkedin: #0a66c2;
}

#primary.site-main {
	overflow: hidden;
}

/* 404 — service shortcut cards */
.ap4-error-404__code {
	letter-spacing: 0.08em;
}

.ap4-error-404__service {
	transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ap4-error-404__service:hover,
.ap4-error-404__service:focus-visible {
	border-color: var( --ap4-blue, #1779ba ) !important;
	box-shadow: 0 0.35rem 1rem rgba( 23, 121, 186, 0.18 ) !important;
	color: var( --ap4-dark-blue, #263552 );
}

/* MyFonts kit 36D863 — Eloquent JF Italic Pro (single face; register as normal weight/style). */
@font-face {
	font-family: 'EloquentJFItalicPro';
	src: url( '../fonts/36D863_0_0.woff2' ) format( 'woff2' ),
		url( '../fonts/36D863_0_0.woff' ) format( 'woff' ),
		url( '../fonts/36D863_0_0.ttf' ) format( 'truetype' );
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

h1, .h1 {
	font-size: 3rem;
}

h2, .h2 {
	font-size: 2.5rem;
}

p, .p {
	font-size: 1.125rem;
}

.h1, .h2, .h3, .h4, .h5, .h6, .p, h1, h2, h3, h4, h5, h6, p {
	font-weight: normal;
}

.bg-light-blue {
	background-color: var( --ap4-light-blue ) !important;
}

.text-gold {
	color: var( --ap4-gold ) !important;
}

.text-dark-gold {
	color: var( --ap4-dark-gold ) !important;
}

.text-light-blue {
	color: var( --ap4-dark-blue ) !important;
}

.bg-ap4-orange {
	background-color: var( --ap4-orange ) !important;
}

/**
 * Display / accent heading (swap for project webfont in Typography plugin or @font-face).
 */
.title-fancy {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	letter-spacing: 0.02em;
}

.title-fancy.title-fancy-eloquent,
.title-fancy-eloquent {
	font-family: 'EloquentJFItalicPro', Georgia, 'Times New Roman', serif;
	font-style: normal;
	font-weight: normal;
	font-synthesis: none;
	letter-spacing: 0.02em;
}

/* Pages: block editor H3 — use normal site font, bold, dark gold for contrast (overrides global h3 { font-weight: normal }). */
.page .entry-content h3.wp-block-heading {
	font-family: inherit;
	font-style: normal;
	font-weight: 700;
	font-synthesis: none;
	letter-spacing: 0.02em;
	color: var( --ap4-dark-gold, #923c05 );
	line-height: 1.25;
}

/* Pages: unordered list markers (bullets) — dark blue. */
.page .entry-content ul:not( .navbar-nav ):not( .dropdown-menu ) > li::marker,
.page .entry-content ul.wp-block-list > li::marker {
	color: var( --ap4-dark-blue, #263552 );
}

/* Blog posts: list markers — light blue; body copy links — theme blue. */
.single-post .entry-content ul:not( .navbar-nav ):not( .dropdown-menu ) > li::marker,
.single-post .entry-content ol:not( .navbar-nav ):not( .dropdown-menu ) > li::marker,
.single-post .entry-content ul.wp-block-list > li::marker,
.single-post .entry-content ol.wp-block-list > li::marker {
	color: var( --ap4-light-blue, #cfe9f6 );
}

.single-post .entry-content a:not( .wp-block-button__link ):not( .wp-element-button ):not( .wp-block-file__button ) {
	color: var( --ap4-blue, #1779ba );
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.single-post .entry-content a:not( .wp-block-button__link ):not( .wp-element-button ):not( .wp-block-file__button ):hover,
.single-post .entry-content a:not( .wp-block-button__link ):not( .wp-element-button ):not( .wp-block-file__button ):focus-visible {
	color: var( --ap4-gold, #c88b11 );
}

/* Single: Meet the team — full-width hero + decorative top strip (image: assets/images/phst.png). */
.ap4-meet-the-team-single__hero {
	position: relative;
	margin-top: 14px;
	padding-top: 1.75rem;
	padding-bottom: 2rem;
	background-color: var( --ap4-light-blue );
	overflow: visible;
}

.ap4-meet-the-team-single__hero::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 0;
	width: 100%;
	height: 14px;
	background: url( '../images/phst.png' ) repeat-x 0 100%;
	pointer-events: none;
}

/* Homepage: orange strip tile below staff carousel (orangest.png; pseudo at bottom of band like hero strip inverted). */
.ap4-home-orangest-band {
	position: relative;
	height: 14px;
	pointer-events: none;
}

.ap4-home-orangest-band::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 14px;
	background: url( '../images/orangest.png' ) repeat-x 0 100%;
	pointer-events: none;
}

.ap4-meet-the-team-single__title {
	font-size: clamp( 1.75rem, 4vw, 2.75rem );
	line-height: 1.2;
}

.ap4-meet-the-team-single__degrees,
.ap4-meet-the-team-single__degrees-comma {
	font-family: 'EloquentJFItalicPro', Georgia, 'Times New Roman', serif;
	font-style: normal;
	font-weight: normal;
	font-synthesis: none;
	letter-spacing: 0.02em;
}

.ap4-meet-the-team-single__photo {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Case study single: hero kicker + sidebar related lists */
.ap4-case-study-single__kicker {
	font-size: clamp( 1.35rem, 3.5vw, 2.25rem );
	line-height: 1.2;
	text-transform: capitalize;
	color: var( --ap4-dark-blue, #263552 );
	font-family: 'EloquentJFItalicPro', Georgia, 'Times New Roman', serif;
	font-style: normal;
	font-weight: normal;
	letter-spacing: 0.04em;
}

.ap4-case-study-single__date {
	color: var( --ap4-gold, #c88b11 );
}

.ap4-case-study-sidebar__heading {
	color: var( --ap4-dark-blue, #263552 );
	letter-spacing: 0.04em;
}

.ap4-case-study-sidebar__link {
	color: var( --ap4-blue, #1779ba );
}

.ap4-case-study-sidebar__link:hover,
.ap4-case-study-sidebar__link:focus-visible {
	color: var( --ap4-dark-blue, #263552 );
	text-decoration: underline !important;
}

/* Single blog post — right column (byline, tags, related blocks, subscribe). */
.ap4-post-sidebar__byline {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.ap4-post-sidebar__avatar {
	width: 85px;
	height: 85px;
	flex-shrink: 0;
}

.ap4-post-sidebar__avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap4-post-sidebar__middot {
	padding: 0 0.15em;
	color: var( --ap4-dark-blue, #263552 );
	opacity: 0.55;
}

.ap4-post-sidebar__rule {
	margin: 1rem 0;
	border: 0;
	border-top: 5px solid var( --ap4-gold, #c88b11 );
	opacity: 1;
}

/* Related services / related articles — dotted underline per row (single post sidebar only). */
.ap4-post-sidebar .ap4-case-study-sidebar__list > li {
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem !important;
	border-bottom: 1px dotted var( --ap4-blue, #1779ba );
}

.ap4-post-sidebar .ap4-case-study-sidebar__list > li:last-child {
	margin-bottom: 0 !important;
}

.ap4-post-sidebar__bio p:last-child {
	margin-bottom: 0;
}

/* Page template: Blog archive (posts) — pagination list */
.ap4-blog-archive__pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ap4-blog-archive__pagination .page-numbers a,
.ap4-blog-archive__pagination .page-numbers span {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	border-radius: 0.25rem;
	text-decoration: none;
}

.ap4-blog-archive__pagination .page-numbers a:hover,
.ap4-blog-archive__pagination .page-numbers a:focus-visible {
	background-color: var( --ap4-light-blue, #cfe9f6 );
	color: var( --ap4-dark-blue, #263552 );
}

.ap4-news-feed-cards__media img {
	object-position: center;
}

@media ( min-width: 768px ) {
	.ap4-news-feed-cards__media.ratio {
		aspect-ratio: 21 / 9;
	}
}

.ap4-staff-slider {
	overflow: hidden;
}

.ap4-staff-slider__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap4-staff-slider__intro a {
	color: inherit;
	text-decoration: underline;
}

.ap4-staff-slider__frame {
	position: relative;
}

.ap4-staff-slider__nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 10;
	line-height: 1;
	border: 0;
	text-decoration: none;
}

.ap4-staff-slider__nav-btn:hover,
.ap4-staff-slider__nav-btn:focus {
	color: #fff !important;
	text-decoration: none;
}

.ap4-staff-slider__nav-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ap4-staff-slider__nav-btn--prev {
	right: 100%;
}

.ap4-staff-slider__nav-btn--next {
	left: 100%;
}

.ap4-staff-slider__nav-btn .bi {
	display: block;
}

.ap4-staff-slider__nav-btn.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
	cursor: default;
}

.ap4-staff-slider__swiper {
	overflow: hidden;
}

.ap4-staff-slider__swiper .swiper-wrapper {
	align-items: stretch;
}

.ap4-staff-slider__swiper .swiper-slide {
	height: auto;
	display: flex;
}

.ap4-staff-slider__swiper .swiper-slide > .ap4-staff-slider__card {
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
}

.ap4-staff-slider__card {
	min-height: 100%;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #fff;
}

.ap4-staff-slider__card > a {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 100%;
	color: inherit;
	text-decoration: none;
}

.ap4-staff-slider__card .ap4-staff-slider__thumb {
	background-color: transparent;
}

.ap4-staff-slider__card .card-body {
	flex: 1 1 auto;
}

.ap4-staff-slider__name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}

.ap4-staff-slider__degrees {
	color: rgba( 255, 255, 255, 0.92 );
	line-height: 1.35;
}

.ap4-staff-slider__role {
	font-weight: normal;
	color: var( --ap4-dark-gold, #923c05 );
}

.ap4-staff-slider__placeholder {
	background-color: transparent;
	border: 1px solid rgba( 255, 255, 255, 0.25 );
}

.ap4-staff-slider__placeholder .display-4 {
	color: rgba( 255, 255, 255, 0.65 );
}

/* Meet the team page: stacked staff (no Swiper; reuses slider card styles). */
.ap4-staff-stack .ap4-staff-stack__list {
	max-width: 100%;
}

.ap4-staff-stack:not( .ap4-staff-stack--light ) .ap4-staff-stack__item {
	max-width: 26rem;
}

@media ( min-width: 992px ) {

	.ap4-staff-stack:not( .ap4-staff-stack--light ) .ap4-staff-stack__item {
		max-width: 34rem;
	}
}

/* Meet the team landing: light cards on white (grid layout from staff-stack). */
.ap4-staff-stack--light .ap4-staff-stack__card {
	min-height: 100%;
}

.ap4-staff-stack--light .ap4-staff-stack__thumb-link {
	color: inherit;
	text-decoration: none;
}

.ap4-staff-stack--light .ap4-staff-stack__card .card-body {
	flex: 1 1 auto;
}

.ap4-staff-stack--light .ap4-staff-slider__name,
.ap4-staff-stack--light a.ap4-staff-stack__name-link {
	color: var( --ap4-dark-blue, #263552 );
}

.ap4-staff-stack--light a.ap4-staff-stack__name-link:hover,
.ap4-staff-stack--light a.ap4-staff-stack__name-link:focus-visible {
	color: var( --ap4-blue, #1779ba );
	text-decoration: underline;
}

.ap4-staff-stack--light .ap4-staff-slider__degrees {
	color: rgba( 38, 53, 82, 0.78 );
}

.ap4-staff-stack--light .ap4-staff-slider__thumb {
	background-color: transparent;
}

.ap4-staff-stack--light .ap4-staff-slider__placeholder {
	background-color: transparent;
	border: 1px solid rgba( 38, 53, 82, 0.15 );
}

.ap4-staff-stack--light .ap4-staff-slider__placeholder .display-4 {
	color: rgba( 38, 53, 82, 0.35 );
}

.ap4-staff-stack--light .ap4-staff-stack__linkedin-btn .bi {
	font-size: 1.125rem;
	line-height: 1;
}

.ap4-services-lists__title-link:hover,
.ap4-services-lists__title-link:focus-visible {
	color: var( --ap4-gold, #c88b11 ) !important;
}

.ap4-services-lists__item,
.ap4-news-lists__item {
	border-bottom: 1px dashed #cfe9f6;
}

.ap4-services-lists__link {
	color: var( --ap4-blue );
}

.ap4-services-lists__link:hover,
.ap4-services-lists__link:focus {
	color: var( --ap4-gold, #c88b11 );
	border-bottom-color: currentcolor;
}

.ap4-services-lists__link--current,
.ap4-services-lists__link[aria-current='page'] {
	color: var( --ap4-dark-blue, #263552 ) !important;
	font-weight: 600;
}

.ap4-services-lists__link--current:hover,
.ap4-services-lists__link--current:focus,
.ap4-services-lists__link[aria-current='page']:hover,
.ap4-services-lists__link[aria-current='page']:focus {
	color: var( --ap4-dark-blue, #263552 ) !important;
}

/* Sidebar template: first paragraph lede + Bootstrap border-gold utility. */
.border-gold {
	border-color: var( --ap4-gold, #c88b11 ) !important;
}

.ap4-entry-lede > p {
	margin-top: 0;
	margin-bottom: 0;
}

.ap4-btn-twitter {
	background-color: var( --ap4-twitter ) !important;
}

.ap4-btn-twitter:hover,
.ap4-btn-twitter:focus-visible {
	background-color: #1a8cd8 !important;
	color: #fff !important;
}

.ap4-btn-linkedin {
	background-color: var( --ap4-linkedin ) !important;
}

.ap4-btn-linkedin:hover,
.ap4-btn-linkedin:focus-visible {
	background-color: #095195 !important;
	color: #fff !important;
}

.ap4-header-social-standard .btn {
	min-height: 2.375rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ap4-header-social-standard .bi {
	font-size: 1.125rem;
	line-height: 1;
}

.ap4-masthead {
	z-index: 1030;
}

/* Mobile: expanded nav sits over page content (does not push #primary down). */
@media ( max-width: 991.98px ) {

	.ap4-masthead {
		position: relative;
	}

	/* Default .navbar is position:relative; break that so collapse anchors to .ap4-masthead. */
	.ap4-masthead__nav.ap4-masthead__nav.navbar {
		position: static;
	}

	.ap4-masthead__nav .navbar-collapse {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		margin-top: 0 !important;
		padding: 0.75rem 1rem 1rem;
		max-height: min( 70vh, calc( 100dvh - 5rem ) );
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background-color: #fff;
		box-shadow: 0 0.35rem 1rem rgba( 38, 53, 82, 0.12 );
		border-bottom: 1px solid rgba( 38, 53, 82, 0.1 );
	}
}

/* One container for logo row + nav: no extra navbar strip on small screens; tier line on lg+ */
@media ( min-width: 992px ) {

	.ap4-masthead__top > .container > .ap4-masthead__nav {
		border-top: 1px solid rgba( 38, 53, 82, 0.1 );
	}
}

@media ( max-width: 991.98px ) {
	.ap4-masthead__top .ap4-masthead__brand .ap4-logo-mark__img,
	.ap4-masthead__top .ap4-masthead__brand .custom-logo {
		max-width: 100%;
		height: auto;
	}
}

@media ( min-width: 992px ) {
	.ap4-masthead__top .ap4-masthead__brand {
		flex-shrink: 0;
	}
}

.ap4-custom-logo-wrap .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.ap4-custom-logo-wrap .custom-logo {
	max-height: 52px;
	width: auto;
	height: auto;
}

@media ( min-width: 992px ) {
	.ap4-primary-menu > .nav-item > .nav-link {
		white-space: nowrap;
	}
}

.ap4-masthead__nav .dropdown-menu {
	min-width: 12rem;
}

@media ( min-width: 992px ) {
	.ap4-dropdown-nested.dropdown-menu {
		top: 0;
		left: 100%;
		margin-top: 0;
		margin-left: 0.125rem;
	}
}

@media ( max-width: 991.98px ) {
	.ap4-masthead__nav .dropend .dropdown-menu,
	.ap4-masthead__nav .dropdown-menu.ap4-dropdown-nested {
		position: static !important;
		transform: none !important;
		margin-left: 0.75rem;
		border: 0;
		box-shadow: none;
	}
}

/* Masthead search: same height as social buttons; light blue when empty, dark blue when focused or has text. */
.ap4-masthead__top .ap4-header-search .ap4-header-search__group {
	display: flex;
	align-items: stretch;
	min-width: 10rem;
	max-width: 16rem;
	min-height: 2.375rem;
}

.ap4-masthead__top .ap4-header-search .ap4-header-search__input {
	flex: 1 1 auto;
	width: 1%;
	min-height: 2.375rem;
	padding-top: 0.375rem;
	padding-bottom: 0.375rem;
	border-color: var( --ap4-blue, #1779ba );
	background-color: #fff;
	color: var( --ap4-blue, #1779ba );
	transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ap4-masthead__top .ap4-header-search .ap4-header-search__input::placeholder {
	color: var( --ap4-blue, #1779ba );
	opacity: 1;
}

.ap4-masthead__top .ap4-header-search .ap4-header-search__input:focus,
.ap4-masthead__top .ap4-header-search .ap4-header-search__input:not( :placeholder-shown ) {
	color: var( --ap4-dark-blue, #263552 );
	border-color: var( --ap4-dark-blue, #263552 );
	box-shadow: 0 0 0 0.2rem rgba( 38, 53, 82, 0.2 );
	outline: 0;
	z-index: 3;
}

.ap4-masthead__top .ap4-header-search .ap4-header-search__submit {
	min-height: 2.375rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-color: var( --ap4-blue, #1779ba );
	background-color: #fff;
	color: var( --ap4-blue, #1779ba );
	padding-inline: 0.65rem;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.ap4-masthead__top .ap4-header-search .ap4-header-search__submit:hover,
.ap4-masthead__top .ap4-header-search .ap4-header-search__submit:focus-visible {
	color: var( --ap4-dark-blue, #263552 );
	border-color: var( --ap4-dark-blue, #263552 );
	background-color: #fff;
}

.ap4-masthead__top .ap4-header-search:focus-within .ap4-header-search__submit {
	color: var( --ap4-dark-blue, #263552 );
	border-color: var( --ap4-dark-blue, #263552 );
}

.ap4-masthead__top .ap4-header-search:has( .ap4-header-search__input:not( :placeholder-shown ) ) .ap4-header-search__submit {
	color: var( --ap4-dark-blue, #263552 );
	border-color: var( --ap4-dark-blue, #263552 );
}

.ap4-video-hero {
	position: relative;
}

.ap4-video-hero__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.ap4-video-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	transition: all 0.25s ease;
	opacity: 0;
}

.ap4-video-hero__media:hover ~ .ap4-video-hero__overlay,
.ap4-video-hero__overlay:hover {
	opacity: 1;
}


/* Tint the frame when controls are shown (same moments as the toggle). */
.ap4-video-hero__media:hover ~ .ap4-video-hero__overlay,
[data-ap4-video-hero]:focus-within .ap4-video-hero__overlay,
[data-ap4-video-hero]:has( .ap4-video-hero__toggle:hover ) .ap4-video-hero__overlay,
[data-ap4-video-hero]:has( .ap4-video-hero__toggle:focus-visible ) .ap4-video-hero__overlay {
	background: rgba( 0, 0, 0, 0.25 );
}

/* Play / pause: fade on video hover; stay visible on the control or keyboard focus. */
.ap4-video-hero__toggle {
	opacity: 0;
	color: #fff;
	background: rgba( 0, 0, 0, 0.25 );
	border-color: transparent;
	pointer-events: auto;
	transition: opacity 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.ap4-video-hero__toggle:hover,
.ap4-video-hero__toggle:focus-visible {
	color: #fff;
	background: rgba( 0, 0, 0, 0.45 );
}

.ap4-video-hero__media:hover ~ .ap4-video-hero__overlay .ap4-video-hero__toggle,
.ap4-video-hero__toggle:hover,
.ap4-video-hero__toggle:focus-visible,
[data-ap4-video-hero]:focus-within .ap4-video-hero__overlay .ap4-video-hero__toggle {
	opacity: 1;
}

/* Touch / coarse pointers: no meaningful hover on video — keep control visible. */
@media ( hover: none ) {
	.ap4-video-hero__overlay {
		background: rgba( 0, 0, 0, 0.2 );
	}

	.ap4-video-hero__toggle {
		opacity: 1;
	}
}

.ap4-video-hero__toggle .ap4-video-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ap4-video-hero__toggle .bi {
	fill: currentcolor;
	color: inherit;
}

.ap4-video-hero__toggle .ap4-video-hero__icon--pause {
	display: none !important;
}

[data-ap4-video-hero].is-ap4-playing .ap4-video-hero__toggle .ap4-video-hero__icon--play {
	display: none !important;
}

[data-ap4-video-hero].is-ap4-playing .ap4-video-hero__toggle .ap4-video-hero__icon--pause {
	display: inline-flex !important;
}

.ap4-video-hero__text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 1.5rem 1rem;
	background: linear-gradient( transparent, rgba( 0, 0, 0, 0.72 ) );
	color: #fff;
	pointer-events: none;
}

.ap4-video-hero__text a {
	pointer-events: auto;
	color: inherit;
}

.ap4-text-block__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
	opacity: 0.85;
}

.ap4-feed-block__title {
	margin-bottom: 1.25rem;
}

.ap4-news-feed__item:last-child .border-bottom {
	border-bottom: 0 !important;
}

/* Site footer: white band, dark blue copy; stack centered on small screens. */
.ap4-site-footer {
	background-color: #fff;
	color: var( --ap4-dark-blue, #263552 );
	border-top: 1px solid rgba( 38, 53, 82, 0.12 );
}

.ap4-site-footer__custom-logo .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.ap4-site-footer__logo-img,
.ap4-site-footer__custom-logo .custom-logo {
	max-height: 52px;
	width: auto;
	height: auto;
}

.ap4-site-footer__address {
	color: var( --ap4-dark-blue, #263552 );
	opacity: 0.9;
	line-height: 1.55;
}

.ap4-site-footer__link {
	color: var( --ap4-dark-blue, #263552 );
	text-decoration: none;
	transition: color 0.15s ease, text-decoration 0.15s ease;
}

.ap4-site-footer__link:hover,
.ap4-site-footer__link:focus-visible {
	color: var( --ap4-blue, #1779ba );
	text-decoration: underline;
}

.ap4-site-footer__copyright {
	color: var( --ap4-dark-blue, #263552 );
	opacity: 0.75;
}

.ap4-site-footer__right > .d-flex:first-child {
	align-items: center;
}

.ap4-footer-social .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ap4-footer-social .btn .bi {
	line-height: 1;
}

.ap4-footer-mailing__headline {
	font-size: 0.95rem;
	letter-spacing: 0.03em;
}

.ap4-footer-mailing__cta.btn {
	font-weight: 600;
	background-color: var( --ap4-gold, #c88b11 ) !important;
	border-color: var( --ap4-gold, #c88b11 ) !important;
	color: #fff !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ap4-footer-mailing__cta.btn:hover,
.ap4-footer-mailing__cta.btn:focus-visible {
	background-color: var( --ap4-dark-gold, #923c05 ) !important;
	border-color: var( --ap4-dark-gold, #923c05 ) !important;
	color: #fff !important;
}

.ap4-footer-mailing__title {
	color: var( --ap4-dark-blue, #263552 );
	letter-spacing: 0.04em;
}

.ap4-footer-mailing__form-wrap {
	width: 100%;
	max-width: 20rem;
	margin-inline: auto;
}

@media ( min-width: 992px ) {

	.ap4-site-footer__right .ap4-footer-mailing__form-wrap {
		margin-inline: unset;
		margin-left: auto;
	}
}

.ap4-footer-mailing__input {
	border-color: rgba( 38, 53, 82, 0.25 );
	background-color: #fff;
	color: var( --ap4-dark-blue, #263552 );
	min-width: 0;
}

.ap4-footer-mailing__input::placeholder {
	color: var( --ap4-blue, #1779ba );
	opacity: 1;
}

.ap4-footer-mailing__submit {
	font-weight: 600;
	background-color: var( --ap4-orange, rgb( 248, 151, 29 ) ) !important;
	color: #fff !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ap4-footer-mailing__submit:hover,
.ap4-footer-mailing__submit:focus-visible {
	background-color: #df8820 !important;
	color: #fff !important;
}

@supports ( background: color-mix( in srgb, white, black ) ) {

	.ap4-footer-mailing__submit:hover,
	.ap4-footer-mailing__submit:focus-visible {
		background-color: color-mix( in srgb, var( --ap4-orange, rgb( 248, 151, 29 ) ) 90%, #000 10% ) !important;
	}
}

/* Parent page: child pages grid (quiet cards, no chrome). */
.ap4-page-children {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba( 38, 53, 82, 0.08 );
}

@media ( min-width: 992px ) {

	.ap4-page-children {
		margin-top: 2.5rem;
		padding-top: 2.5rem;
	}
}

.ap4-page-children__card {
	background-color: transparent;
	border: 0;
	box-shadow: none;
}

.ap4-page-children__title {
	color: var( --ap4-dark-gold, #923c05 );
	font-weight: 700;
}

.ap4-page-children__excerpt {
	color: rgba( 38, 53, 82, 0.85 );
	font-size: 1rem;
	line-height: 1.5;
}

.ap4-page-children__excerpt p:last-child {
	margin-bottom: 0;
}

.ap4-page-children__discover {
	border: 1px solid var( --ap4-blue, #1779ba );
	background-color: transparent;
	color: var( --ap4-blue, #1779ba );
	text-decoration: none;
	padding: var( --bs-btn-padding-y, 0.375rem ) var( --bs-btn-padding-x, 0.75rem );
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ap4-page-children__discover:hover,
.ap4-page-children__discover:focus-visible {
	background-color: var( --ap4-dark-blue, #263552 );
	border-color: var( --ap4-dark-blue, #263552 );
	color: #fff;
}

/* Case studies archive: allow page content to fill the viewport (override Bootstrap container caps at every breakpoint). */
.post-type-archive-ap_casestudy .container,
.post-type-archive-ap_casestudy .container-sm,
.post-type-archive-ap_casestudy .container-md,
.post-type-archive-ap_casestudy .container-lg,
.post-type-archive-ap_casestudy .container-xl,
.post-type-archive-ap_casestudy .container-xxl {
	max-width: 100%;
}

/* Case studies archive: inline search + WP-category dropdown + VC-style pill filter + card grid. */
.ap4-case-study-archive__controls {
	width: 100%;
	max-width: 100%;
	align-items: stretch;
}

.ap4-case-study-archive__search-group {
	border-radius: var( --bs-border-radius, 0.375rem );
	overflow: hidden;
	background-color: var( --bs-light, #f8f9fa );
	transition: box-shadow 0.15s ease;
}

.ap4-case-study-archive__search-group:focus-within {
	box-shadow: 0 0 0 0.2rem rgba( 23, 121, 186, 0.25 );
}

.ap4-case-study-archive__search-icon {
	color: var( --ap4-dark-blue, #263552 );
	padding-inline-start: 0.875rem;
}

.ap4-case-study-archive__search-input {
	color: var( --ap4-dark-blue, #263552 );
}

.ap4-case-study-archive__search-input:focus {
	background-color: var( --bs-light, #f8f9fa );
	color: var( --ap4-dark-blue, #263552 );
	box-shadow: none;
}

.ap4-case-study-archive__search-input::placeholder {
	color: rgba( 38, 53, 82, 0.55 );
	opacity: 1;
}

/* Hide native clear button on WebKit/IE to keep our custom one. */
.ap4-case-study-archive__search-input::-webkit-search-cancel-button,
.ap4-case-study-archive__search-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.ap4-case-study-archive__search-clear {
	color: var( --ap4-dark-blue, #263552 );
	padding-inline: 0.9rem;
	cursor: pointer;
}

.ap4-case-study-archive__search-clear:hover,
.ap4-case-study-archive__search-clear:focus-visible {
	color: var( --ap4-blue, #1779ba );
	background-color: var( --bs-light, #f8f9fa );
}

/* Case studies archive: WP-category dropdown filter. */
.ap4-case-study-archive__category {
	min-width: 14rem;
}

@media ( max-width: 767.98px ) {
	.ap4-case-study-archive__category {
		min-width: 0;
	}
}

.ap4-case-study-archive__category-select {
	border-radius: var( --bs-border-radius, 0.375rem );
	background-color: var( --bs-light, #f8f9fa );
	border-color: transparent;
	color: var( --ap4-dark-blue, #263552 );
	padding-inline-start: 0.875rem;
	padding-inline-end: 2.5rem;
	transition: box-shadow 0.15s ease;
}

.ap4-case-study-archive__category-select:hover {
	background-color: var( --bs-light, #f8f9fa );
}

.ap4-case-study-archive__category-select:focus,
.ap4-case-study-archive__category-select:focus-visible {
	background-color: var( --bs-light, #f8f9fa );
	border-color: transparent;
	color: var( --ap4-dark-blue, #263552 );
	box-shadow: 0 0 0 0.2rem rgba( 23, 121, 186, 0.25 );
	outline: 0;
}

.ap4-case-study-archive__filter-nav {
	gap: 0.125rem;
}

.ap4-case-study-archive__filter-btn {
	color: var( --ap4-dark-blue, #263552 );
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ap4-case-study-archive__filter-btn:hover,
.ap4-case-study-archive__filter-btn:focus-visible {
	color: var( --ap4-dark-blue, #263552 );
	background-color: rgba( 248, 249, 250, 0.65 ) !important;
	outline: 0;
}

.ap4-case-study-archive__filter-btn:focus-visible {
	box-shadow: 0 0 0 0.2rem rgba( 23, 121, 186, 0.25 );
}

.ap4-case-study-archive__filter-btn.bg-light {
	color: var( --ap4-dark-blue, #263552 );
}

.ap4-case-study-card {
	box-shadow: none;
}

/* Newsletter archive + [ap4_newsletters_cards]: text-only cards, two per row on large screens. */
.ap4-newsletter-card {
	box-shadow: none;
}

.ap4-case-study-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap4-case-study-card__thumb-placeholder {
	background-color: var( --ap4-light-blue, #cfe9f6 );
}

.ap4-case-study-card__more {
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var( --ap4-blue, #1779ba ) !important;
	font-weight: 600;
	padding-inline: var( --bs-btn-padding-x, 0.75rem );
	padding-block: var( --bs-btn-padding-y, 0.375rem );
	transition: color 0.15s ease, background-color 0.15s ease;
}

.ap4-case-study-card__more:hover,
.ap4-case-study-card__more:focus-visible {
	color: var( --ap4-dark-blue, #263552 ) !important;
	background-color: transparent !important;
}

/* Podcast archive cards: desktop/tablet full-width row with image + full description + player. */
.ap4-podcast-card__description p:last-child {
	margin-bottom: 0;
}

.ap4-podcast-card__player iframe,
.ap4-podcast-card__player audio,
.ap4-podcast-card__player .wp-block-embed,
.ap4-podcast-card__player .wp-block-audio {
	width: 100%;
	max-width: 100%;
}

.ap4-podcast-newsletter-feed__item {
	padding-bottom: 1rem !important;
	margin-bottom: 0 !important;
	border-bottom: 1px solid var( --ap4-blue, #1779ba );
}

.ap4-podcast-newsletter-feed__item:last-child {
	border-bottom: 0;
	padding-bottom: 0 !important;
}

/* Podcast + Newsletter page template — column archive links */
.ap4-page-podcast-newsletter .title-fancy,
.ap4-page-podcast-newsletter .title-fancy.title-fancy-eloquent,
.ap4-page-podcast-newsletter .title-fancy-eloquent,
#ap4-podcast-newsletter-heading.title-fancy,
#ap4-podcast-newsletter-heading.title-fancy.title-fancy-eloquent,
#ap4-podcast-newsletter-heading.title-fancy-eloquent {
	font-family: inherit;
	font-style: normal;
	font-synthesis: auto;
	letter-spacing: normal;
}

.ap4-page-podcast-newsletter .ap4-page-podcast-newsletter__archive-link {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
}

.ap4-page-podcast-newsletter .ap4-page-podcast-newsletter__archive-link:hover,
.ap4-page-podcast-newsletter .ap4-page-podcast-newsletter__archive-link:focus-visible {
	color: var( --ap4-dark-gold, #923c05 ) !important;
	text-decoration: underline;
}

@media ( min-width: 992px ) {

	.ap4-podcast-card__desktop {
		min-height: 18rem;
	}

	.ap4-podcast-card__thumb {
		min-height: 100%;
	}
}

/**
 * Generic theme blue button (use with Bootstrap `.btn` / `.btn-sm`, etc.).
 * `.btn.ap4-btn-blue` beats Bootstrap’s default `.btn` text color in the cascade.
 */
.btn.ap4-btn-blue {
	background-color: var( --ap4-blue, #1779ba ) !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.btn.ap4-btn-blue:hover,
.btn.ap4-btn-blue:focus-visible,
p.btn.ap4-btn-blue:focus-within {
	background-color: var( --ap4-dark-blue, #263552 ) !important;
	color: #fff !important;
}

.btn.ap4-btn-white {
	background-color: #fff !important;
	border: 1px solid var( --ap4-dark-blue, #263552 ) !important;
	box-shadow: none !important;
	color: var( --ap4-dark-blue, #263552 ) !important;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.ap4-btn-white:hover,
.btn.ap4-btn-white:focus-visible {
	background-color: var( --ap4-light-blue, #cfe9f6 ) !important;
	border-color: var( --ap4-dark-blue, #263552 ) !important;
	color: var( --ap4-dark-blue, #263552 ) !important;
}

/**
 * Block editor / legacy markup: <p class="btn btn-sm ap4-btn-blue"><a>…</a></p>
 * Keep styles on the wrapper; the link matches the button’s text treatment.
 */
p.btn.ap4-btn-blue a {
	color: inherit !important;
	text-decoration: inherit !important;
	font-weight: inherit;
	cursor: pointer;
}

p.btn.ap4-btn-blue a:hover,
p.btn.ap4-btn-blue a:focus-visible {
	color: inherit !important;
	text-decoration: inherit !important;
}

/* [ap4_posts_cards] / CPT card feeds — archive CTA row (not card “Read more” links). */
.ap4-posts-cards-feed__archive {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

@media ( min-width: 992px ) {

	.ap4-posts-cards-feed__archive {
		margin-top: 3.25rem;
		margin-bottom: 3.25rem;
	}
}

.btn.btn-sm.ap4-posts-cards-feed__archive-btn {
	padding: 0.5rem 1.35rem !important;
	border-radius: var( --bs-border-radius, 0.375rem );
}

/* Gravity Forms — primary submit (matches theme blue; Bootstrap-like padding). */
.gform_wrapper input.gform_button.button,
.gform_wrapper input[type="submit"].gform_button,
.gform_wrapper button.gform_button.button {
	background-color: var( --ap4-blue, #1779ba ) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var( --bs-border-radius, 0.375rem );
	padding: var( --bs-btn-padding-y, 0.375rem ) var( --bs-btn-padding-x, 0.75rem ) !important;
	font-weight: var( --bs-btn-font-weight, 400 );
	line-height: var( --bs-btn-line-height, 1.5 );
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	box-shadow: none !important;
}

.gform_wrapper input.gform_button.button:hover,
.gform_wrapper input[type="submit"].gform_button:hover,
.gform_wrapper button.gform_button.button:hover,
.gform_wrapper input.gform_button.button:focus-visible,
.gform_wrapper input[type="submit"].gform_button:focus-visible,
.gform_wrapper button.gform_button.button:focus-visible {
	background-color: var( --ap4-dark-blue, #263552 ) !important;
	color: #fff !important;
	border: 0 !important;
}

@media ( max-width: 767.98px ) {
	.ap4-video-hero--breakout {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc( 50% - 50vw );
		margin-right: calc( 50% - 50vw );
	}

	.ap4-video-hero--breakout > .container {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}
}

/* Page hierarchy CTA — full-width gold band below main. */
.ap4-impact-business-cta {
	width: 100%;
	background-color: var( --ap4-gold, #c88b11 );
}

.ap4-impact-business-cta__subtitle {
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	line-height: 1.35;
}

.ap4-impact-business-cta .ap4-impact-business-cta__body a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ap4-impact-business-cta .ap4-impact-business-cta__body a:hover,
.ap4-impact-business-cta .ap4-impact-business-cta__body a:focus-visible {
	color: var( --ap4-light-blue, #cfe9f6 );
}

.ap4-impact-business-cta__btn {
	background-color: var( --ap4-blue, #1779ba ) !important;
	color: #fff !important;
	border-radius: var( --bs-border-radius, 0.375rem );
	padding: 0.5rem 1.25rem !important;
	font-weight: 600;
	box-shadow: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ap4-impact-business-cta__btn:hover,
.ap4-impact-business-cta__btn:focus-visible {
	background-color: var( --ap4-dark-blue, #263552 ) !important;
	color: #fff !important;
}

/* Theme popup — alternate layouts (center modal uses Bootstrap). */
.ap4-theme-popup-root {
	position: relative;
}

.ap4-theme-popup__panel {
	position: fixed;
	z-index: 1040;
	pointer-events: auto;
}

.ap4-theme-popup__inner {
	background-color: #fff;
	border-radius: var( --bs-border-radius, 0.375rem );
	max-height: min( 85vh, 32rem );
	overflow: auto;
}

.ap4-theme-popup__panel--side-left {
	left: 0;
	top: 50%;
	transform: translateY( -50% );
	width: 300px;
	max-width: min( 300px, calc( 100vw - 1rem ) );
	padding: 0 0 0 0.5rem;
}

.ap4-theme-popup__panel--side-left .ap4-theme-popup__inner {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.ap4-theme-popup__panel--footer {
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0;
	z-index: 1040;
}

.ap4-theme-popup__panel--footer .ap4-theme-popup__inner {
	width: 100%;
	border-radius: var( --bs-border-radius, 0.375rem ) var( --bs-border-radius, 0.375rem ) 0 0;
	max-height: min( 50vh, 22rem );
	border-bottom: 0;
	box-shadow: 0 -0.35rem 1.25rem rgba( 0, 0, 0, 0.12 ) !important;
}

.ap4-theme-popup__panel--footer .ap4-theme-popup__toolbar {
	padding: 0.5rem 0.75rem 0;
}

.ap4-theme-popup__panel--footer .ap4-theme-popup__body {
	padding: 0;
}

.ap4-theme-popup__panel--notification-top-right {
	top: calc( var( --ap4-masthead-popup-offset, 5.75rem ) + env( safe-area-inset-top, 0px ) );
	right: max( 0.75rem, env( safe-area-inset-right, 0px ) );
	left: auto;
	width: min( 360px, calc( 100vw - 1.5rem ) );
	z-index: 1025;
}

.ap4-theme-popup__panel--notification-top-right .ap4-theme-popup__inner {
	max-height: min( 70vh, 24rem );
}

.ap4-theme-popup__panel--side-left .ap4-theme-popup__toolbar,
.ap4-theme-popup__panel--notification-top-right .ap4-theme-popup__toolbar {
	padding: 0.5rem 0.5rem 0;
}

.ap4-theme-popup__panel--side-left .ap4-theme-popup__body,
.ap4-theme-popup__panel--notification-top-right .ap4-theme-popup__body {
	padding: 0;
}

/* Popup content layouts (built from title / description / button / image settings) */
.ap4-theme-popup-modal__close {
	z-index: 5;
}

.ap4-theme-popup__layout--image-top .ap4-theme-popup__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap4-theme-popup__layout--image-bg {
	position: relative;
	min-height: 14rem;
}

.ap4-theme-popup__layout--image-bg .ap4-theme-popup__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.ap4-theme-popup__layout--image-bg .ap4-theme-popup__bg-overlay {
	position: relative;
	z-index: 1;
	min-height: 14rem;
	background: linear-gradient( 180deg, rgba( 38, 53, 82, 0.2 ) 0%, rgba( 38, 53, 82, 0.88 ) 65%, rgba( 38, 53, 82, 0.95 ) 100% );
}

.ap4-theme-popup__layout--image-left .ap4-theme-popup__media-side {
	min-height: 11rem;
}

@media ( min-width: 768px ) {

	.ap4-theme-popup__layout--image-left .ap4-theme-popup__media-side {
		min-height: 100%;
	}
}

.ap4-theme-popup__layout--image-left .ap4-theme-popup__img-side {
	display: block;
	min-height: 11rem;
	object-fit: cover;
}

@media ( min-width: 768px ) {

	.ap4-theme-popup__layout--image-left .ap4-theme-popup__img-side {
		min-height: 16rem;
	}
}

/*
 * Block gallery — responsive column counts (aligns with Bootstrap sm/md/lg).
 * Below sm: single column; sm: 2; md: 4; lg: 6. Items are square thumbnails; captions show on hover/focus.
 */
.wp-block-gallery,
.wp-block-gallery.has-nested-images,
.wp-block-gallery.is-layout-flex {
	display: grid !important;
	flex-wrap: unset !important;
	grid-template-columns: repeat( 1, minmax( 0, 1fr ) );
	gap: var( --wp--style--gallery-gap, 1rem );
	align-items: start;
}

.wp-block-gallery.has-nested-images figure.wp-block-image,
.wp-block-gallery.has-nested-images .wp-block-image {
	width: auto !important;
	min-width: 0;
	max-width: 100%;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin: 0 !important;
}

.wp-block-gallery.has-nested-images figure.wp-block-image > a {
	display: block;
	height: 100%;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wp-block-gallery .blocks-gallery-grid {
	display: grid !important;
	grid-template-columns: repeat( 1, minmax( 0, 1fr ) );
	gap: var( --wp--style--gallery-gap, 1rem );
	width: 100% !important;
}

.wp-block-gallery .blocks-gallery-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.wp-block-gallery .blocks-gallery-item > figure {
	position: absolute;
	inset: 0;
	margin: 0;
	display: block;
}

.wp-block-gallery .blocks-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * Core block CSS (.wp-block-gallery.has-nested-images) adds figure:has(figcaption)::before
 * with backdrop-filter blur as a scrim. Match caption behavior: hide until hover/focus.
 */
.wp-block-gallery.has-nested-images figure.wp-block-image:has( figcaption )::before {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has( figcaption ):hover::before,
.wp-block-gallery.has-nested-images figure.wp-block-image:has( figcaption ):focus-within::before {
	opacity: 1;
}

/* Captions (including .wp-element-caption): overlay foot; hidden until hover/focus. */
.wp-block-gallery figure figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0.35rem 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	background: rgba( 38, 53, 82, 0.78 );
	color: #fff;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	z-index: 1;
}

.wp-block-gallery figure:hover figcaption,
.wp-block-gallery figure:focus-within figcaption,
.wp-block-gallery .blocks-gallery-item:hover figcaption,
.wp-block-gallery .blocks-gallery-item:focus-within figcaption {
	opacity: 1;
}

@media ( min-width: 576px ) {

	.wp-block-gallery,
	.wp-block-gallery.has-nested-images,
	.wp-block-gallery.is-layout-flex,
	.wp-block-gallery .blocks-gallery-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) ) !important;
	}
}

@media ( min-width: 768px ) {

	.wp-block-gallery,
	.wp-block-gallery.has-nested-images,
	.wp-block-gallery.is-layout-flex,
	.wp-block-gallery .blocks-gallery-grid {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) ) !important;
	}
}

@media ( min-width: 992px ) {

	.wp-block-gallery,
	.wp-block-gallery.has-nested-images,
	.wp-block-gallery.is-layout-flex,
	.wp-block-gallery .blocks-gallery-grid {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) ) !important;
	}
}

/* External articles + NVHPF video shortcode feeds */
.text-ap4-dark-blue {
	color: var( --ap4-dark-blue, #263552 ) !important;
}

.ap4-external-article-feed__staff-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.65rem 0.25rem 0.35rem !important;
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.2;
	background-color: var( --ap4-light-blue, #cfe9f6 ) !important;
	color: var( --ap4-dark-blue, #263552 ) !important;
	border: 1px solid rgba( 38, 53, 82, 0.12 );
}

.ap4-external-article-feed__staff-pill:hover,
.ap4-external-article-feed__staff-pill:focus-visible {
	color: var( --ap4-blue, #1779ba ) !important;
	background-color: #fff !important;
}

.ap4-external-article-feed__staff-img {
	width: 1.65rem;
	height: 1.65rem;
	object-fit: cover;
	flex-shrink: 0;
}

.ap4-external-article-feed__staff-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	font-size: 0.6875rem;
	font-weight: 600;
	background-color: rgba( 38, 53, 82, 0.12 );
	color: var( --ap4-dark-blue, #263552 );
	flex-shrink: 0;
}

.ap4-external-article-feed__staff-name {
	white-space: nowrap;
	max-width: 12rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media ( max-width: 575.98px ) {

	.ap4-external-article-feed__staff-name {
		max-width: 9rem;
	}
}

.ap4-nvhfp-videos-feed__embed iframe {
	width: 100%;
	height: 100%;
}

/* NVHPF page template feed: padded separator + HR between posts (avoids margin collapse); full-width embed + 2px black frame. */
.ap4-nvhpf-videos-feed--page .d-flex.flex-column.gap-5 {
	gap: 0 !important;
}

.ap4-nvhpf-videos-feed--page .ap4-nvhfp-videos-feed__item {
	flex-shrink: 0;
}

.ap4-nvhpf-videos-feed--page .ap4-nvhpf-videos-feed__separator {
	padding: 2rem 0;
	flex-shrink: 0;
	width: 100%;
}

.ap4-nvhpf-videos-feed--page .ap4-nvhpf-videos-feed__separator .ap4-nvhpf-videos-feed__between {
	margin: 0;
	border: 0;
	border-top: 1px solid #000;
	opacity: 1;
}

.ap4-nvhpf-videos-feed--page .ap4-nvhfp-videos-feed__embed.ratio {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0;
	margin-right: 0;
	border: 2px solid #000;
	box-sizing: border-box;
}
