.hpr-reels {
	--hpr-size: 112px;
	--hpr-gap: 18px;
	--hpr-ring: #c4a484;
	--hpr-ring-inner: #ffffff;
	--hpr-text: currentColor;
	width: 100%;
	margin: 0 0 1.5rem;
	clear: both;
}

.hpr-reels__list {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--hpr-gap);
	align-items: flex-start;
	margin: 0;
	padding: 4px 2px 2px;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.hpr-reels__item {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hpr-reels__circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: var(--hpr-size);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hpr-text);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	text-align: center;
}

.hpr-reels__circle:focus-visible {
	outline: 2px solid var(--hpr-ring);
	outline-offset: 3px;
}

.hpr-reels__ring {
	display: block;
	position: relative;
	width: var(--hpr-size);
	height: var(--hpr-size);
	min-width: var(--hpr-size);
	min-height: var(--hpr-size);
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e8d5c4 0%, var(--hpr-ring) 45%, #8b6b4a 100%);
	box-sizing: border-box;
	overflow: hidden;
	flex: 0 0 auto;
	aspect-ratio: 1 / 1;
}

.hpr-reels__poster {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: 50%;
	background-color: var(--hpr-ring-inner);
	box-sizing: border-box;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

/* Beat Uncode global `img { height: auto; max-width: 100% }` */
.hpr-reels__poster img,
.hpr-reels .hpr-reels__poster img,
.hpr-reels__poster-fallback {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center center !important;
	-o-object-fit: cover !important;
	transform: none !important;
}

.hpr-reels__poster-fallback {
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
		linear-gradient(145deg, #2b2b2b, #111);
}

.hpr-reels__poster-fallback--youtube {
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
		linear-gradient(145deg, #ff4d4d, #b91c1c);
}

.hpr-reels__poster-fallback--instagram {
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 40%),
		linear-gradient(145deg, #f58529, #dd2a7b 50%, #8134af);
}

.hpr-reels__poster-fallback--tiktok {
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
		linear-gradient(145deg, #25f4ee, #111 45%, #fe2c55);
}

.hpr-reels__label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.25;
	opacity: 0.85;
}

/* Lightbox */
.hpr-lightbox[hidden] {
	display: none !important;
}

.hpr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.hpr-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.82);
}

.hpr-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	max-height: min(92vh, 820px);
}

.hpr-lightbox__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	max-height: min(86vh, 780px);
	margin: 0 auto;
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hpr-lightbox__frame,
.hpr-lightbox__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.hpr-lightbox__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}

.hpr-lightbox__close,
.hpr-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
	appearance: none;
	-webkit-appearance: none;
}

.hpr-lightbox__close {
	top: -8px;
	right: -8px;
	width: 40px;
	height: 40px;
	font-size: 28px;
	line-height: 1;
}

.hpr-lightbox__nav {
	top: 50%;
	width: 40px;
	height: 40px;
	transform: translateY(-50%);
	font-size: 22px;
}

.hpr-lightbox__nav--prev {
	left: -52px;
}

.hpr-lightbox__nav--next {
	right: -52px;
}

.hpr-lightbox__close:hover,
.hpr-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.hpr-lightbox__nav[hidden] {
	display: none !important;
}

html.hpr-lightbox-open,
html.hpr-lightbox-open body {
	overflow: hidden;
}

@media (max-width: 640px) {
	.hpr-reels {
		--hpr-size: 96px;
		--hpr-gap: 14px;
		margin-bottom: 1.15rem;
	}

	.hpr-lightbox {
		padding: 10px;
	}

	.hpr-lightbox__dialog {
		width: min(100%, 420px);
	}

	.hpr-lightbox__nav--prev {
		left: 8px;
	}

	.hpr-lightbox__nav--next {
		right: 8px;
	}

	.hpr-lightbox__close {
		top: 8px;
		right: 8px;
	}
}
