/* Layout, typography and normal/hover colors remain native Loop Item controls. */
/* Let a native grid track shrink below the one-line heading's intrinsic width. */
.e-loop-item:has(.tooto-article-card) { min-width: 0; }
.tooto-article-card {
	--tooto-article-card-accent: var(--theme-palette-color-1, #f33030);
	--tooto-article-card-duration: 240ms;
	position: relative;
	isolation: isolate;
	min-width: 0;
}

.tooto-article-card .tooto-article-card__media {
	width: 100%;
	aspect-ratio: 53 / 42;
	overflow: hidden;
	background: #f0f0f0;
	flex-shrink: 0;
}
.tooto-article-card__media img {
	/* Intrinsic image dimensions must not participate in the flex item's aspect-ratio sizing. */
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(var(--tooto-article-card-image-scale, 1));
	transition: transform var(--tooto-article-card-duration) ease;
}

.tooto-article-card__title .elementor-heading-title {
	block-size: 1.4em;
	block-size: 1lh;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tooto-article-card__excerpt {
	block-size: 2.8em;
	block-size: 2lh;
	overflow: hidden;
	flex-shrink: 0;
}
/* Support Elementor's original and optimized widget markup. */
.tooto-article-card__excerpt:not(:has(> .elementor-widget-container)),
.tooto-article-card__excerpt > .elementor-widget-container {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.tooto-article-card__excerpt p { margin: 0; }

/* The card, not Elementor's intermediate button wrappers, contains the stretched link. */
.tooto-article-card .tooto-article-card__link,
.tooto-article-card__link .elementor-widget-container,
.tooto-article-card__link .elementor-button-wrapper,
.tooto-article-card__link .elementor-button {
	position: static;
}
.tooto-article-card__link .elementor-button {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0% 1px;
	transition: color var(--tooto-article-card-duration), background-size var(--tooto-article-card-duration) ease;
}
.tooto-article-card__link .elementor-button:is(:hover, :focus-visible) { background-size: 100% 1px; }
.tooto-article-card__link .elementor-button::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}
.tooto-article-card__link .elementor-button-icon { font-size: inherit; }
.tooto-article-card__link .elementor-button-icon svg {
	width: 2em;
	height: 1.428572em;
}
.tooto-article-card__link .elementor-button-icon svg [stroke] { stroke: currentColor; fill: none; }
.tooto-article-card__link .elementor-button:focus-visible::after {
	outline: 2px solid var(--tooto-article-card-accent);
	outline-offset: -2px;
}
.tooto-article-card:focus-within { --tooto-article-card-image-scale: 1.04; }
@media (hover: hover) and (pointer: fine) {
	.tooto-article-card:hover { --tooto-article-card-image-scale: 1.04; }
}
/* Keep individual native widgets selectable in the editor. */
.elementor-editor-active .tooto-article-card__link .elementor-button::after { display: none; }
@media (prefers-reduced-motion: reduce) {
	.tooto-article-card .tooto-article-card__media img { transform: none; transition: none; }
	.tooto-article-card__link .elementor-button { transition: none; }
}
