/* Real Life Video Gallery - Frontend Styles */

.rlv-section {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 32px 16px;
}

.rlv-section * {
	box-sizing: border-box;
}

.rlv-heading {
	margin: 0 0 8px;
	line-height: 1.2;
}

.rlv-subheading {
	margin: 0 0 28px;
}

.rlv-track {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding-bottom: 6px;
	-webkit-overflow-scrolling: touch;
}

/* Centre the row instead of scrolling when everything already fits. */
@media (min-width: 0px) {
	.rlv-track:not(.is-overflowing) {
		justify-content: center;
	}
}

.rlv-track::-webkit-scrollbar {
	height: 6px;
}

.rlv-track::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .2);
	border-radius: 3px;
}

.rlv-card {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.rlv-media {
	position: relative;
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	background: #1a1a1a;
}

.rlv-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rlv-thumb-placeholder {
	background: linear-gradient(135deg, #2a2a2a, #444);
}

.rlv-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}

.rlv-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.06);
}

.rlv-play-btn svg {
	display: block;
}

.rlv-corner-icon {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 22px;
	height: 22px;
	color: #fff;
	opacity: .85;
	z-index: 3;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

.rlv-corner-icon svg {
	width: 100%;
	height: 100%;
}

.rlv-player {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: none;
}

.rlv-card.is-playing .rlv-thumb,
.rlv-card.is-playing .rlv-play-btn,
.rlv-card.is-playing .rlv-corner-icon {
	display: none;
}

.rlv-card.is-playing .rlv-player {
	display: block;
}

.rlv-player video,
.rlv-player iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
	background: #000;
}

.rlv-empty-notice {
	padding: 16px;
	border: 1px dashed #ccc;
	border-radius: 6px;
	text-align: center;
	color: #777;
}

@media (max-width: 600px) {
	.rlv-section {
		padding: 24px 12px;
	}
}
