/**
 * SNIPPET — append to assets/css/style.css. Scoped to .proj-walkthrough /
 * .walkthrough-*. Play icon is pure CSS (no data URI), CSP-safe.
 * Layout/heading spacing is a guess — adjust to the design.
 */

.proj-walkthrough h2 {
	margin-bottom: 24px;
}

.walkthrough-frame {
	position: relative;
	background: #000;
	overflow: hidden;
}

/* Bootstrap's .ratio > * makes the child absolute + 100% — the earlier
   position:relative here broke that and pushed the button below the box. */
.walkthrough-play {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.walkthrough-play picture {
	display: contents;
}

.walkthrough-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.walkthrough-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 84px;
	height: 84px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	border: 2px solid #fff;
	transition: transform 0.3s ease, background 0.3s ease;
}

.walkthrough-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-35%, -50%);
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent #fff;
}

.walkthrough-play:hover .walkthrough-icon,
.walkthrough-play:focus-visible .walkthrough-icon {
	transform: translate(-50%, -50%) scale(1.1);
	background: rgba(0, 0, 0, 0.8);
}

.walkthrough-iframe {
	border: 0;
}

@media (max-width: 767px) {
	.walkthrough-icon {
		width: 60px;
		height: 60px;
	}
	.walkthrough-icon::before {
		border-width: 10px 0 10px 17px;
	}
}
