/*
 * Mirrors the hand-built Elementor device grid on /iphone-repair/ (containers
 * elementor-element-42b4fdb/-ab8d068/etc, see wp-content/uploads/elementor/css/post-1555.css)
 * so [rc_devices] cards sit in the same grid, pixel for pixel, as the
 * hardcoded cards above them. Values below were read directly off that CSS
 * file, not guessed — keep them in sync if the original grid ever changes.
 */

.rc-device-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
}

.rc-device-grid__item {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	width: 25%;
	padding: 20px;
}

.rc-device-grid__image {
	position: relative;
	z-index: 1;
}

.rc-device-grid__image .elementor-widget-container {
	margin: 0 0 -18px 0;
}

.rc-device-grid__title {
	position: relative;
	z-index: 2;
	text-align: center;
}

.rc-device-grid__title .elementor-heading-title {
	font-size: 18px;
	text-decoration: none;
}

.rc-device-grid__title .elementor-heading-title a {
	text-decoration: none;
}

.rc-device-grid__title .elementor-heading-title a:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) and (min-width: 768px) {
	.rc-device-grid__item {
		width: 33%;
	}
}

@media (max-width: 767px) {
	.rc-device-grid__item {
		width: 50%;
	}

	.rc-device-grid__title .elementor-heading-title {
		font-size: 16px;
		font-weight: 600;
		letter-spacing: -0.5px;
	}
}
