.yt-slider-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.yt-slider-wrapper *,
.yt-lightbox-overlay * {
	box-sizing: border-box;
}

.yt-swiper-container {
	width: 100%;
	padding-bottom: 20px;
	border-radius: 15px;
}

.yt-video-card {
	position: relative;
	width: 100%;
	aspect-ratio: var(--yt-ratio, 16 / 9);
	overflow: hidden;
	background: #111;
	border-radius: 12px;
}

.yt-slider-wrapper .yt-video-card > img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	max-height: none;
}

.yt-slider-wrapper .yt-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.yt-slider-wrapper .yt-video-play,
.yt-slider-wrapper .yt-video-play:hover,
.yt-slider-wrapper .yt-video-play:focus,
.yt-slider-wrapper .yt-video-play:active {
	background: transparent;
	box-shadow: none;
}

.yt-video-play:focus-visible,
.yt-nav-btn:focus-visible,
.yt-autoplay-toggle:focus-visible,
.yt-lightbox-close:focus-visible {
	outline: 3px solid var(--yt-brand, #8a2be2);
	outline-offset: 3px;
	z-index: 2;
}

.yt-slider-wrapper .yt-video-play:focus-visible {
	outline-offset: -3px;
}

.yt-play-icon {
	position: relative;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
}

.yt-play-icon::after {
	position: absolute;
	top: 50%;
	left: 55%;
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 15px solid var(--yt-brand, #8a2be2);
	content: "";
	transform: translate(-50%, -50%);
}

.yt-video-card iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.yt-slider-wrapper .yt-nav-btn {
	position: absolute;
	top: 45%;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #222;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	z-index: 3;
}

.yt-nav-prev {
	left: -20px;
}

.yt-nav-next {
	right: -20px;
}

.yt-nav-btn::after {
	display: none;
}

.yt-nav-btn > span {
	font-size: 30px;
	line-height: 1;
}

.yt-nav-image {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.yt-nav-btn.argento-swiper-button-disabled,
.yt-nav-btn.argento-swiper-button-lock {
	display: none;
}

.yt-pagination {
	position: static;
	margin-top: 16px;
	text-align: center;
}

.yt-pagination .argento-swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	background: var(--yt-brand, #8a2be2);
	opacity: 0.4;
}

.yt-pagination .argento-swiper-pagination-bullet-active {
	opacity: 1;
}

.yt-pagination.argento-swiper-pagination-lock {
	display: none;
}

.yt-autoplay-toggle {
	display: block;
	margin: 12px auto 0;
	padding: 6px 12px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.yt-lightbox-overlay[hidden] {
	display: none !important;
}

.yt-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.88);
}

.yt-lightbox-content {
	position: relative;
	width: min(100%, 900px, calc((100dvh - 40px) * var(--yt-ratio-num, 1.7778)));
	max-height: calc(100dvh - 40px);
	overflow: hidden;
	border-radius: 12px;
	background: transparent;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.yt-lightbox-close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 4;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
}

.yt-lightbox-close:hover {
	background: var(--yt-brand, #8a2be2);
}

.yt-lightbox-video {
	position: relative;
	width: 100%;
	aspect-ratio: var(--yt-ratio, 16 / 9);
	background: #000;
}

.yt-lightbox-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

html.yt-lightbox-open {
	overflow: hidden;
}

@media (max-width: 1023px) {
	.yt-slider-wrapper {
		padding: 0 10px;
	}

	.yt-nav-btn {
		display: none;
	}

	.yt-swiper-container {
		padding-bottom: 0;
	}
}

@media (max-width: 767px) {
	.yt-lightbox-overlay {
		padding: 12px;
	}

	.yt-lightbox-content {
		width: min(100%, calc((100dvh - 24px) * var(--yt-ratio-num, 1.7778)));
	}
}

@media (prefers-reduced-motion: reduce) {
	.yt-video-play {
		transition: none;
	}
}
