/* MOT Stone Elementor Widgets - Frontend structural styles */

.mot-stone-pa__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 24px;
	width: 100%;
	box-sizing: border-box;
}

.mot-stone-pa__item {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
}

.mot-stone-pa__item * {
	box-sizing: border-box;
}

.mot-stone-pa__image-link {
	display: block;
	outline: none;
}

.mot-stone-pa__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin: 0 auto 16px;
}

.mot-stone-pa__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.mot-stone-pa__item:hover .mot-stone-pa__image {
	transform: scale(1.05);
}

.mot-stone-pa__title {
	margin: 0 0 16px;
	line-height: 1.4;
}

.mot-stone-pa__title a {
	color: inherit;
	text-decoration: none;
}

.mot-stone-pa__footer {
	display: flex;
	justify-content: center;
	margin-top: auto;
}

.mot-stone-pa__button {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.mot-stone-pa__notice {
	padding: 16px;
	border: 1px dashed #ccc;
	text-align: center;
	color: #666;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
	.mot-stone-pa__image-wrap {
		height: 0;
		padding-bottom: 100%;
	}
	.mot-stone-pa__image {
		position: absolute;
		top: 0;
		left: 0;
	}
}

/* ==========================================================
 * Archive Description widget
 * ========================================================== */

.mot-stone-ad {
	position: relative;
	--mot-stone-ad-fade-color: #ffffff;
	--mot-stone-ad-fade-height: 40px;
}

.mot-stone-ad__content {
	margin: 0;
}

.mot-stone-ad__content > *:last-child {
	margin-bottom: 0;
}

.mot-stone-ad--collapsible .mot-stone-ad__content {
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.mot-stone-ad--fade:not(.mot-stone-ad--expanded) {
	position: relative;
}

.mot-stone-ad--fade:not(.mot-stone-ad--expanded) .mot-stone-ad__content::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--mot-stone-ad-fade-height, 40px);
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--mot-stone-ad-fade-color, #ffffff));
}

.mot-stone-ad--fade .mot-stone-ad__content {
	position: relative;
}

.mot-stone-ad__toggle-wrap {
	display: flex;
	justify-content: flex-start;
	margin-top: 8px;
}

.mot-stone-ad__toggle {
	display: inline-block;
	cursor: pointer;
	border: none;
	background: transparent;
	font: inherit;
	line-height: 1.4;
	text-decoration: none;
	transition: all 0.3s ease;
}

.mot-stone-ad__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
