.carousel-item video {
	width: 100%;
	height: 100vh;
	object-fit: cover;
}

.carousel-item-video {
	height: 100vh;
}

#intro .carousel-item-video {
	height: 80vh;
	min-height: 360px;
}

.carousel-item {
	position: relative;
}

:root {
	--brand: #1a4d7e;
	--muted: #6b7280;
	--gap: 28px;
}

body {
	font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
	background: #fbfdff;
	color: #222;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.page-header {
	padding: 36px 0 18px;
	background: linear-gradient(180deg, #ffffff, #f3f8ff);
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.page-header .title {
	color: var(--brand);
	font-weight: 700;
	margin-bottom: 4px;
}
.page-header .lead {
	color: var(--muted);
	font-size: 15px;
	text-align: center;
}

/* gallery grid */
.gallery {
	padding: 48px 12px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: var(--gap);
}

.card-g {
	border-radius: 16px;
	overflow: hidden;
}
.card-g:focus-within,
.card-g:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(12, 24, 40, 0.12);
}

.card-g {
	cursor: pointer;
}

.card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.card-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(26, 77, 126, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.35s ease;
}

.card-overlay h3 {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

.card-a .card-overlay {
	opacity: 1;
}

/* Hover: overlay hidden */
.card-a:hover .card-overlay {
	opacity: 0;
}

.card-a:hover img {
	transform: scale(1.05);
}

/* reveal color and zoom on hover/focus */
.card-g:hover .card-thumb img,
.card-g:focus-within .card-thumb img {
	filter: none;
	transform: scale(1.06);
}

.card-body-g {
	padding: 18px;
	text-align: center;
}

.card-title-g {
	margin: 0 0 8px;
	color: var(--brand);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}
.card-desc-g {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.65;
}

/* modal image */
.lightbox-img {
	width: 100%;
	height: 60vh;
	object-fit: contain;
	background: #111;
}

@media (max-width: 768px) {
	.lightbox-img {
		height: 45vh;
	}
}

/* small utilities */
.center {
	text-align: center;
}
.mb-xxl {
	margin-bottom: 40px;
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
	.card-thumb img {
		transition: none !important;
		transform: none !important;
	}
}

.card-thumb video.card-preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* lightbox media sizing */
.lightbox-media {
	max-height: 75vh;
	width: 100%;
}
.lightbox-media.d-none {
	display: none !important;
}
.lightbox-media.d-block {
	display: block !important;
}
