/**
 * Card skin.
 *
 * Loaded only on pages that actually use it, through get_style_depends() in
 * the Elementor widgets and through the shortcode.
 */

.wtr-skin-card .wtr-card {
	background: var( --wtr-card-background );
	border: 1px solid var( --wtr-card-border, var( --wtr-border ) );
	border-radius: var( --wtr-radius );
	box-shadow: var( --wtr-card-shadow, none );
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var( --wtr-card-padding, 24px );
}

.wtr-skin-card .wtr-card.is-featured {
	border-color: var( --wtr-star );
}

.wtr-skin-card .wtr-text > *:first-child {
	margin-block-start: 0;
}

.wtr-skin-card .wtr-text > *:last-child {
	margin-block-end: 0;
}

.wtr-skin-card .wtr-reply {
	border-inline-start: 2px solid var( --wtr-border );
	font-size: 0.9375em;
	padding-inline-start: 12px;
}

.wtr-skin-card .wtr-reply-label {
	color: var( --wtr-muted );
	display: block;
	font-size: 0.8125em;
	font-weight: 600;
	margin-block-end: 4px;
}

.wtr-skin-card .wtr-meta {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-block-start: auto;
}

.wtr-skin-card .wtr-avatar {
	border-radius: 50%;
	flex: 0 0 auto;
	block-size: var( --wtr-avatar, 48px );
	inline-size: var( --wtr-avatar, 48px );
	object-fit: cover;
}

.wtr-skin-card .wtr-avatar.is-vierkant {
	border-radius: 6px;
}

.wtr-skin-card .wtr-avatar-initials {
	align-items: center;
	background: var( --wtr-border );
	display: inline-flex;
	font-size: 0.875em;
	font-weight: 600;
	justify-content: center;
}

.wtr-skin-card .wtr-author {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.wtr-skin-card .wtr-name {
	font-weight: 600;
}

.wtr-skin-card .wtr-byline,
.wtr-skin-card .wtr-date {
	color: var( --wtr-muted );
	font-size: 0.875em;
}

.wtr-skin-card .wtr-source-link {
	margin-inline-start: auto;
	text-decoration: none;
}

/* The list layout reuses the same card, laid out horizontally. */

.wtr-list .wtr-card {
	border-inline: 0;
	border-block-start: 0;
	border-radius: 0;
	padding-inline: 0;
}

.wtr-list .wtr-card:last-child {
	border-block-end: 0;
}

/* Videoreview: een plaatje met een afspeelknop, pas na een klik een speler. */
.wtr-video {
	aspect-ratio: 16 / 9;
	background-color: #1d2327;
	background-position: center;
	background-size: cover;
	border: 0;
	border-radius: calc( var( --wtr-radius, 4px ) - 1px );
	cursor: pointer;
	display: block;
	margin: 0 0 18px;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.wtr-video:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wtr-video-play {
	background: rgba( 0, 0, 0, 0.55 );
	border-radius: 50%;
	height: 56px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate( -50%, -50% );
	transition: background-color .15s ease;
	width: 56px;
}

.wtr-video-play::after {
	border-bottom: 10px solid transparent;
	border-left: 17px solid #fff;
	border-top: 10px solid transparent;
	content: "";
	left: 52%;
	position: absolute;
	top: 50%;
	transform: translate( -50%, -50% );
}

.wtr-video:hover .wtr-video-play {
	background: rgba( 0, 0, 0, 0.75 );
}

.wtr-video.is-playing {
	cursor: default;
}

.wtr-video.is-playing iframe {
	border: 0;
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
