.tsy-video-gallery-block {
  max-width: 1200px;
	margin: 2rem auto;
	padding: 0 2rem;
}

.tsy-video-gallery-block .tsy-video-player-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 2rem;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
}

.tsy-video-gallery-block .tsy-video-player-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.tsy-video-gallery-block .tsy-video-player-container iframe.tsy-video-player {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}

.tsy-video-gallery-block .tsy-video-player-container iframe.tsy-video-player.tsy-is-active {
	display: block;
}

.tsy-video-gallery-block .tsy-video-player-toggle {
	position: absolute;
	z-index: 4;
	right: 1rem;
	bottom: 1rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #fff;
	border-radius: 4px;
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
	font: inherit;
}

.tsy-video-gallery-block .tsy-video-player-toggle:disabled {
	cursor: default;
	opacity: 0;
	pointer-events: none;
}

.tsy-video-gallery-block .tsy-video-player-toggle:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.tsy-video-gallery-block .tsy-video-placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #425464 center / cover no-repeat;
	text-align: center;
}

.tsy-video-gallery-block .tsy-video-placeholder-content {
	display: flex;
	flex: row nowrap;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
}

.tsy-video-gallery-block .tsy-video-play-icon {
	width: 0;
	height: 0;
	margin-left: 0.4rem;
	border-top: 2rem solid transparent;
	border-bottom: 2rem solid transparent;
	border-left: 3rem solid currentColor;
	opacity: 0.8;
}

.tsy-video-gallery-block .tsy-video-placeholder-content p {
	margin: 0;
	font-size: 1rem;
	opacity: 0.8;
}

.tsy-video-gallery-block .tsy-video-info-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 2rem;
	color: #fff;
	background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.tsy-video-gallery-block .tsy-video-info-overlay.tsy-is-active,
.tsy-video-gallery-block .tsy-video-player-container:hover .tsy-video-info-overlay.tsy-has-content {
	opacity: 1;
}

.tsy-video-gallery-block .tsy-video-info-overlay h2 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 600;
	text-transform: none;
}

.tsy-video-gallery-block .tsy-video-info-overlay p {
	margin: 0;
	line-height: 1.4;
	opacity: 0.9;
}

.tsy-video-gallery-block .tsy-video-slider-container {
	position: relative;
}

.tsy-video-gallery-block .tsy-video-slider-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsy-video-gallery-block .tsy-video-slider {
	display: flex;
	flex: 1;
	align-items: start;
	gap: 1rem;
	overflow-x: auto;
	padding: 0.5rem 6px;
	scroll-behavior: smooth;
	scrollbar-color: #ccc transparent;
	scrollbar-width: thin;
}

.tsy-video-gallery-block .tsy-video-slider::-webkit-scrollbar {
	height: 6px;
}

.tsy-video-gallery-block .tsy-video-slider::-webkit-scrollbar-track {
	border-radius: 3px;
	background: #f1f1f1;
}

.tsy-video-gallery-block .tsy-video-slider::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: #ccc;
}

.tsy-video-gallery-block .tsy-video-slider::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.tsy-video-gallery-block .tsy-video-slider-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: #425464;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	font-size: x-large;
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.tsy-video-gallery-block .tsy-video-slider-nav:hover:not(:disabled),
.tsy-video-gallery-block .tsy-video-slider-nav:focus-visible:not(:disabled) {
	color: #425464;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tsy-video-gallery-block .tsy-video-slider-nav:focus-visible,
.tsy-video-gallery-block .tsy-video-gallery-item:focus-visible {
	outline: 3px solid #425464;
	outline-offset: 3px;
}

.tsy-video-gallery-block .tsy-video-slider-nav:disabled {
	cursor: default;
	opacity: 0.3;
}

.tsy-video-gallery-block .tsy-video-gallery-item {
	display: block;
	flex: 0 0 200px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	color: inherit;
	background: transparent;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.tsy-video-gallery-block .tsy-video-thumbnail {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 16 / 9;
}

.tsy-video-gallery-block .tsy-video-thumbnail::before {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	content: "";
	background: rgba(0, 0, 0, 0.3);
	transition: background-color 0.3s ease;
}

.tsy-video-gallery-block .tsy-video-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tsy-video-gallery-block .tsy-video-gallery-item:hover .tsy-video-thumbnail::before,
.tsy-video-gallery-block .tsy-video-gallery-item:focus-visible .tsy-video-thumbnail::before {
	background: rgba(0, 0, 0, 0.5);
}

.tsy-video-gallery-block .tsy-video-gallery-item:hover .tsy-video-thumbnail img,
.tsy-video-gallery-block .tsy-video-gallery-item:focus-visible .tsy-video-thumbnail img {
	transform: scale(1.05);
}

.tsy-video-gallery-block .tsy-video-play-button {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-top: 1.5rem solid transparent;
	border-bottom: 1.5rem solid transparent;
	border-left: 2.25rem solid #fff;
	transform: translate(-42%, -50%);
	transition: border-left-color 0.3s ease;
}

.tsy-video-gallery-block .tsy-video-gallery-item.tsy-is-selected .tsy-video-thumbnail::before {
	background: rgba(255, 255, 255, 0.6);
}

.tsy-video-gallery-block .tsy-video-gallery-item.tsy-is-selected .tsy-video-play-button {
	border-left-color: #425464;
}

.tsy-video-gallery-block .tsy-video-gallery-title {
	display: block;
	margin-top: 8px;
	padding: 0 3px;
	color: inherit;
	font-weight: 400;
	text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.tsy-video-gallery-block .tsy-video-slider {
		scroll-behavior: auto;
	}

	.tsy-video-gallery-block .tsy-video-slider-nav,
	.tsy-video-gallery-block .tsy-video-gallery-item,
	.tsy-video-gallery-block .tsy-video-thumbnail::before,
	.tsy-video-gallery-block .tsy-video-thumbnail img,
	.tsy-video-gallery-block .tsy-video-play-button,
	.tsy-video-gallery-block .tsy-video-info-overlay {
		transition: none;
	}
}

.editor-styles-wrapper .tsy-video-gallery-block .tsy-video-slider-nav,
.editor-styles-wrapper .tsy-video-gallery-block .tsy-video-gallery-item {
	box-sizing: border-box;
	min-height: 0;
}

@media (max-width: 600px) {
	.tsy-video-gallery-block {
		padding: 0 1rem;
	}

	.tsy-video-gallery-block .tsy-video-info-overlay {
		padding: 1rem;
	}

	.tsy-video-gallery-block .tsy-video-gallery-item {
		flex-basis: 160px;
	}
}
