/* Touche Projecten - Front-end Styles v2.5.0 */

/* =============================================
   GRID MODE — projecten pagina [touche_projecten]
   Normaal grid, meerdere rijen, alle projecten
   ============================================= */

.tombstone-mode-grid .tombstone-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
	padding: 20px 0;
}

.tombstone-mode-grid .tombstone-col {
	flex: 0 0 25%;
	max-width: 25%;
	padding: 15px;
	box-sizing: border-box;
}

@media (max-width: 991px) {
	.tombstone-mode-grid .tombstone-col {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (max-width: 575px) {
	.tombstone-mode-grid .tombstone-col {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* =============================================
   CAROUSEL MODE — home pagina [touche_projecten limit="4"]
   Horizontaal scrollen, alle projecten geladen
   ============================================= */

/* Force Elementor parents to allow overflow in carousel */
.tombstone-mode-carousel,
.tombstone-mode-carousel .tombstone-grid {
	overflow: visible !important;
}

.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container {
	overflow: visible !important;
}

.tombstone-mode-carousel .tombstone-grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: visible !important;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding: 20px 0 30px;
	gap: 0;
	cursor: grab;
	scrollbar-width: thin;
	scrollbar-color: rgba(105, 51, 103, 0.3) transparent;
}

.tombstone-mode-carousel .tombstone-grid.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

/* Scrollbar styling */
.tombstone-mode-carousel .tombstone-grid::-webkit-scrollbar {
	height: 6px;
}
.tombstone-mode-carousel .tombstone-grid::-webkit-scrollbar-track {
	background: transparent;
}
.tombstone-mode-carousel .tombstone-grid::-webkit-scrollbar-thumb {
	background: rgba(105, 51, 103, 0.3);
	border-radius: 3px;
}
.tombstone-mode-carousel .tombstone-grid::-webkit-scrollbar-thumb:hover {
	background: rgba(105, 51, 103, 0.5);
}

.tombstone-mode-carousel .tombstone-col {
	flex: 0 0 calc(25% - 20px) !important;
	min-width: 250px;
	padding: 10px;
	scroll-snap-align: start;
	box-sizing: border-box;
}

@media (max-width: 991px) {
	.tombstone-mode-carousel .tombstone-col {
		flex: 0 0 calc(50% - 20px) !important;
		min-width: 220px;
	}
}

@media (max-width: 575px) {
	.tombstone-mode-carousel .tombstone-col {
		flex: 0 0 80% !important;
		min-width: 220px;
	}
}

/* =============================================
   SHARED STYLES — both modes
   ============================================= */

.tombstone-section {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
	position: relative;
}

/* Card */
.tombstone-section .tombstone {
	display: block;
	border-radius: 2px;
	overflow: visible !important;
	box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.12), 0px 4px 24px rgba(0, 0, 0, 0.08) !important;
	background: transparent;
	position: relative;
	text-decoration: none;
	transition: transform 300ms ease-in-out, box-shadow 300ms ease-in-out;
	max-width: 306px;
	margin-inline: auto;
}

.tombstone-section .tombstone:hover {
	transform: scale(1.04);
	box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.18), 0px 10px 36px rgba(0, 0, 0, 0.12) !important;
}

/* Background layer */
.tombstone-section .tombstone .tombstone__bg {
	position: absolute;
	top: 100px;
	left: 0;
	bottom: 0;
	right: 0;
	background: #693367;
	pointer-events: none;
	border-radius: 2px;
}

/* Inner card */
.tombstone-section .tombstone .tombstone__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border-radius: 2px;
	padding: 30px 20px 20px;
	min-height: 344px;
	z-index: 2;
	box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2), 0px 0px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Title */
.tombstone__title {
	color: #693367;
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 8px;
}

/* Badge */
.tombstone__badge {
	display: inline-block;
	margin-inline: auto;
	padding: 4px 12px;
	line-height: 1;
	vertical-align: middle;
	min-width: 100px;
	max-width: 200px;
	border-radius: 15px;
	color: #fff;
	background: #693367;
	text-align: center;
	font-size: 14px;
}

/* Footer - always 3 lines high */
.tombstone-section .tombstone .tombstone__footer {
	position: relative;
	z-index: 2;
	color: #fff;
	padding: 22px 24px;
	line-height: 1.4;
	font-size: 14px;
	text-align: center;
	border-radius: 0 0 2px 2px;
	min-height: calc(3 * 1.4em + 44px);
	max-height: calc(3 * 1.4em + 44px);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.tombstone__footer p {
	margin: 0;
}

/* Acquisition logos */
.acquisition {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-top: 24px;
	align-items: center;
}

.acquisition__logo {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
	mix-blend-mode: multiply;
}

.acquisition__logo svg,
.acquisition__logo img {
	max-height: 50px;
	height: 100%;
	max-width: 75%;
	width: auto;
}
