/* DJHS custom style overrides. */

/* Section spacing controls (module Settings tab). */

.section.section--no-pt,
.section--heading.section--no-pt { padding-top: 0; }
.section.section--no-pb,
.section--heading.section--no-pb { padding-bottom: 0; }

@media (min-width: 668px) {
	.section.section--no-pt-d,
	.section--heading.section--no-pt-d { padding-top: 0; }
	.section.section--no-pb-d,
	.section--heading.section--no-pb-d { padding-bottom: 0; }
}

@media (max-width: 667px) {
	.section.section--no-pt-mb,
	.section--heading.section--no-pt-mb { padding-top: 0; }
	.section.section--no-pb-mb,
	.section--heading.section--no-pb-mb { padding-bottom: 0; }
}

/* Oral History: black & white image treatment. */

.team-card__visual img,
.oral-history-card__visual img {
	filter: grayscale(1);
	transition: filter 0.4s ease;
}
.team-card:hover .team-card__visual img {
	filter: grayscale(0);
}

/* Logo Wall: fixed logo box constraints. */

.partner-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.partner-list__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 120px;
	padding: 12px;
}
.partner-list__item > div,
.partner-list__item > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.partner-list__item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.slider-marquee__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 90px;
	flex: 0 0 auto;
	padding: 0 20px;
}
.slider-marquee__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media (max-width: 667px) {
	.partner-list { gap: 24px; }
	.partner-list__item { width: 140px; height: 90px; }
}

/* Content Listing slider: lock slide image ratio. */
.feature-slider .article-card__visual img {
	width: 100%;
	aspect-ratio: 856 / 570;
	height: auto;
	object-fit: cover;
}

/* Oral History grid: dynamic filtering can return 1-2 results. */
.teams {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* Collection single image slider only: force uniform square slides with crop-to-fill. */
.single-djhs_collection .images-slider .article-card__visual {
	aspect-ratio: 1 / 1;
}
.single-djhs_collection .images-slider .article-card__visual img,
.single-djhs_collection .images-slider .article-card__visual a {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.single-djhs_collection .images-slider .article-card__visual a img {
	height: 100%;
}
/* Embed / Form block: responsive embeds. */
.embed-holder {
	width: 100%;
}
.embed-holder iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}
/* Video embeds: responsive 16:9 box. */
.embed-holder--video {
	position: relative;
	padding-top: 56.25%; /* 9 / 16 */
	height: 0;
	overflow: hidden;
}
.embed-holder--video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Collection/Exhibit hero: clear the absolute back-link. */
@media (min-width: 1024px) {
	/* Back-link is absolute; push content clear of it. */
	.single-djhs_collection .section-hero .hero-tile {
		align-items: start;
	}
	.single-djhs_collection .section-hero .hero-tile__content {
		margin-top: 50px;
	}
}

/* Oral History cards: fill the circular avatar. */
.team-card__visual {
	width: 214px;
	height: 214px;
}
/* Image sits above the fallback silhouette. */
.team-card__visual img {
	position: relative;
	z-index: 1;
	/* Zoom so the crop fills the circle. */
	width: 118%;
	height: 100%;
	left: -9%;
	max-width: none;
	object-fit: cover;
}
.team-card__visual:has(img)::before {
	display: none;
}

/* Oral History transcript modal. */
.transcript-modal {
	max-width: 800px;
	width: 90vw;
	background: #fff;
	border-radius: 8px;
	max-height: 85vh;
	overflow: hidden;
	position: relative;
}
.transcript-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #171e32;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
	transition: background 0.2s ease, color 0.2s ease;
}
.transcript-modal__close:hover {
	background: #171e32;
	color: #fff;
}
.transcript-modal__inner {
	padding: 40px;
	max-height: 85vh;
	overflow-y: auto;
	margin: 0;
}
.transcript-modal__inner h3 {
	margin-top: 0;
	padding-right: 40px; /* keep heading clear of the close button */
}
@media (max-width: 767px) {
	.transcript-modal__inner {
		padding: 25px;
	}
}

/* Oral History single: responsive video that fits the content column. */
.video-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}
.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
/* Slider gallery: a slide that carries a link keeps the enlarged lightbox image
   clickable through to it, so show a pointer instead of the zoom cursor. */
.fancybox__container.has-slide-link .f-panzoom__content,
.fancybox__container.has-slide-link .f-panzoom__content img {
	cursor: pointer;
}

.menu__link {
	font-family: "angie-sans", sans-serif;
	font-weight: 600;
}
@media (min-width: 1280px) {
	.menu__link {
		font-size: 13px;
	}
	.header-btns .btn,
	.header-btns input[type=button],
	.header-btns input[type=reset],
	.header-btns input[type=submit],
	.header-btns button[type=submit] {
		font-size: 13px;
	}
}

html.nav-animated .header[data-inview] [data-anim],
html.nav-animated .header[data-inview].is-inview [data-anim] {
	transition: none !important;
	animation: none !important;
}