/* ==========================================================================
   videos.css - Videos page, linked from videos.php's <head> region, always
   AFTER about.css.
   - The page wrapper carries both .about and .videos, so it inherits the About
     foundation from about.css: color tokens (--ab-*), h2 underline bar, h3
     style, check list (.ab-checks), pills (.ab-chips), text links (.ab-link),
     numbered cards (.ab-steps), buttons (.ab-btn) and the CTA shell (.ab-cta).
     Only what is new for this page lives here (vd- prefix).
   - Layout follows the width of .about (container queries), so the same
     rules serve the desktop template and the phone/tablet template.
   ========================================================================== */

/* one video + its write-up: stacked on a phone, side by side when there is room */
.vd-video { display: grid; gap: 20px; align-items: center; }
.vd-video > * { min-width: 0; }

/* 16:9 frame that scales with its column (the YouTube iframe fills it) */
.vd-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: var(--ab-r);
	box-shadow: var(--ab-shadow);
}
.vd-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* small label above a video title (type of footage and running time) */
.vd-chip {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 14px 3px;
	border-radius: 999px;
	background: var(--ab-moss);
	color: var(--ab-yellow);
	font: 1.0625rem/1.3 'Londrina Solid', cursive;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* numbered cards sit on a slim grey panel, like the About page */
.videos .ab-steps { gap: 14px; padding: 14px; margin-top: 22px; background: var(--ab-sand); border: 1px solid var(--ab-line); border-radius: var(--ab-r); }
.videos .ab-steps h3 { margin-bottom: .3em; }

/* check lists inside a section */
.about .vd-section .ab-checks { margin: 18px 0 1em; }
.about .vd-section .ab-checks:last-child { margin-bottom: 0; }

/* questions */
.vd-faq { margin-top: 22px; }
.vd-faq h3 { margin-bottom: .3em; }
.vd-faq > div { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dotted #cfc8b4; }
.vd-faq > div:last-child { margin-bottom: 0; }

/* related pages */
.vd-more { margin-top: 20px; }

.vd-cta:before { background-image: url(images/slider/slide3.webp); }

@container (max-width: 599px) {
	.vd-cta:before { background-image: url(images/slider-mob/slide3.webp); }
}

@container (min-width: 600px) {
	.vd-faq > div { padding-bottom: 24px; margin-bottom: 24px; }
}

@container (min-width: 900px) {
	.vd-video { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
	/* second video: picture on the right, text on the left */
	.vd-video--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
	.vd-video--rev .vd-frame { order: 2; }
}
