/* =========================================================
   JuliaTextile Video Gallery
   ========================================================= */

.jt-video-gallery-section {
	position: relative;
	overflow: hidden;
	padding-top: 20px;
	background:
		radial-gradient(circle at 15% 10%, rgba(255, 134, 166, 0.18) 0, rgba(255, 134, 166, 0) 32%),
		radial-gradient(circle at 85% 35%, rgba(255, 103, 143, 0.14) 0, rgba(255, 103, 143, 0) 30%),
		linear-gradient(180deg, #ffffff 0%, #fff7fa 42%, #ffffff 100%);
}

.jt-video-gallery-section::before,
.jt-video-gallery-section::after {
	content: "";
	position: absolute;
	pointer-events: none;
	border-radius: 50%;
	filter: blur(2px);
	z-index: 0;
}

.jt-video-gallery-section::before {
	width: 420px;
	height: 420px;
	left: -180px;
	top: 120px;
	background: rgba(255, 134, 166, 0.14);
}

.jt-video-gallery-section::after {
	width: 460px;
	height: 460px;
	right: -220px;
	bottom: -160px;
	background: rgba(255, 202, 214, 0.45);
}

.jt-video-gallery-section .container {
	position: relative;
	z-index: 1;
}

.jt-video-gallery {
	position: relative;
}

.jt-video-gallery__col {
	margin-bottom: 32px;
}

/* Card */
.jt-video-gallery .jt-video-card {
	position: relative;
	height: 100%;
	padding: 10px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(255, 134, 166, 0.22);
	box-shadow: 0 18px 40px rgba(90, 45, 60, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
	overflow: hidden;
}

.jt-video-gallery .jt-video-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 196, 212, 0.14));
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.jt-video-gallery .jt-video-card:hover {
	transform: translateY(-7px);
	border-color: rgba(255, 103, 143, 0.45);
	box-shadow: 0 24px 56px rgba(90, 45, 60, 0.16);
}

.jt-video-gallery .jt-video-card:hover::before {
	opacity: 1;
}

/* Thumbnail — all thumbs same ratio/height */
.jt-video-gallery .jt-video-card__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 1px;
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(135deg, #ffe6ee, #ffd1df);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
	.jt-video-gallery .jt-video-card__thumb {
		height: 215px;
	}
}

.jt-video-gallery .jt-video-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
	transition: transform 0.55s ease, filter 0.35s ease;
}

.jt-video-gallery .jt-video-card:hover .jt-video-card__img {
	transform: scale(1.07);
	filter: saturate(1.06);
}

/* Overlay */
.jt-video-gallery .jt-video-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background:
		radial-gradient(circle at center, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 42%),
		linear-gradient(180deg, rgba(25, 10, 18, 0.02) 0%, rgba(25, 10, 18, 0.16) 100%);
	transition: background 0.35s ease;
}

.jt-video-gallery .jt-video-card:hover .jt-video-card__overlay {
	background:
		radial-gradient(circle at center, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 48%),
		linear-gradient(180deg, rgba(25, 10, 18, 0.04) 0%, rgba(25, 10, 18, 0.08) 100%);
}

/* Glow under play button */
.jt-video-gallery .jt-video-card__overlay::before {
	content: "";
	position: absolute;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background:
		radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 103, 143, 0.34) 32%, rgba(255, 103, 143, 0) 72%);
	filter: blur(1px);
	animation: jtVideoGlow 2.4s ease-in-out infinite;
}

.video-overlay {
	pointer-events: none;
}

.play-icon-link {
	pointer-events: auto;
	/* …але сама іконка приймає клік */
	display: inline-block;
	/* щоб розмір можна було задати */
}

.play-icon-link:hover .play-icon {
	transform: scale(1.07);
	/* невеликий ховер-ефект */
}

/* Play button */
.jt-video-gallery .video-m__thumb .play-icon,
.jt-video-gallery .jt-video-card__play {
	position: relative;
	left: auto;
	bottom: auto;
	margin: 0;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	border-radius: 50%;
	background:
		linear-gradient(135deg, #ff86a6 0%, #ff4f83 100%);
	box-shadow:
		0 14px 34px rgba(255, 103, 143, 0.42),
		inset 0 2px 0 rgba(255, 255, 255, 0.45);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* CSS triangle, no FontAwesome needed */
.jt-video-gallery .jt-video-card__play::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 6px;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	border-left: 22px solid #ffffff;
	filter: drop-shadow(0 2px 2px rgba(120, 30, 58, 0.18));
}

.jt-video-gallery .jt-video-card:hover .jt-video-card__play {
	transform: scale(1.08);
	box-shadow:
		0 18px 42px rgba(255, 103, 143, 0.55),
		0 0 0 10px rgba(255, 255, 255, 0.24),
		inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

@keyframes jtVideoGlow {

	0%,
	100% {
		transform: scale(0.92);
		opacity: 0.72;
	}

	50% {
		transform: scale(1.12);
		opacity: 1;
	}
}

/* Content */
.jt-video-gallery .jt-video-card__content {
	position: relative;
	padding: 14px 10px 8px;
	text-align: center;
}

.jt-video-gallery .jt-video-card__name {
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jt-video-gallery .jt-video-card__name a {
	color: #333333;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
	transition: color 0.25s ease;
}

.jt-video-gallery .jt-video-card__name a:hover {
	color: #ff678f;
}

/* LightGallery + Video.js small polish */
.lg-outer .video-js {
	border-radius: 14px;
	overflow: hidden;
}

.lg-outer .vjs-big-play-button {
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff86a6, #ff4f83);
	box-shadow: 0 14px 34px rgba(255, 103, 143, 0.42);
}

.lg-outer .vjs-play-progress,
.lg-outer .vjs-volume-level {
	background-color: #ff678f;
}

/* Responsive */
@media (max-width: 991px) {
	.jt-video-gallery .jt-video-card {
		border-radius: 20px;
	}

	.jt-video-gallery .jt-video-card__thumb {
		border-radius: 16px;
	}

	.jt-video-gallery .video-m__thumb .play-icon,
	.jt-video-gallery .jt-video-card__play {
		width: 70px;
		height: 70px;
	}

	.jt-video-gallery .jt-video-card__play::before {
		border-top-width: 12px;
		border-bottom-width: 12px;
		border-left-width: 18px;
	}
}

@media (max-width: 575px) {
	.jt-video-gallery__col {
		margin-bottom: 24px;
	}

	.jt-video-gallery .jt-video-card {
		padding: 8px;
		border-radius: 18px;
	}

	.jt-video-gallery .jt-video-card__thumb {
		border-radius: 14px;
	}

	.jt-video-gallery .video-m__thumb .play-icon,
	.jt-video-gallery .jt-video-card__play {
		width: 62px;
		height: 62px;
	}

	.jt-video-gallery .jt-video-card__overlay::before {
		width: 96px;
		height: 96px;
	}

	.jt-video-gallery .jt-video-card__name a {
		font-size: 14px;
	}
}