.sg-slider,
.sg-slider * {
	box-sizing: border-box;
}

.sg-slider {
	position: relative;
	display: block;
	margin: 1.5em 0;
}

.sg-slider-viewport {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #000;
	transition: height 0.35s ease;
}

.sg-slider-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: 100%;
	transition: transform 0.35s ease;
}

.sg-slide {
	position: relative;
	flex: 0 0 100%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #000;
	overflow: hidden;
}

.sg-slide-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.sg-slide-img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 80vh !important;
	object-fit: contain !important;
	margin: 0 auto !important;
}

.sg-slide-caption {
	width: 100%;
	margin: 0;
	padding: 8px 12px;
	background: transparent;
	color: #fff;
	font-size: 13px;
	text-align: center;
}

.sg-video-facade {
	position: absolute;
	inset: 0;
	background-color: #111;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	padding: 0;
}

.sg-play-btn {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.8);
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background 0.15s ease;
}

.sg-play-btn:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.08);
}

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

.sg-slider-prev,
.sg-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	z-index: 2;
}

.sg-slider-prev {
	left: 12px;
}

.sg-slider-next {
	right: 12px;
}

.sg-slider-prev:hover,
.sg-slider-next:hover {
	background: rgba(0, 0, 0, 0.75);
}

.sg-slider-thumbs {
	display: flex;
	flex-wrap: nowrap;
	float: none;
	clear: both;
	width: 100%;
	gap: 6px;
	margin-top: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.sg-thumb-btn {
	flex: 0 0 auto;
	width: 70px;
	height: 46px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	background: #000;
}

.sg-thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sg-thumb-btn.is-active {
	border-color: #2271b1;
	opacity: 1;
}

.sg-thumb-btn:hover {
	opacity: 1;
}

@media (max-width: 600px) {
	.sg-slider-prev,
	.sg-slider-next {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.sg-thumb-btn {
		width: 54px;
		height: 36px;
	}
}
