/*
|--------------------------------------------------------------------------
| Sana Gallery - Clinic Gallery
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   Clinic Gallery Grid
   ========================================================================== */

.sg-clinic-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;
}


/* ==========================================================================
   Clinic Card
   ========================================================================== */

.sg-clinic-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-clinic-gallery > .sg-clinic-item {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.sg-clinic-item:hover {
	transform: translateY(-2px);

	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   Clinic Image
   ========================================================================== */

.sg-clinic-media {
	position: relative;

	width: 100%;
	height: 240px;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden;

	border-radius: 9px;

	background: #f5f5f5;

	box-sizing: border-box;
}


.sg-clinic-image {
	display: block !important;

	width: 100% !important;
	height: 100% !important;

	max-width: none !important;
	max-height: none !important;

	margin: 0 !important;
	padding: 0 !important;

	object-fit: cover !important;
	object-position: center !important;

	box-sizing: border-box;
}


/* ==========================================================================
   Empty Image
   ========================================================================== */

.sg-clinic-image-empty {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;

	background: #f3f4f6;

	color: #6b7280;

	font-family: inherit;

	font-size: 13px;
	font-weight: 400;

	line-height: 1.5;

	box-sizing: border-box;
}


/* ==========================================================================
   Clinic Details
   ========================================================================== */

.sg-clinic-details {
	width: 100% !important;

	margin: 14px 0 0 !important;
	padding: 14px 0 0 !important;

	border-top: 1px solid #e5e7eb;

	box-sizing: border-box;
}


/* ==========================================================================
   Clinic Name
   ========================================================================== */

.sg-clinic-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;
}


/* ==========================================================================
   Clinic Description
   ========================================================================== */

.sg-clinic-description {
	width: 100%;

	margin: 0;

	padding: 0;

	color: #4b5563;

	font-family: inherit;

	font-size: 12px;
	font-weight: 400;

	line-height: 1.6;

	box-sizing: border-box;
}

.sg-clinic-description p {
	margin: 0 0 8px;
	padding: 0;
}

.sg-clinic-description p:last-child {
	margin-bottom: 0;
}


/* ==========================================================================
   Tablet - 3 Columns
   ========================================================================== */

@media (max-width: 1100px) {

	.sg-clinic-gallery {
		grid-template-columns:
			repeat(3, minmax(0, 1fr)) !important;

		gap: 20px;
	}

	.sg-clinic-media {
		height: 220px;
	}

}


/* ==========================================================================
   Small Tablet - 2 Columns
   ========================================================================== */

@media (max-width: 850px) {

	.sg-clinic-gallery {
		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;

		gap: 18px;
	}

	.sg-clinic-item {
		padding: 13px !important;
	}

	.sg-clinic-media {
		height: 210px;
	}

}


/* ==========================================================================
   Mobile - 1 Column
   ========================================================================== */

@media (max-width: 600px) {

	.sg-clinic-gallery {
		grid-template-columns:
			1fr !important;

		gap: 16px;
	}

	.sg-clinic-item {
		padding: 13px !important;

		border-radius: 10px;
	}

	.sg-clinic-media {
		height: 260px;

		border-radius: 8px;
	}

	.sg-clinic-name {
		font-size: 18px;
	}

}


/* ==========================================================================
   Very Small Mobile
   ========================================================================== */

@media (max-width: 400px) {

	.sg-clinic-media {
		height: 230px;
	}

	.sg-clinic-item {
		padding: 12px !important;
	}

}


/* ==========================================================================
   WordPress / Theme Protection
   ========================================================================== */

.sg-clinic-gallery img {
	max-width: none;
}

.sg-clinic-gallery *,
.sg-clinic-gallery *::before,
.sg-clinic-gallery *::after {
	box-sizing: border-box;
}