:root {
	--gap: 16px;
	--card-bg: #fff;
	--accent: #2b95f0;
	--text: #233;
}

body {
	font-family: 'Inter', system-ui, Arial;
	margin: 0;
	color: var(--text);
	background: #f7f9fb;
}

#patients-gallery {
	margin: 50px 0;
}

/* h1 {
	font-size: 28px;
	margin-bottom: 10px;
} */
.lead {
	color: #556;
	margin-top: 0;
	font-size: 16px;
	margin-bottom: 40px;
	text-align: center;
}

/* responsive grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
}
@media (max-width: 900px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}

/* card */
.case-card {
	background: var(--card-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(20, 30, 40, 0.06);
	position: relative;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.case-card:focus {
	outline: 3px solid rgba(43, 149, 240, 0.18);
	outline-offset: 3px;
}
.case-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(20, 30, 40, 0.12);
}

.case-thumb {
	width: 100%;
	display: block;
	aspect-ratio: 16/12;
	object-fit: cover;
	background: #eee;
}
.case-body {
	padding: 12px 14px;
}
.case-title {
	margin: 0;
	font-size: 1.05rem;
	color: #14202b;
	font-weight: 600;
}
.case-sub {
	margin: 6px 0 0;
	color: #586b76;
	font-size: 0.92rem;
	line-height: 1.25;
}

/* small label shown on large screens under title */
.case-label {
	display: none;
	font-size: 0.82rem;
	color: #7a8b95;
	margin-top: 8px;
}

/* overlay (brand tinted) for "Card A" style on hover */
.card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(43, 149, 240, 0.15),
		rgba(43, 149, 240, 0.22)
	);
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.18s ease;
	pointer-events: none;
}
.card-a:hover .card-overlay,
.card-a:focus .card-overlay {
	opacity: 1;
	pointer-events: auto;
}
.card-overlay h3 {
	color: #fff;
	font-size: 1.25rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	margin: 0;
}

/* For "Card B" style (dark overlay + title visible by default) */
/* .card-b .card-overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
	opacity: 1;
}
.card-b .card-overlay h3 {
	color: #e9f4ff;
} */

/* Modal */
.lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 12, 15, 0.6);
	z-index: 1100;
	padding: 30px;
}
.lightbox.show {
	display: flex;
}
.lightbox-panel {
	width: min(1100px, 96%);
	max-height: 92vh;
	background: #0f1112;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.lightbox-media {
	background: #000;
	height: min(62vh, 640px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox-media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}
.lightbox-caption {
	padding: 18px 22px;
	color: #edf6ff;
	background: linear-gradient(180deg, rgba(6, 10, 14, 0.06), transparent);
}
.lightbox-caption strong {
	display: block;
	font-size: 1.05rem;
	margin-bottom: 8px;
	color: #fff;
}
.lightbox-caption p {
	margin: 0;
	opacity: 0.95;
	line-height: 1.45;
	color: #dceeff;
}

/* controls */
.lb-close {
	position: absolute;
	right: 18px;
	top: 18px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
}
.lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}
.lb-nav button {
	pointer-events: auto;
	background: #fff;
	border-radius: 8px;
	border: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 10px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}
.lb-footer {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

/* small helper */
.meta-small {
	font-size: 0.85rem;
	color: #bcd6ff;
	opacity: 0.9;
}
