/*
Theme Name: ValoKoski
Theme URI: https://valokoski.com/
Description: ValoKoski Productions - child theme of Twenty Twenty-Five.
Author: Jari Koski
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: valokoski
*/

/* Header wordmark: keep it crisp and compact on phones. */
.vk-wordmark img {
	width: 220px;
	height: auto;
	display: block;
}

@media (max-width: 600px) {
	.vk-wordmark img {
		width: 160px;
	}
}

/* Hero: the wordmark large on black. */
.vk-hero-mark img {
	width: min(900px, 100%);
	height: auto;
}

/* Cards (services, team) on the dark surface. */
.vk-card {
	border: 1px solid var(--wp--preset--color--accent-3);
	border-radius: 6px;
	height: 100%;
}

.vk-card h3 {
	margin-top: 0;
}

/* Red rule above section headings. */
.vk-kicker {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
}

/* Credit lists: name first, role muted. */
.vk-credits li {
	margin-bottom: 0.45em;
}

.vk-credits .vk-role {
	color: var(--wp--preset--color--accent-4);
}

/* Visible keyboard focus everywhere. */
:where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

/* Video embeds: rounded corners. */
.wp-block-embed.is-type-video iframe {
	border-radius: 6px;
}

/* YouTube click-to-load (GDPR): local preview, player only after a click. */
.vk-yt .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}
.vk-yt .wp-block-embed__wrapper::before {
	display: none;
}
.vk-yt iframe,
.vk-yt-play {
	position: static;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 6px;
}
.vk-yt-play {
	position: relative;
	overflow: hidden;
	background: #111;
	color: #fff;
	text-decoration: none;
}
.vk-yt-play img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vk-yt-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.7);
	transition: background 0.15s;
}
.vk-yt-icon::after {
	content: "";
	position: absolute;
	top: 14px;
	left: 27px;
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}
.vk-yt-play:hover .vk-yt-icon,
.vk-yt-play:focus-visible .vk-yt-icon {
	background: #c00;
}
.vk-yt-note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.35em 0.6em;
	background: rgba(0, 0, 0, 0.6);
	font-size: 0.75rem;
	line-height: 1.3;
}
