.ks-video-gallery {
	--ks-accent: #000;
	--ks-title-color: #000000;
	--ks-text-color: rgba(0, 0, 0, 0.7);
	--ks-gap: 32px;
	text-align: center;
}

.ks-gallery-heading {
	color: #000 !important;
	margin-bottom: 12px;
}

.ks-gallery-subheading {
	color: var(--ks-text-color);
	
	margin: 0 auto 40px;
}

/* --- Film startowy --- */
.ks-video-intro {
	margin: 0 auto calc(var(--ks-gap) * 1.3);
}

.ks-video-intro .ks-video-card--intro .ks-video-thumb {
	aspect-ratio: 16 / 9;
}

/* --- Siatka 2 filmy w rzędzie --- */
.ks-video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--ks-gap);
	
	margin: 0 auto;
	text-align: left;
}

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

.ks-video-card {
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
transition: box-shadow 0.3s ease, transform 0.3s ease;
	padding:8px;
}

.ks-video-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: 4px;
	background: #000;
	cursor: pointer;
	overflow: hidden;
	padding:0 !important
}


.ks-video-thumb:hover{
	background: none !important;
}

.ks-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.ks-video-thumb:hover img {
	transform: scale(1.04);
	opacity: 0.85;
}

.ks-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
	background: var(--ks-accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease;
}

.ks-play-icon svg {
	width: 22px;
	height: 22px;
	fill: #fff !important;
	margin-left: 3px;
}

.ks-video-thumb:hover .ks-play-icon {
	transform: translate(-50%, -50%) scale(1.08);
}

.ks-video-title {
	color: var(--ks-title-color);
	font-size: 1.05em !important;
	margin: 14px 0 8px !important;
}

.ks-video-desc {
	color: var(--ks-text-color);
	font-size: 0.92em;
	line-height: 1.5;
	margin: 0;
	margin-bottom:14px !important;
}

/* --- Modal pełnoekranowy --- */
.ks-video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.94);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ks-video-modal.is-open {
	display: flex;
}

.ks-video-modal-inner {
	width: 100%;
}

.ks-video-modal-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

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

.ks-video-modal-close {
	position: absolute;
	top: 18px;
	right: 24px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.ks-video-modal-close:hover {
	color: var(--ks-accent);
}

body.ks-modal-open {
	overflow: hidden;
}
