/**
 * Individual Collection — styles ported from pg-core-child's single-collection
 * (template-parts/collection/main.css, single-collection.css, expandable.css,
 * and the collection-featured card). Scoped to the .individual-collection root.
 *
 * pg-core variables that do not exist in this theme are aliased below to the
 * speeches theme equivalents so the ported rules resolve correctly.
 */

.individual-collection {
	--pgsp-grey: var(--c-gray-white);
	--pgsp-theme-color: var(--c-blue-royal);
	--byu-grey-dark: var(--c-gray-dark);
	--byu-grey-medium: var(--c-gray-medium);
	--byu-grey-medium-dark: var(--c-gray-dark);
	--source-serif-pro: var(--f-source-serif-pro);

	display: block;
}

/* Links inherit their surrounding color instead of the browser's default
   link/visited colors — so clicked links never turn purple. Wrapped in
   :where() to keep specificity at zero, so links that set their own color
   (cross-links, card titles, etc.) still win. Underline on hover only, where
   the source opted in (e.g. expandable body links). */
:where(.individual-collection) a {
	color: inherit;
	text-decoration: none;
}

/* ── Shared utilities (scoped) ─────────────────────────────────────────── */
.individual-collection .hidden {
	display: none;
}

.individual-collection .section {
	box-sizing: border-box;
}

/* ── Collection main (banner, cross-links, series, podcast, ToTM) ──────── */
.collection-main {
	display: flex;
	flex-direction: column;
}

.collection-main__header-wrapper {
	display: flex;
	justify-content: center;
	background-image: var(--banner-mobile-background);
	background-size: cover;
	background-position: center;
}

.collection-main__header {
	width: 100%;
	max-width: calc(1024px - 2rem);
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 32px;
	font-weight: 400;
	color: var(--byu-white);
	padding: 0 2rem;
	margin: 1rem auto;
	z-index: 1;
}

.collection-main__cross-links {
	grid-area: crosslinks;
	background-color: var(--pgsp-grey);
	color: var(--byu-grey-dark);
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.6875rem;
	line-height: 13px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 0.625rem 0;
	display: flex;
}

.collection-main__cross-links--large-viewport {
	margin-bottom: 19px;
}

.collection-main__cross-links--small-viewport {
	display: none;
}

.cross-links--container {
	display: inline-flex;
	align-items: center;
	margin: 0 auto;
}

.cross-links__title {
	padding-right: 0.8125rem;
	display: inline;
}

.title__button--arrow {
	display: none;
	width: 22px;
	height: 14px;
	cursor: pointer;
}

.cross-links__individual {
	color: var(--pgsp-theme-color);
	padding: 0.4675rem 0.8125rem;
	border-radius: 5px;
	cursor: pointer;
}

.cross-links__individual:hover {
	background-color: rgba(219, 219, 219, 0.5);
}

.cross-links__individual.current {
	background-color: #dbdbdb;
}

.cross-links__separator {
	color: #6E6B6B;
	padding: 0.25rem;
}

.collection-main__description {
	font-family: var(--source-serif-pro);
	font-size: 14px;
	line-height: 1.5;
	padding: 0 2rem;
	margin-top: 2rem;
}

/* Collapsed intro shows at most 5 lines. 5 lines × 1.5 line-height = 7.5em,
   tied to the element's font-size so it stays 5 lines if the type scales.
   Extra .individual-collection prefix raises specificity above the generic
   .expandable__element height. */
.individual-collection .collection-main__description .expandable__element {
	height: 7.5em;
}

.collection-main__description .expandable__spacer {
	width: 1px;
	display: block;
	align-self: center;
	flex: 1 0 auto;
	border-bottom: solid 1px #d3d2d2;
}

/* Both buttons, so "Show More" and "Show Less" are spaced and inset
   identically — letter-spacing in particular is absent from the generic
   .expandable__button rule, so scoping it to the show button made that
   one measurably wider.

   Extra .individual-collection prefix for the same reason as the
   .expandable__element height above: without it this ties with the
   generic .individual-collection .expandable__button rule, which is
   declared later and would win, dropping the side margins that separate
   the buttons from the spacer rules. */
.individual-collection .collection-main__description .expandable__button {
	font-weight: 500;
	letter-spacing: 1.69px;
	margin: 1rem;
}

.collection-main__series {
	padding: 0 2rem;
	margin-top: 1rem;
}

.collection-main__mini-header {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 12px;
	font-weight: 500;
	color: #575757;
	text-transform: uppercase;
	letter-spacing: 1.56px;
	margin-bottom: 0.5rem;
}

.collection-main__series-video {
	position: relative;
	height: 50vw;
	width: 100%;
	max-height: 180px;
	max-width: 320px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	cursor: pointer;
}

/* Dark scrim that fades in with the play button, matching Inspiring Shorts */
.collection-main__series-video::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.collection-main__series-icon-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.collection-main__series-icon {
	height: 29px;
	width: 29px;
	margin-left: 4px;
	opacity: 1;
	z-index: 1;
}

.collection-main__series-video-image {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.collection-main__series-video:hover::before,
.collection-main__series-video:focus-visible::before,
.collection-main__series-video:hover .collection-main__series-icon-wrapper,
.collection-main__series-video:focus-visible .collection-main__series-icon-wrapper {
	opacity: 1;
}

.collection-main__series-video:hover .collection-main__series-video-image,
.collection-main__series-video:focus-visible .collection-main__series-video-image {
	transform: scale(1.02);
}

.collection-main__series-right-container {
	display: none;
}

.collection-main__podcast {
	padding: 0 2rem;
	margin-top: 1rem;
}

.individual-collection .podcast-card {
	box-shadow: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-rows: auto 1.8rem auto;
}

.podcast-card__image {
	justify-self: left;
}

.podcast-card__image img {
	width: 200px;
	max-width: 100%;
	height: auto;
}

.podcast-card__subscribe {
	justify-self: left;
	font-size: 1.3125rem;
	font-weight: 500;
	font-family: var(--ibm-plex-sans-ssm);
	color: #575757;
	display: flex;
	height: fit-content;
	margin-top: 10px;
}

.podcast-card__podcast-links {
	/* Mobile: platform links stack below the "Subscribe" label (single-column
	   grid). At 600px+ they move beside the label in the desktop layout. */
	display: flex;
	flex-direction: column;
	height: fit-content;
	max-width: 170px;
	margin-top: 20px;
}

.podcast-page-card__follow-button__link {
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	margin: 2px;
	border: var(--byu-grey-medium) 1px solid;
	border-radius: 4px;
	height: fit-content;
}

.podcast-page-card__follow-button__link:hover {
	background-color: var(--c-gray-white);
	box-shadow: 0 0 5px #ccc;
}

.podcast-page-card__link-image {
	height: 20px;
	width: 20px;
	margin-right: 0.1rem;
	margin-left: 0.5rem;
}

.podcast-page-card__link-text {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 12px;
	font-weight: 500;
	color: #575757;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin: 5px;
}

@media (min-width: 600px) {

	.individual-collection .podcast-card {
		grid-template-columns: 200px auto;
		grid-column-gap: 18px;
		grid-template-rows: auto 1fr;
	}

	.podcast-card__image {
		grid-column: 1;
		grid-row: 1 / 3;
	}

	.podcast-card__subscribe {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		margin: 0;
	}

	.podcast-card__podcast-links {
		display: flex;
		grid-column: 2;
		grid-row: 2;
		align-self: end;
		margin-bottom: 8px;
		/* Column so every pill stretches to the container width (align-items
		   defaults to stretch) — keeps all platform buttons the same width. */
		flex-direction: column;
		max-width: 170px;
		margin-top: 0;
	}
}

.collection-main__totm {
	width: calc(100% - 4rem);
	display: flex;
	flex-direction: column;
	padding: 1rem 0 3rem;
	border-top: 1px solid #d3d2d2;
	border-bottom: 1px solid #d3d2d2;
	margin: 2.5rem auto 0;
}

.collection-main__totm-image {
	display: flex;
}

.collection-main__totm-image img {
	max-width: 100%;
	height: auto;
}

.collection-main__totm-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.collection-main__totm-event-tag {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 10px;
	font-weight: 500;
	color: var(--byu-grey-dark);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 6px 10px;
	border: 1px solid var(--byu-grey-medium);
	border-radius: 3px;
	margin-top: 2rem;
}

.collection-main__totm-title {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 24px;
	font-weight: 400;
	color: #075ab9;
	margin: 1.25rem 0;
}

.collection-main__totm-speaker {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 13px;
	font-weight: 500;
	color: #575757;
	text-transform: uppercase;
	letter-spacing: 0.47px;
}

.collection-main__totm-date {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 11px;
	font-style: italic;
	color: #575757;
	text-transform: uppercase;
	letter-spacing: 0.91px;
	margin-top: 0.75rem;
}

.collection-main__totm-event-tag:hover {
	color: var(--byu-white);
	background-color: var(--byu-grey-medium-dark);
	border-color: var(--byu-grey-medium-dark);
	cursor: pointer;
}

.collection-main__totm-title:hover {
	color: #002e5d;
}

.collection-main__totm-speaker:hover {
	color: #151515;
}

@media (min-width: 640px) {

	.collection-main {
		display: grid;
		grid-template-columns: 6fr 7fr;
		grid-template-areas:
			"header header"
			"crosslinks crosslinks"
			"bodtxt bodtxt"
			"totm series"
			"totm podcasts";
	}

	.collection-main__header-wrapper {
		grid-area: header;
	}

	.collection-main__description {
		grid-area: bodtxt;
	}

	.collection-main__series {
		grid-area: series;
		padding-left: 0;
	}

	.collection-main__series-video {
		max-height: 140px;
		max-width: 255px;
	}

	.collection-main__podcast {
		grid-area: podcasts;
		padding: 0 2rem 3.5rem 0;
	}

	.collection-main__totm {
		grid-area: totm;
		border: none;
		margin-top: 0;
	}
}

@media (min-width: 800px) {

	.collection-main__header-wrapper {
		background-image: var(--banner-desktop-background);
	}

	.collection-main__header {
		font-size: 39px;
		padding: 1.5rem 2rem;
	}

	.collection-main__series {
		display: flex;
		flex-direction: column;
	}

	.collection-main__series-right-container {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		margin-top: 1.5rem;
	}

	.collection-main__youtube-logo {
		margin-top: 0.75rem;
		max-width: 90px;
		height: auto;
	}
}

@media (min-width: 1024px) {

	.collection-main {
		grid-template-columns: minmax(1rem, auto) 570px 390px minmax(1rem, auto);
		grid-template-areas:
			"header header header header"
			"crosslinks crosslinks crosslinks crosslinks"
			". bodtxt series ."
			". totm podcasts .";
	}

	.collection-main__header {
		font-size: 50px;
		padding: 2rem;
	}

	.collection-main__description {
		padding: 0 3rem 0 1rem;
		margin-top: 3rem;
	}

	.collection-main__series {
		flex-direction: row;
	}

	.collection-main__series-video {
		height: 140px;
		width: 250px;
	}

	.collection-main__series-right-container {
		align-self: flex-start;
		padding-left: 1rem;
		margin-top: 2.5rem;
	}

	.collection-main__podcast {
		padding-left: 0;
		padding-right: 0;
	}

	.collection-main__totm {
		border-top: none;
		margin-top: 0;
		margin-left: 1rem;
	}
}

@media (max-width: 1080px) {

	.collection-main__cross-links--large-viewport {
		display: none;
	}

	.collection-main__cross-links--small-viewport {
		display: inline;
	}

	.cross-links--container {
		flex-flow: column wrap;
		align-items: flex-start;
		margin-left: calc(2rem - 13px);
		width: calc(100% - 2rem);
	}

	.cross-links__title {
		padding-left: 0.8125rem;
	}

	.cross-links__title--accordion {
		width: 100%;
		margin: 0.6875rem 0;
		cursor: pointer;
	}

	.rotate {
		transform: rotate(180deg);
	}

	.title__button--arrow {
		transition: transform 0.15s ease-in-out;
		display: inline;
		position: absolute;
		right: 2rem;
	}

	.cross-links__individual {
		margin: 0.3rem 0;
	}

	/* Mobile accordion: slide the dropdown open/closed (mirrors pg-core-child slideToggle). */
	.cross-links__dropdown {
		display: flex !important;
		height: 0;
		overflow: hidden;
		transition: height 0.2s ease-in-out;
	}
}

@media (min-width: 1200px) {

	.collection-main {
		grid-template-columns: auto 630px 378px auto;
		grid-template-areas:
			"header header header header"
			"crosslinks crosslinks crosslinks crosslinks"
			". bodtxt series ."
			". totm podcasts .";
	}

	.collection-main__description {
		padding: 0 75px 0 1rem;
		margin-top: 3rem;
	}

	.collection-main__totm {
		width: calc(100% - 91px);
		display: grid;
		grid-template-columns: max-content auto;
		grid-column-gap: 2rem;
		margin-right: 75px;
	}
}

/* ── Mobile section anchor nav ─────────────────────────────────────────── */
.collection-nav {
	padding: 1rem 2rem 3rem;
}

.collection-nav__anchor-container {
	display: flex;
	align-items: center;
	margin: 1rem 0;
}

.collection-nav__anchor-container img {
	max-width: 15px;
}

.collection-nav__anchor {
	font-size: 0.9375rem;
	font-family: var(--ibm-plex-sans-ssm);
	color: rgba(42, 98, 177, 0.81);
	margin: 0 0 0 1rem;
}

@media (min-width: 640px) {

	.collection-nav {
		display: none;
	}
}

/* ── Expandable ────────────────────────────────────────────────────────── */
.individual-collection .expandable {
	display: flex;
	flex-wrap: wrap;
}

.individual-collection .expandable__element {
	height: 240px;
	width: 100%;
	overflow: hidden;
	transition: height 0.4s ease;
}

.individual-collection .expandable__element p:first-child {
	margin-top: 0;
}

.individual-collection .expandable__element p a {
	color: var(--byu-royal);
}

.individual-collection .expandable__element p a:hover {
	text-decoration: underline;
}

/* Set by individual-collection.js while it works out whether this block
   overflows enough to need a toggle. `visibility` rather than `display`
   keeps the button's space reserved, so revealing it is a visibility flip
   and nothing below it moves. */
.individual-collection .expandable__show-button--pending {
	visibility: hidden;
}

.individual-collection .expandable__button {
	font-family: var(--ibm-plex-sans-ssm);
	font-weight: 500;
	color: var(--pgsp-theme-color);
	font-size: 0.8125rem;
	text-transform: uppercase;
	height: unset;
	border: none;
	padding: 0;
	margin: 1rem 0;
	background: none;
	cursor: pointer;
}

/* ── Content sections ──────────────────────────────────────────────────── */
.collection-section__grid {
	display: grid;
	grid-template-columns: 100%;
	grid-row-gap: 1rem;
	padding: 0 2rem 4rem;
}

.collection-section--grey {
	background-color: #ededed;
}

.collection-section__header {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 1.6875rem;
	font-weight: 500;
	margin: 3.5rem 0 0.5rem;
}

img.collection-section__image {
	max-width: 236px;
}

.collection-section__body {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	font-family: var(--source-serif-pro);
	font-size: 14px;
	line-height: 1.75;
}

.collection-section__body .expandable__element {
	height: 213px;
}

/* Both buttons, not just "Show More": the horizontal margin is what sets
   them off from the spacer rules either side, and scoping it to the show
   button left "Show Less" butted up against the lines. */
.collection-section__body .expandable__button,
.collection-section__featured .expandable__button {
	font-weight: 500;
	margin: 1rem;
}

.collection-section__mini-header {
	font-family: var(--ibm-plex-sans-ssm);
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #575757;
	letter-spacing: 2px;
	margin: 0 0 2px;
}

.collection-section__aside-container {
	display: flex;
	flex-wrap: wrap;
}

.collection-section__aside {
	max-width: 250px;
	margin-top: 1.5rem;
}

.aside__image-container {
	display: grid;
	grid-template-columns: 1fr;
	width: fit-content;
	justify-items: center;
	align-items: center;
	overflow: hidden;
	cursor: pointer;
}

.aside__image-container img {
	grid-area: 1 / 1 / -1 / -1;
	opacity: 1;
}

.aside__image-container .aside__image--video {
	transition: transform 0.3s ease;
}

/* Dark scrim that fades in with the play button, matching Inspiring Shorts */
.aside__image-container[data-video-id]::before {
	content: "";
	grid-area: 1 / 1 / -1 / -1;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.aside__overlay-icon-wrapper {
	height: 65px;
	width: 65px;
	grid-area: 1 / 1 / -1 / -1;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
	cursor: pointer;
}

.aside__overlay-icon {
	z-index: 1;
	margin-left: 4px;
}

.aside__image-container[data-video-id]:hover::before,
.aside__image-container[data-video-id]:focus-visible::before,
.aside__image-container[data-video-id]:hover .aside__overlay-icon-wrapper,
.aside__image-container[data-video-id]:focus-visible .aside__overlay-icon-wrapper {
	opacity: 1;
}

.aside__image-container[data-video-id]:hover .aside__image--video,
.aside__image-container[data-video-id]:focus-visible .aside__image--video {
	transform: scale(1.02);
}

/* The title opens the video too (see individual-collection.js), so hovering
   it lights up the thumbnail — the same way the homepage Inspiring Shorts
   key their hover off the whole card rather than the thumbnail alone. The
   title follows the button in the DOM, hence :has() rather than a sibling
   combinator. */
.collection-section__aside:has(.aside__title--video:hover) .aside__image-container[data-video-id]::before,
.collection-section__aside:has(.aside__title--video:hover) .aside__overlay-icon-wrapper {
	opacity: 1;
}

.collection-section__aside:has(.aside__title--video:hover) .aside__image--video {
	transform: scale(1.02);
}

.aside__title--video {
	cursor: pointer;
}

.aside__title {
	display: inline-block;
	margin: 0.5rem 0;
	font-size: 1.0625rem;
	color: var(--pgsp-theme-color);
	font-weight: 400;
	font-family: var(--ibm-plex-sans-ssm);
}

/* Only the image/blog-post asides wrap their title in a link. The video
   aside's title is a plain <p> — like the homepage Inspiring Shorts titles,
   it gets no hover feedback, so it doesn't read as clickable. */
a.aside__title:hover {
	color: #002e5d;
	cursor: pointer;
}

.collection-section__featured {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-top: 2rem;
}

.collection-section__featured .expandable__element {
	height: 306px;
}

.collection-section__body .expandable__spacer,
.collection-section__featured .expandable__spacer {
	display: block;
	height: 1px;
	width: 1px;
	flex: 1 0 auto;
	border-bottom: solid 1px #d3d2d2;
	align-self: center;
}

@media (max-width: 639px) {
	.collection-section__featured {
		justify-content: left;
		align-items: left;
	}
}

@media (min-width: 640px) {

	.collection-section__body {
		grid-area: body;
	}

	.collection-section__grid {
		max-width: 1200px;
		grid-template-areas:
			"head head"
			"pic body"
			"aside aside"
			"feat feat";
		grid-template-columns: min-content 1fr;
		grid-column-gap: 3rem;
		align-items: flex-start;
		margin: 0 auto;
	}

	.collection-section__header {
		grid-area: head;
	}

	.collection-section__mini-header {
		font-size: 0.8125rem;
		font-weight: 500;
		margin-bottom: 15px;
	}

	.collection-section__image {
		grid-area: pic;
	}

	.collection-section__aside-container {
		grid-area: aside;
	}

	.collection-section__aside {
		max-width: unset;
		display: grid;
		grid-template-columns: 236px auto;
		grid-template-areas:
			"image type"
			"image title";
		grid-column-gap: 3rem;
	}

	.collection-section__aside .collection-section__mini-header {
		grid-area: type;
		align-self: flex-end;
		margin-bottom: 0;
	}

	.aside__image-container {
		width: 100%;
		grid-area: image;
	}

	.aside__image {
		width: 100%;
	}

	.aside__title {
		grid-area: title;
	}

	.collection-section__featured {
		grid-area: feat;
	}

	.collection-section__featured .expandable {
		width: 100%;
	}

	.collection-section__featured .expandable__element {
		height: 250px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-column-gap: 2rem;
	}

	.collection-section__featured .collection-section__mini-header {
		grid-column: 1 / 3;
	}
}

@media (min-width: 1200px) {

	.collection-section__grid {
		max-width: calc(1024px - 3rem);
		grid-template-areas:
			"head head head"
			"pic body aside"
			"feat feat feat";
		grid-template-columns: min-content 3fr 2fr;
		margin: 0 auto;
	}

	.collection-section__header {
		justify-self: flex-start;
		font-size: 2rem;
	}

	.collection-section__featured {
		justify-self: flex-start;
		margin-top: 1.75rem;
	}

	.collection-section__featured .collection-section__mini-header {
		width: 100%;
	}

	.collection-section__aside-container {
		justify-content: center;
	}

	.collection-section__aside {
		display: flex;
		flex-direction: column;
		margin-top: 0;
	}

	.collection-section__aside .collection-section__mini-header {
		align-self: unset;
		margin-bottom: 0.75rem;
	}

	.aside__image {
		height: 174px;
	}

	.collection-section__featured .expandable__element {
		height: auto;
		display: grid;
		grid-template-columns: repeat(5, 170px);
	}

	.collection-section__featured .expandable__element .collection-section__mini-header {
		grid-column: 1 / 6;
	}

	.collection-section__featured .expandable__spacer,
	.collection-section__featured .expandable__show-button {
		display: none;
	}
}

/* ── Featured speech card (card--collection-featured) ──────────────────── */
.individual-collection .card {
	display: grid;
	position: relative;
	transition: all 0.1s linear;
}

.individual-collection .card a,
.individual-collection .card span {
	font-family: var(--ibm-plex-sans-ssm);
	font-weight: 400;
	display: inline-block;
	position: relative;
	width: fit-content;
}

.individual-collection .card__image-container {
	grid-area: thumbnail;
	overflow: hidden;
	height: 100%;
}

.individual-collection .card__image-container img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.individual-collection .card__header {
	grid-area: head;
	margin: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.individual-collection .card__bylines {
	grid-area: byline;
	display: flex;
}

.card.card--collection-featured {
	grid-template-areas:
		"thumbnail head"
		"thumbnail head"
		"thumbnail byline"
		". byline";
	grid-column-gap: 1rem;
	grid-row-gap: 0.5rem;
	grid-template-columns: min-content 1fr;
	grid-template-rows: min-content min-content 1fr max-content;
	margin: 1rem 0;
}

.card__image-container.card__image-container--collection-featured {
	width: 95px;
	height: 70px;
}

.card__image-container.card__image-container--collection-featured:hover a {
	background-color: #000;
}

.card__image-container.card__image-container--collection-featured:hover .card__image {
	opacity: 0.69;
}

.card__header.card__header--collection-featured {
	color: #075ab9;
	font-size: 15px;
	hyphens: none;
}

.card__header.card__header--collection-featured:hover {
	color: #002e5d;
}

.card__header.card__header--collection-featured a {
	font-weight: 400;
}

.card__bylines.card__bylines--collection-featured {
	flex-direction: column;
}

.card__bylines.card__bylines--collection-featured span,
.card__bylines.card__bylines--collection-featured a {
	font-family: var(--ibm-plex-sans-ssm);
	color: #575757;
	text-transform: uppercase;
}

.card__bylines.card__bylines--collection-featured .card__speaker-name {
	font-size: 12px;
	font-weight: 500;
}

.card__bylines.card__bylines--collection-featured .card__speaker-name--available:hover {
	color: #151515;
}

.card__bylines.card__bylines--collection-featured .card__speech-date {
	font-size: 11px;
	font-weight: 300;
	font-style: italic;
	margin-top: 10px;
}

@media (min-width: 1200px) {

	.card.card--collection-featured {
		grid-template-areas:
			"thumbnail"
			"head"
			"byline";
		grid-template-columns: 170px;
		grid-template-rows: max-content min-content 1fr;
		grid-row-gap: 1rem;
		margin: 0 1.5rem 0 0;
	}

	.card__image-container.card__image-container--collection-featured {
		width: 170px;
		height: 115px;
	}
}

/* ── Truman G. Madsen special section ──────────────────────────────────── */
.truman-madsen-block {
	background-color: #81a5d1;
	padding: 3rem 1.5rem;
}

.truman-madsen-block__super-header {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 13px;
	color: var(--byu-white);
	text-transform: uppercase;
	letter-spacing: 2.7px;
	opacity: 0.73;
}

.truman-madsen-block__header {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 51px;
	font-weight: 400;
	color: var(--byu-white);
	line-height: 1;
	margin: 0.5rem 0 1rem;
}

.truman-madsen-block__subheader {
	font-family: var(--source-serif-pro);
	font-size: 1.75rem;
	font-style: italic;
	color: var(--byu-white);
	letter-spacing: 0.5px;
	margin-bottom: 1rem;
}

.truman-madsen-block__image {
	width: calc(100% + 3rem);
	max-width: unset;
	margin-left: -1.5rem;
}

.truman-madsen-block__links-container {
	display: grid;
	grid-template-columns: repeat(2, 135px);
	justify-content: space-around;
	grid-column-gap: 1rem;
	grid-row-gap: 2rem;
	padding: 22px 0 0.5rem;
}

.truman-madsen-block__link {
	width: 100%;
	display: block;
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 13px;
	color: var(--byu-white);
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-align: center;
	border: #a9c6e3 1px solid;
	border-radius: 4px;
	padding: 1rem 0;
	margin-bottom: 0.75rem;
}

.truman-madsen-block__link:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.truman-madsen-block__link-subtext {
	display: block;
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 14px;
	color: var(--byu-white);
	text-align: center;
	line-height: 1.3;
	padding: 0 0.25rem;
}

@media (min-width: 400px) {

	.truman-madsen-block {
		background-color: unset;
		position: relative;
		z-index: 1;
	}

	.truman-madsen-block__picture {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		z-index: -1;
	}

	.truman-madsen-block__image {
		display: block;
		height: 100%;
		width: 100%;
		object-position: center;
		object-fit: cover;
		margin-left: 0;
	}
}

@media (min-width: 800px) {

	.truman-madsen-block {
		padding: 3rem;
	}

	.truman-madsen-block__links-container {
		grid-template-columns: repeat(3, 135px);
		grid-column-gap: 2.5rem;
		justify-content: flex-start;
	}
}

@media (min-width: 1024px) {

	.truman-madsen-block__super-header,
	.truman-madsen-block__header,
	.truman-madsen-block__subheader,
	.truman-madsen-block__links-container {
		width: 100%;
		max-width: calc(1024px - 3rem);
		margin: 0 auto;
	}

	.truman-madsen-block__header {
		font-size: 62px;
		margin: 1.25rem auto 1.5rem;
	}

	.truman-madsen-block__subheader {
		font-size: 37px;
	}

	.truman-madsen-block__picture {
		width: 100vw;
	}

	.truman-madsen-block__links-container {
		grid-template-columns: repeat(4, 135px);
		grid-row-gap: 3.5rem;
		padding: 3rem 0 1.5rem;
	}
}

/* ── Jesus Christ scripture special section ────────────────────────────── */
.scripture-block {
	background-color: #78a7d6;
	font-family: var(--ibm-plex-sans-ssm);
}

.scripture-block__page-wrap {
	margin: 0 auto;
	width: 100%;
	max-width: 1350px;
}

.scripture-block__image {
	display: block;
	margin: 0 auto;
	width: 311px;
	height: auto;
}

.scripture-block__text {
	max-width: 732px;
	margin: 0 auto;
}

.scripture-block__quote {
	color: #fff;
	text-align: center;
	letter-spacing: 0.25px;
	font-size: 23px;
	margin: 30px 35px 0 35px;
}

.scripture-block__citation {
	color: #002e5d;
	text-transform: uppercase;
	text-align: center;
	width: 190px;
	margin: 20px auto;
	line-height: 2;
	font-size: 14px;
	letter-spacing: 1.97px;
}

.scripture-block__underline {
	background-color: #002e5d;
	height: 1px;
	border: none;
	position: relative;
}

.scripture-block__underline--first-line {
	bottom: 54px;
	right: 4px;
	width: 169px;
}

.scripture-block__underline--second-line {
	bottom: 35px;
	width: 130px;
	right: 2px;
}

@media (min-width: 400px) {

	.scripture-block {
		padding-bottom: 10px;
	}

	.scripture-block__citation {
		width: 100%;
		margin: 20px 0 10px 0;
	}

	.scripture-block__underline--first-line {
		bottom: 14px;
		width: 306px;
		left: 1px;
	}

	.scripture-block__underline--second-line {
		display: none;
	}
}

@media (min-width: 800px) {

	.scripture-block {
		padding-bottom: 0;
	}

	.scripture-block__page-wrap {
		display: grid;
		grid-template-columns: 311px auto;
	}

	.scripture-block__text {
		margin: auto 30px auto 20px;
	}

	.scripture-block__quote {
		margin: 20px 0 0 0;
	}

	.scripture-block__citation {
		margin-top: 25px;
	}
}

@media (min-width: 1024px) {

	.scripture-block__page-wrap {
		grid-template-columns: 510px auto;
	}

	.scripture-block__image {
		width: 510px;
	}

	.scripture-block__text {
		margin: auto 35px auto 20px;
	}

	.scripture-block__quote {
		font-size: 32px;
	}

	.scripture-block__citation {
		font-size: 17px;
		margin-top: 35px;
	}

	.scripture-block__underline--first-line {
		width: 358px;
	}
}

@media (min-width: 1200px) {

	.scripture-block__quote {
		font-size: 37px;
	}

	.scripture-block__citation {
		font-size: 19px;
	}

	.scripture-block__underline--first-line {
		width: 394px;
	}
}

/* ── Footer CTA ────────────────────────────────────────────────────────── */
.collection-footer {
	margin: 0 0 6rem 0;
}

.collection-footer__flexbox {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #012e5d;
	font-family: var(--ibm-plex-sans-ssm);
}

.collection-footer__header {
	font-size: 1rem;
	font-weight: 700;
	color: #032d5d;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
	padding: 0 3rem;
	width: calc(100% - 6rem);
}

.collection-footer__footer-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 300px;
	margin: 2rem 0;
}

.collection-footer__separator {
	border-right: solid 1px transparent;
}

.footer-item__icon {
	width: 40px;
	height: 40px;
}

.footer-item__subtext {
	font-size: 1.375rem;
	font-weight: 300;
	text-align: center;
	padding: 0 2rem;
}

.footer-item__button {
	/* Styled as a button (the markup is a plain <a>, not a nested button). */
	display: inline-block;
	box-sizing: border-box;
	width: 275px;
	padding: 1rem 0;
	text-align: center;
	color: var(--pgsp-theme-color);
	border: 1px solid #0c5dba;
	border-radius: 5px;
	background: none;
}

.footer-item__button:hover {
	color: #fff;
	background-color: #0c5dba;
	cursor: pointer;
}

@media (min-width: 640px) {

	.collection-footer__flexbox {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-evenly;
	}

	.collection-footer__separator {
		border-right: solid 1px #e9e8e8;
		height: 235px;
		margin: 1.25rem 0;
		align-self: center;
	}
}

@media (min-width: 1200px) {

	.collection-footer__flexbox {
		padding: 4rem 0;
		margin: 0 auto;
		max-width: 800px;
	}

	.collection-footer__header {
		font-size: 1.1875rem;
		width: 100%;
	}

	.footer-item__subtext {
		font-size: 1.75rem;
	}

	.footer-item__button {
		font-size: 1.4375rem;
	}
}

/* ── Video popup ───────────────────────────────────────────────────────── */
.video-popup-wrapper {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.85);
}

.video-popup-wrapper.hidden {
	display: none;
}

.video-popup {
	position: relative;
	width: min(90vw, 960px);
}

.video-popup__frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}

.video-popup__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-popup__close-icon {
	position: absolute;
	top: -2.5rem;
	right: 0;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.video-popup__close-icon-img {
	width: 100%;
	height: 100%;
}
