/*
|--------------------------------------------------------------------------
| Sana Gallery - Doctor Gallery
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   Doctor Gallery Grid
   ========================================================================== */

.sg-doctor-gallery {
	display: grid !important;

	grid-template-columns:
		repeat(4, minmax(0, 1fr)) !important;

	grid-auto-flow: row;

	gap: 24px;

	width: 100% !important;
	max-width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	box-sizing: border-box;

	align-items: start;
}


/* ==========================================================================
   Doctor Card
   ========================================================================== */

.sg-doctor-item {
	position: relative;

	display: flex;
	flex-direction: column;

	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;

	margin: 0 !important;
	padding: 14px !important;

	box-sizing: border-box;

	background: #fff;

	border: 1px solid #e5e7eb;
	border-radius: 12px;

	overflow: hidden;

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.sg-doctor-gallery > .sg-doctor-item {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.sg-doctor-item:hover {
	transform: translateY(-2px);

	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   Doctor Image
   ========================================================================== */

.sg-doctor-image {
	position: relative;

	width: 100%;
	height: 240px;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden;

	border-radius: 9px;

	background: #f5f5f5;

	box-sizing: border-box;
}

.sg-doctor-image img {
	display: block;

	width: 100% !important;
	height: 100% !important;

	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;

	object-fit: cover !important;
	object-position: center !important;

	box-sizing: border-box;
}


/* ==========================================================================
   Doctor Details
   ========================================================================== */

.sg-doctor-details {
	width: 100% !important;

	margin: 14px 0 0 !important;
	padding: 14px 0 0 !important;

	border-top: 1px solid #e5e7eb;

	box-sizing: border-box;
}


/* ==========================================================================
   Doctor Name
   ========================================================================== */

.sg-doctor-name {
	width: 100%;

	margin: 0 0 5px;

	padding: 0;

	color: #111827;

	font-family: inherit;

	font-size: 19px;
	font-weight: 700;

	line-height: 1.4;

	box-sizing: border-box;
}


/* ==========================================================================
   Specialty
   ========================================================================== */

.sg-doctor-specialty {
	width: 100%;

	margin: 0 0 7px;

	padding: 0;

	color: #374151;

	font-family: inherit;

	font-size: 14px;
	font-weight: 600;

	line-height: 1.5;

	box-sizing: border-box;
}


/* ==========================================================================
   Subtitle
   ========================================================================== */

.sg-doctor-subtitle {
	width: 100%;

	margin: 0 0 9px;

	padding: 0;

	color: #6b7280;

	font-family: inherit;

	font-size: 13px;
	font-weight: 400;

	line-height: 1.6;

	box-sizing: border-box;
}


/* ==========================================================================
   Doctor Meta
   ========================================================================== */

.sg-doctor-meta {
	display: block;

	width: 100%;

	margin: 6px 0 0;
	padding: 0;

	color: #374151;

	font-family: inherit;

	font-size: 12px;
	font-weight: 400;

	line-height: 1.6;

	box-sizing: border-box;
}

.sg-doctor-meta strong {
	font-weight: 600;
}


/* ==========================================================================
   Summary
   ========================================================================== */

.sg-doctor-summary {
	width: 100%;

	margin: 10px 0 0;
	padding: 10px 11px;

	border-radius: 7px;

	background: #f8fafc;

	color: #374151;

	font-family: inherit;

	font-size: 12px;
	font-weight: 400;

	line-height: 1.6;

	box-sizing: border-box;
}

.sg-doctor-summary strong {
	display: block;

	margin: 0 0 3px;

	font-weight: 600;
}


/* ==========================================================================
   Description
   ========================================================================== */

.sg-doctor-description {
	width: 100%;

	margin: 9px 0 0;
	padding: 0;

	color: #4b5563;

	font-family: inherit;

	font-size: 12px;
	font-weight: 400;

	line-height: 1.6;

	box-sizing: border-box;
}


/* ==========================================================================
   Tablet - 3 Columns
   ========================================================================== */

@media (max-width: 1100px) {

	.sg-doctor-gallery {
		grid-template-columns:
			repeat(3, minmax(0, 1fr)) !important;

		gap: 20px;
	}

	.sg-doctor-image {
		height: 220px;
	}

}


/* ==========================================================================
   Small Tablet - 2 Columns
   ========================================================================== */

@media (max-width: 850px) {

	.sg-doctor-gallery {
		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;

		gap: 18px;
	}

	.sg-doctor-item {
		padding: 13px !important;
	}

	.sg-doctor-image {
		height: 210px;
	}

}


/* ==========================================================================
   Mobile - 1 Column
   ========================================================================== */

@media (max-width: 600px) {

	.sg-doctor-gallery {
		grid-template-columns:
			1fr !important;

		gap: 16px;
	}

	.sg-doctor-item {
		padding: 13px !important;

		border-radius: 10px;
	}

	.sg-doctor-image {
		height: 260px;

		border-radius: 8px;
	}

	.sg-doctor-name {
		font-size: 18px;
	}

	.sg-doctor-specialty {
		font-size: 13px;
	}

}


/* ==========================================================================
   Very Small Mobile
   ========================================================================== */

@media (max-width: 400px) {

	.sg-doctor-image {
		height: 230px;
	}

	.sg-doctor-item {
		padding: 12px !important;
	}

}


/* ==========================================================================
   WordPress / Theme Protection
   ========================================================================== */

.sg-doctor-gallery img {
	max-width: none;
}

.sg-doctor-gallery *,
.sg-doctor-gallery *::before,
.sg-doctor-gallery *::after {
	box-sizing: border-box;
}