/* YouTube gallery ([drummond_youtube_gallery]). Follows the site kit: Source Sans Pro, black light headings,
   #4D4D4D text, Drummond red #E31937 with 3px radius. */
.dyg {
	--dyg-red: #e31937;
	--dyg-red-dark: #880f21;
	--dyg-ink: #000;
	--dyg-text: #4d4d4d;
	--dyg-gap: 2rem;
	font-family: "Source Sans Pro", sans-serif;
	color: var(--dyg-text);
	margin: 0 auto;
	padding: 2.5rem 0;
}

/* Header: light title like the other archive pages, subscribe link on the right. */
.dyg__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
}
.dyg .dyg__title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
	font-weight: 300;
	line-height: 1.15;
	color: var(--dyg-ink);
}
.dyg a.dyg__subscribe,
.dyg a.dyg__watch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	border-radius: 3px;
	background: var(--dyg-red);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	transition: background-color 0.15s;
}
.dyg a.dyg__subscribe:hover,
.dyg a.dyg__watch:hover,
.dyg a.dyg__subscribe:focus,
.dyg a.dyg__watch:focus {
	background: var(--dyg-red-dark);
	color: #fff;
}
.dyg__yt {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
}

/* Grid: no card boxes, the thumbnail carries each item. */
.dyg__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.25rem var(--dyg-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) {
	.dyg__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.dyg__grid { grid-template-columns: repeat(3, 1fr); }
}
.dyg__item {
	margin: 0;
	padding: 0;
}
.dyg__item::before,
.dyg__item::marker {
	content: none;
}
.dyg a.dyg__card {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	color: inherit;
	text-decoration: none;
}
.dyg__thumb {
	position: relative;
	display: block;
	margin-bottom: 0.5rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 3px;
	background: #e8e8e3;
}
.dyg__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Play + duration badge, bottom right like YouTube. Turns Drummond red on hover and focus. */
.dyg__badge {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	height: 1.75rem;
	padding: 0 0.5rem 0 0.375rem;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transition: background-color 0.15s;
}
.dyg__badge svg {
	width: 1rem;
	height: 1rem;
}
.dyg__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	min-height: calc(3 * 1.35em);
	overflow: hidden;
	color: var(--dyg-ink);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
}
.dyg__date {
	color: var(--dyg-text);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
}
.dyg a.dyg__card:hover .dyg__badge,
.dyg a.dyg__card:focus-visible .dyg__badge {
	background: var(--dyg-red);
}
.dyg a.dyg__card:hover .dyg__name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.dyg a:focus-visible,
.dyg button:focus-visible {
	outline: 3px solid var(--dyg-red);
	outline-offset: 3px;
}
.dyg__card:focus-visible {
	outline-offset: 6px;
}

/* Footer: "more" button, then the YouTube link. */
.dyg__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	margin-top: 3rem;
}
.dyg .dyg__more {
	padding: 0.625rem 1.5rem;
	border: 1px solid var(--dyg-red);
	border-radius: 3px;
	background: #fff;
	color: var(--dyg-red);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.dyg .dyg__more:hover,
.dyg .dyg__more:focus-visible {
	background: var(--dyg-red);
	color: #fff;
}
.dyg .dyg__more[aria-busy="true"] {
	cursor: progress;
	opacity: 0.6;
}
.dyg__more[hidden] {
	display: none;
}
.dyg a.dyg__all {
	display: inline-block;
	padding: 0.75rem 0;
	color: var(--dyg-text);
	font-size: 1rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.dyg a.dyg__all:hover {
	color: var(--dyg-red);
}
.dyg__empty {
	font-size: 1.125rem;
}

/* Dialog. */
.dyg__dialog {
	width: min(960px, calc(100vw - 2rem), calc((100dvh - 14rem) * 16 / 9));
	min-width: min(640px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: #fff;
	color: var(--dyg-text);
	overflow: auto;
}
.dyg__dialog::backdrop {
	background: rgba(0, 0, 0, 0.88);
}
.dyg__dialog-inner {
	position: relative;
}
.dyg__bar {
	display: flex;
	justify-content: flex-end;
	background: #000;
}
.dyg .dyg__close {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.dyg .dyg__close:hover,
.dyg .dyg__close:focus {
	background: #333;
	color: #fff;
}
.dyg .dyg__close:focus-visible {
	outline-offset: -3px;
	outline-color: #fff;
}
.dyg__close svg {
	width: 1.25rem;
	height: 1.25rem;
}
.dyg__player {
	aspect-ratio: 16 / 9;
	background: #000;
}
.dyg__player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.dyg__info {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 2rem;
	align-items: start;
	padding: 1.5rem 1.75rem 1.75rem;
}
.dyg__info > * {
	grid-column: 1;
}
.dyg a.dyg__watch {
	grid-column: 2;
	grid-row: 1 / 3;
	justify-self: end;
	white-space: nowrap;
}
.dyg__info > .dyg__dialog-text {
	grid-column: 1 / -1;
}
.dyg .dyg__dialog-title {
	margin: 0 0 0.25rem;
	color: var(--dyg-ink);
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
}
.dyg__dialog-date {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}
.dyg__dialog-text {
	max-width: 72ch;
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.dyg .dyg__dialog-text a {
	color: var(--dyg-red);
}
.dyg__dialog-text:empty {
	display: none;
}
html:has(.dyg__dialog[open]) {
	overflow: hidden;
}

.dyg .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 639px) {
	.dyg__header { align-items: flex-start; flex-direction: column; }
	.dyg__info { display: block; padding: 1.25rem; }
	.dyg a.dyg__watch { margin-top: 1.25rem; }
	.dyg .dyg__dialog-title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.dyg *,
	.dyg *::after { transition: none !important; }
}
