/* =============================================
   Enav Video Gallery — Brand-matched styles
   Colors: #033359 (navy), #FAD9D4 (pink), #173457 (dark navy)
   Font: atlas, sans-serif
   ============================================= */

.enav-vg-wrap {
	font-family: atlas, sans-serif;
	direction: rtl;
}

/* ── Section ── */
.enav-vg-section {
	margin: 48px 0;
}

.enav-vg-section-title {
	font-family: atlas, sans-serif;
	font-size: 28px;
	font-weight: 600;
	color: #033359;
	margin: 0 0 8px;
	text-align: center;
}

/* Pink underline accent — matches the thin dividers on the site */
.enav-vg-section-title::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	background: #FAD9D4;
	margin: 10px auto 24px;
	border-radius: 2px;
}

/* ── Track wrapper — handles side overflow ── */
.enav-vg-track-outer {
	overflow: hidden;
	/* pull out to full width so first/last cards aren't clipped */
	margin-left:  -20px;
	margin-right: -20px;
}

/* ── Horizontal scrollable track ── */
.enav-vg-track {
	display: flex;
	flex-direction: row;
	gap: 20px;
	overflow-x: auto;
	padding: 8px 20px 16px;   /* side padding restores the pulled-out margin */
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	user-select: none;
}

.enav-vg-track.is-dragging {
	cursor: grabbing !important;
	scroll-snap-type: none;
}

.enav-vg-track.is-dragging .enav-vg-card {
	cursor: grabbing !important;
	transform: none !important;
	pointer-events: none;
}

.enav-vg-track::-webkit-scrollbar {
	height: 8px;
}
.enav-vg-track::-webkit-scrollbar-track {
	background: #f0f4f8;
	border-radius: 8px;
}
.enav-vg-track::-webkit-scrollbar-thumb {
	background: #b0c4d8;
	border-radius: 8px;
}
.enav-vg-track::-webkit-scrollbar-thumb:hover {
	background: #033359;
}

/* ── Card ── */
.enav-vg-card {
	flex: 0 0 400px;
	scroll-snap-align: start;
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8eef5;
	box-shadow: 0 2px 14px rgba(3, 51, 89, 0.07);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
}

.enav-vg-card img {
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none; /* prevents browser native image drag */
}

.enav-vg-card:hover {
	box-shadow: 0 4px 18px rgba(3, 51, 89, 0.12);
}

/* ── Thumbnail ── */
.enav-vg-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #033359;
	overflow: hidden;
}

.enav-vg-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.enav-vg-card:hover .enav-vg-thumb {
	transform: scale(1.04);
	opacity: 0.82;
}

/* ── Play button (navy circle — brand style, not YouTube red) ── */
.enav-vg-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.enav-vg-play-circle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(3, 51, 89, 0.80);
	border: 2px solid rgba(255, 255, 255, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.enav-vg-card:hover .enav-vg-play-circle {
	background: #033359;
	transform: scale(1.08);
}

.enav-vg-play-circle svg {
	width: 22px;
	height: 22px;
	fill: #ffffff;
	margin-right: -3px; /* optical centering of the triangle */
}

/* ── Card info ── */
.enav-vg-info {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: right;
}

.enav-vg-name {
	font-family: atlas, sans-serif;
	font-weight: 600;
	font-size: 17px;
	color: #033359;
	display: block;
	margin-bottom: 2px;
}

.enav-vg-project {
	font-family: atlas, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #033359 !important;
	background: none;
	display: block;
	padding: 0;
	border-radius: 0;
	text-decoration: none !important;
}

.enav-vg-project-link {
	font-family: atlas, sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: #7A7A7A !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	background: none;
	padding: 0;
	margin-top: 2px;
	border-radius: 0;
	display: inline-block;
	transition: color 0.2s ease;
}

.enav-vg-project-link:hover,
.enav-vg-project-link:active,
.enav-vg-wrap a.enav-vg-project-link:hover {
	color: #033359 !important;
	text-decoration: underline !important;
}

/* ── Divider between sections ── */
.enav-vg-section + .enav-vg-section {
	border-top: 1px solid #f0f4f8;
	padding-top: 48px;
}

/* =============================================
   Modal / Lightbox
   ============================================= */
.enav-vg-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.enav-vg-modal.is-open {
	display: flex;
}

.enav-vg-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 51, 89, 0.88);
	backdrop-filter: blur(4px);
}

.enav-vg-modal-inner {
	position: relative;
	z-index: 1;
	width: 90vw;
	max-width: 900px;
}

.enav-vg-modal-close {
	position: absolute;
	top: -44px;
	left: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 38px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.enav-vg-modal-close:hover {
	opacity: 1;
}

.enav-vg-modal-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

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

/* ── Mobile ── */
@media (max-width: 767px) {
	.enav-vg-card {
		flex: 0 0 320px;
	}

	.enav-vg-section-title {
		font-size: 22px;
	}

	.enav-vg-modal-inner {
		width: 95vw;
	}

	.enav-vg-modal-close {
		top: -38px;
		font-size: 32px;
	}
}
