/**
 * Recipe Tag Grid for Elementor — frontend styles.
 * Base layout only; colors, gaps, typography and ratios come from widget controls.
 */

.rtg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 40px;
}

.rtg-item {
	display: flex;
	flex-direction: column;
	margin: 0;
	text-align: center;
}

.rtg-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1;
	line-height: 0;
	text-decoration: none;
}

.rtg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.rtg-item--zoom:hover .rtg-thumb img {
	transform: scale(1.06);
}

.rtg-thumb--placeholder {
	background-color: #efe9e1;
	min-height: 60px;
}

.rtg-title {
	margin: 16px 0 0;
	line-height: 1.3;
}

.rtg-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.rtg-empty {
	margin: 0;
	opacity: 0.7;
}

/* Editor-only diagnostics panel. */
.rtg-debug {
	margin: 0 0 15px;
	padding: 12px 15px;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	background: #fff8e5;
	color: #1d2327;
	font-size: 12px;
	line-height: 1.6;
	text-align: left;
	word-break: break-word;
}

.rtg-debug ul {
	margin: 8px 0 0;
	padding: 0 0 0 16px;
	list-style: disc;
}

