.vsg-gallery {
	--vsg-accent: #e11d48;
	--vsg-columns: 3;
	--vsg-radius: 16px;
	--vsg-text: #111827;
	--vsg-muted: #64748b;
	--vsg-surface: #fff;
	--vsg-line: rgba(15, 23, 42, .1);
	--vsg-shadow: 0 12px 34px rgba(15, 23, 42, .1);
	color: var(--vsg-text);
	font-family: inherit;
	max-width: 100%;
}

.vsg-gallery.vsg-scheme-dark {
	--vsg-text: #f8fafc;
	--vsg-muted: #94a3b8;
	--vsg-surface: #111827;
	--vsg-line: rgba(255, 255, 255, .1);
	--vsg-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.vsg-gallery.vsg-scheme-inherit {
	--vsg-muted: #64748b;
	--vsg-surface: transparent;
	color: inherit;
}

.vsg-items {
	display: grid;
	grid-template-columns: repeat(var(--vsg-columns), minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}

.vsg-card {
	background: var(--vsg-surface);
	border: 1px solid var(--vsg-line);
	border-radius: var(--vsg-radius);
	box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
	min-width: 0;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.vsg-card:hover {
	border-color: color-mix(in srgb, var(--vsg-accent) 24%, transparent);
	box-shadow: var(--vsg-shadow);
	transform: translateY(-3px);
}

.vsg-card[hidden] {
	display: none !important;
}

.vsg-media {
	appearance: none;
	background: #0f172a;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: block;
	margin: 0;
	padding: 0;
	position: relative;
	text-align: left;
	text-decoration: none;
	width: 100%;
}

.vsg-image-wrap {
	aspect-ratio: 16 / 9;
	display: block;
	overflow: hidden;
	position: relative;
}

.vsg-image-wrap img {
	display: block;
	height: 100%;
	object-fit: cover;
	transform: scale(1.002);
	transition: transform .45s cubic-bezier(.2, .65, .3, 1);
	width: 100%;
}

.vsg-card:hover .vsg-image-wrap img,
.vsg-media:focus-visible .vsg-image-wrap img {
	transform: scale(1.045);
}

.vsg-image-shade {
	background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, .34));
	inset: 0;
	position: absolute;
}

.vsg-play-icon {
	align-items: center;
	backdrop-filter: blur(8px);
	background: color-mix(in srgb, var(--vsg-accent) 88%, #000);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	color: #fff;
	display: flex;
	height: 58px;
	justify-content: center;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: transform .25s ease, background-color .25s ease;
	width: 58px;
}

.vsg-play-icon svg {
	fill: currentColor;
	height: 30px;
	margin-left: 3px;
	width: 30px;
}

.vsg-card:hover .vsg-play-icon,
.vsg-media:focus-visible .vsg-play-icon {
	transform: translate(-50%, -50%) scale(1.08);
}

.vsg-duration {
	background: rgba(2, 6, 23, .86);
	border-radius: 6px;
	bottom: 10px;
	color: #fff;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1;
	padding: 6px 7px;
	position: absolute;
	right: 10px;
}

.vsg-card-content {
	padding: 18px 19px 20px;
}

.vsg-channel {
	color: var(--vsg-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.vsg-title {
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 750;
	letter-spacing: -.018em;
	line-height: 1.3;
	margin: 0;
}

.vsg-title button,
.vsg-title a {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	margin: 0;
	padding: 0;
	text-align: left;
	text-decoration: none;
}

.vsg-title button:hover,
.vsg-title a:hover,
.vsg-title button:focus-visible,
.vsg-title a:focus-visible {
	color: var(--vsg-accent);
}

.vsg-description {
	color: var(--vsg-muted);
	font-size: 14px;
	line-height: 1.62;
	margin: 10px 0 0;
}

.vsg-meta {
	align-items: center;
	color: var(--vsg-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 8px 16px;
	margin-top: 12px;
}

.vsg-meta > * + *::before {
	content: "•";
	margin-right: 16px;
}

.vsg-actions {
	display: flex;
	justify-content: center;
	margin-top: clamp(24px, 4vw, 42px);
}

.vsg-load-more {
	align-items: center;
	appearance: none;
	background: var(--vsg-text);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .15);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	gap: 9px;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	transition: background-color .2s ease, transform .2s ease;
}

.vsg-load-more:hover,
.vsg-load-more:focus-visible {
	background: var(--vsg-accent);
	transform: translateY(-1px);
}

.vsg-load-more svg {
	fill: currentColor;
	height: 19px;
	width: 19px;
}

.vsg-layout-list .vsg-items {
	grid-template-columns: 1fr;
}

.vsg-layout-list .vsg-card {
	display: grid;
	grid-template-columns: minmax(240px, 38%) 1fr;
}

.vsg-layout-list .vsg-card-content {
	align-self: center;
	padding: clamp(20px, 3vw, 34px);
}

.vsg-layout-featured .vsg-card:first-child {
	grid-column: span 2;
}

.vsg-layout-featured .vsg-card:first-child .vsg-title {
	font-size: clamp(21px, 2.2vw, 30px);
}

.vsg-carousel-controls {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin: 0 0 14px;
}

.vsg-carousel-controls button {
	align-items: center;
	appearance: none;
	background: var(--vsg-surface);
	border: 1px solid var(--vsg-line);
	border-radius: 999px;
	color: var(--vsg-text);
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
	width: 44px;
}

.vsg-carousel-controls button:hover,
.vsg-carousel-controls button:focus-visible {
	background: var(--vsg-accent);
	border-color: var(--vsg-accent);
	color: #fff;
	transform: translateY(-1px);
}

.vsg-carousel-controls button:disabled {
	cursor: default;
	opacity: .38;
	transform: none;
}

.vsg-carousel-controls svg {
	fill: currentColor;
	height: 22px;
	width: 22px;
}

.vsg-layout-carousel .vsg-items {
	display: flex;
	gap: clamp(16px, 2.2vw, 26px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 4px 3px 22px;
	scroll-padding-inline: 3px;
	scroll-snap-type: x mandatory;
	scrollbar-color: var(--vsg-accent) var(--vsg-line);
	scrollbar-width: thin;
}

.vsg-layout-carousel .vsg-card {
	flex: 0 0 max(240px, calc(var(--vsg-carousel-width) - 20px));
	scroll-snap-align: start;
}

.vsg-layout-carousel .vsg-items:focus-visible {
	border-radius: calc(var(--vsg-radius) + 4px);
	outline: 3px solid color-mix(in srgb, var(--vsg-accent) 38%, transparent);
	outline-offset: 3px;
}

.vsg-layout-masonry .vsg-items {
	column-count: var(--vsg-columns);
	column-gap: clamp(18px, 2.4vw, 30px);
	display: block;
}

.vsg-layout-masonry .vsg-card {
	break-inside: avoid;
	display: inline-block;
	margin: 0 0 clamp(18px, 2.4vw, 30px);
	vertical-align: top;
	width: 100%;
}

.vsg-layout-compact .vsg-items {
	gap: clamp(12px, 1.8vw, 20px);
}

.vsg-layout-compact .vsg-card {
	box-shadow: none;
}

.vsg-layout-compact .vsg-card-content {
	padding: 13px 14px 15px;
}

.vsg-layout-compact .vsg-play-icon {
	height: 44px;
	width: 44px;
}

.vsg-layout-compact .vsg-play-icon svg {
	height: 23px;
	width: 23px;
}

.vsg-layout-compact .vsg-title {
	font-size: 15px;
	line-height: 1.38;
}

.vsg-layout-compact .vsg-description {
	display: -webkit-box;
	font-size: 13px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.vsg-layout-compact .vsg-channel,
.vsg-layout-compact .vsg-meta {
	font-size: 11px;
}

.vsg-layout-showcase .vsg-card:first-child {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr);
}

.vsg-layout-showcase .vsg-card:first-child .vsg-card-content {
	align-self: center;
	padding: clamp(24px, 4vw, 48px);
}

.vsg-layout-showcase .vsg-card:first-child .vsg-title {
	font-size: clamp(24px, 3vw, 38px);
}

.vsg-layout-showcase .vsg-card:first-child .vsg-description {
	font-size: 15px;
}

.vsg-layout-thumbnail-title .vsg-card {
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
}

.vsg-layout-thumbnail-title .vsg-card:hover {
	box-shadow: none;
	transform: none;
}

.vsg-layout-thumbnail-title .vsg-media {
	border-radius: var(--vsg-radius);
	overflow: hidden;
}

.vsg-layout-thumbnail-title .vsg-card-content {
	padding: 13px 2px 0;
}

.vsg-layout-thumbnail-title .vsg-title {
	font-size: clamp(15px, 1.35vw, 18px);
	line-height: 1.38;
}

.vsg-notice {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-left: 4px solid #64748b;
	border-radius: 8px;
	color: #334155;
	padding: 14px 16px;
}

.vsg-modal[hidden] {
	display: none;
}

.vsg-modal {
	align-items: center;
	background: transparent;
	border: 0;
	box-sizing: border-box;
	display: flex;
	height: auto;
	inset: 0;
	justify-content: center;
	margin: 0;
	max-height: none;
	max-width: none;
	opacity: 0;
	padding: clamp(16px, 4vw, 48px);
	position: fixed;
	transition: opacity .2s ease;
	width: auto;
	z-index: 2147483647;
}

.vsg-modal.vsg-modal-portal {
	inset: 0 !important;
	isolation: isolate;
	position: fixed !important;
	z-index: 2147483647 !important;
}

.vsg-modal.is-open {
	opacity: 1;
}

.vsg-modal-backdrop {
	background: rgba(2, 6, 23, .9);
	inset: 0;
	position: absolute;
}

.vsg-modal-panel {
	background: #090d16;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: min(var(--vsg-radius), 22px);
	box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
	color: #fff;
	max-height: calc(100vh - 32px);
	max-width: 1120px;
	overflow: auto;
	position: relative;
	transform: translateY(16px) scale(.985);
	transition: transform .22s ease;
	width: 100%;
}

.vsg-modal.is-open .vsg-modal-panel {
	transform: none;
}

.vsg-modal-top {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 16px 18px;
}

.vsg-modal-top h2 {
	color: #fff;
	font-size: clamp(15px, 2vw, 20px);
	line-height: 1.35;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vsg-modal-close {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: flex;
	flex: 0 0 auto;
	height: 40px;
	justify-content: center;
	padding: 0;
	width: 40px;
}

.vsg-modal-close:hover,
.vsg-modal-close:focus-visible {
	background: var(--vsg-accent);
}

.vsg-modal-close svg {
	fill: currentColor;
	height: 22px;
	width: 22px;
}

.vsg-player {
	aspect-ratio: 16 / 9;
	background: #000;
	width: 100%;
}

.vsg-player iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

html.vsg-modal-active {
	overflow: hidden;
}

@media (max-width: 980px) {
	.vsg-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vsg-layout-masonry .vsg-items {
		column-count: 2;
	}

	.vsg-layout-carousel .vsg-card {
		flex-basis: min(420px, calc(50% - 13px));
	}
}

@media (max-width: 680px) {
	.vsg-items {
		grid-template-columns: 1fr;
	}

	.vsg-layout-list .vsg-card {
		display: block;
	}

	.vsg-layout-featured .vsg-card:first-child {
		grid-column: auto;
	}

	.vsg-layout-masonry .vsg-items {
		column-count: 1;
	}

	.vsg-layout-carousel .vsg-card {
		flex-basis: min(88vw, 360px);
	}

	.vsg-layout-showcase .vsg-card:first-child {
		display: block;
		grid-column: auto;
	}

	.vsg-layout-showcase .vsg-card:first-child .vsg-card-content {
		padding: 20px;
	}

	.vsg-modal {
		padding: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vsg-gallery *,
	.vsg-modal,
	.vsg-modal-panel {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
