/**
 * Add css for short videos shortcode
 */

.hl-short-videos-carousel {
	width: 100%;
	position: relative;
	overflow: visible;
}

/* Allow the "peek" of the next slide */
.hl-short-videos-carousel .hl-sv-swiper {
	width: 100%;
	overflow: hidden;
}

.hl-short-videos-carousel .swiper-wrapper {
	align-items: stretch;
}

.hl-short-videos-carousel .swiper-slide {
	height: auto;
}

.hl-sv-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	background: #000;
}

/* YouTube shorts vertical ratio */
.hl-sv-media {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	background: #000;
	cursor: pointer;
}

body.single-post .hl-sv-media {
	width: auto;
	max-height: 60vh;
	background-color: #f3f6f8;
	border: 1px solid #575d45;
	border-radius: 5px;
	cursor: auto;
	-webkit-box-shadow: 0 0.25rem 0.5rem 0 rgba(21,21,30,0.4);
	-moz-box-shadow: 0 0.25rem 0.5rem 0 rgba(21,21,30,0.4);
	-ms-box-shadow: 0 0.25rem 0.5rem 0 rgba(21,21,30,0.4);
	-o-box-shadow: 0 0.25rem 0.5rem 0 rgba(21,21,30,0.4);
	box-shadow: 0 0.25rem 0.5rem 0 rgba(21,21,30,0.4);
}

.hl-sv-media iframe {
	position: absolute;
	display: block;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}


body.single-post .hl-sv-media iframe {
	border-radius: 5px;
	pointer-events: auto !important;
}

/* Fix Real Cookie Banner collapsing videos */
.hl-sv-media .rcb-content-blocker,
.hl-sv-media .rcb-content-blocker > div,
.hl-sv-media .rcb-content-blocker > div > div {
	width: 100% !important;
	aspect-ratio: 9 / 16 !important;
}

/* Meta overlay  */
.hl-sv-meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px;
	color: #fff;
	background: linear-gradient(
		to top,
		rgba(87, 93, 69, 1) 0%,
		rgba(87, 93, 69, 0.75) 75%,
		rgba(87, 93, 69, 0.35) 100%
	);
	pointer-events: auto;
}

.hl-sv-meta a {
	pointer-events: auto;
	color: #fff;
	text-decoration: none;
}

.hl-sv-title {
	font-size: 14px;
	line-height: 1.25;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hl-sv-readmore {
	font-size: 13px;
	font-weight: 600;
	opacity: 0.95;
}

.hl-sv-meta a:hover {
	text-decoration: underline;
}

/* Swiper arrows */
.hl-short-videos-carousel .swiper-button-prev,
.hl-short-videos-carousel .swiper-button-next {
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
}

.hl-short-videos-carousel .swiper-button-prev:after,
.hl-short-videos-carousel .swiper-button-next:after {
	font-size: 16px;
	font-weight: 700;
}

.hl-short-videos-carousel .swiper {
	padding: 6px 4px;
}
