/*
|--------------------------------------------------------------------------
| Sana Gallery - Procedure Gallery
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   Procedure Gallery Grid
   ========================================================================== */

.sg-procedure-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;
}


/* ==========================================================================
   Procedure Card
   ========================================================================== */

.sg-procedure-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-procedure-gallery > .sg-procedure-item {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.sg-procedure-item:hover {
	transform: translateY(-2px);

	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   Procedure Image
   ========================================================================== */

.sg-procedure-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-procedure-image-link {
	display: block;

	width: 100%;
	height: 100%;

	margin: 0;
	padding: 0;
}

.sg-procedure-image img,
.sg-procedure-image-element {
	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;
}


/* ==========================================================================
   Procedure Details
   ========================================================================== */

.sg-procedure-details {
	width: 100% !important;

	margin: 14px 0 0 !important;
	padding: 14px 0 0 !important;

	border-top: 1px solid #e5e7eb;

	box-sizing: border-box;
}


/* ==========================================================================
   Procedure Title
   ========================================================================== */

.sg-procedure-title {
	width: 100%;

	margin: 0 0 7px;

	padding: 0;

	color: #111827;

	font-family: inherit;

	font-size: 19px;
	font-weight: 700;

	line-height: 1.4;

	box-sizing: border-box;
}


/* ==========================================================================
   Procedure Description
   ========================================================================== */

.sg-procedure-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;
}

.sg-procedure-description p {
	margin: 0 0 8px;
	padding: 0;
}


/* ==========================================================================
   Procedure Action
   ========================================================================== */

.sg-procedure-action {
	width: 100%;

	margin: 14px 0 0;
	padding: 0;

	box-sizing: border-box;
}

.sg-procedure-link {
	display: inline-block;

	margin: 0;
	padding: 0;

	font-family: inherit;

	text-decoration: none;
}


/* ==========================================================================
   Tablet - 3 Columns
   ========================================================================== */

@media (max-width: 1100px) {

	.sg-procedure-gallery {
		grid-template-columns:
			repeat(3, minmax(0, 1fr)) !important;

		gap: 20px;
	}

	.sg-procedure-image {
		height: 220px;
	}

}


/* ==========================================================================
   Small Tablet - 2 Columns
   ========================================================================== */

@media (max-width: 850px) {

	.sg-procedure-gallery {
		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;

		gap: 18px;
	}

	.sg-procedure-item {
		padding: 13px !important;
	}

	.sg-procedure-image {
		height: 210px;
	}

}


/* ==========================================================================
   Mobile - 1 Column
   ========================================================================== */

@media (max-width: 600px) {

	.sg-procedure-gallery {
		grid-template-columns:
			1fr !important;

		gap: 16px;
	}

	.sg-procedure-item {
		padding: 13px !important;

		border-radius: 10px;
	}

	.sg-procedure-image {
		height: 260px;

		border-radius: 8px;
	}

	.sg-procedure-title {
		font-size: 18px;
	}

}


/* ==========================================================================
   Very Small Mobile
   ========================================================================== */

@media (max-width: 400px) {

	.sg-procedure-image {
		height: 230px;
	}

	.sg-procedure-item {
		padding: 12px !important;
	}

}


/* ==========================================================================
   WordPress / Theme Protection
   ========================================================================== */

.sg-procedure-gallery img {
	max-width: none;
}

.sg-procedure-gallery *,
.sg-procedure-gallery *::before,
.sg-procedure-gallery *::after {
	box-sizing: border-box;
}
