/**
 * Sidnik Testimonial Slider + Slider Arrows widgets.
 * Slides share one grid cell, so the card keeps the height of the tallest story.
 */

.sidnik-ts {
	position: relative;
	padding: 40px 48px;
	background-color: #fefaf1;
	border: 1px solid #efe7da;
	border-radius: 16px;
	touch-action: pan-y;
}

.sidnik-ts__track {
	display: grid;
}

.sidnik-ts__slide {
	grid-area: 1 / 1;
	display: flex;
	gap: 20px;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.sidnik-ts__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sidnik-ts__mark {
	flex: none;
	font-size: 64px;
	line-height: 0.85;
	color: #c38b45;
}

.sidnik-ts__body {
	min-width: 0;
	max-width: 480px;
}

/* Beats the theme's blockquote styling. */
.sidnik-ts .sidnik-ts__quote {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	font-style: normal;
}

.sidnik-ts__quote p {
	margin: 0;
}

/* Also resets the theme's figcaption styling (small, faded caption text). */
.sidnik-ts .sidnik-ts__author {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	font-size: inherit;
	opacity: 1;
}

.sidnik-ts__avatar {
	display: block;
	flex: none;
	width: 76px;
	height: 76px;
	overflow: hidden;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(12, 47, 81, 0.12);
}

.sidnik-ts__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sidnik-ts__name,
.sidnik-ts__meta {
	display: block;
}

.sidnik-ts__name {
	margin-bottom: 2px;
}

.sidnik-ts__dots {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.sidnik-ts__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	background-color: rgba(12, 47, 81, 0.2);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.sidnik-ts__dot[aria-current="true"] {
	background-color: #c38b45;
	transform: scale(1.2);
}

@media (max-width: 767px) {
	.sidnik-ts__slide {
		flex-direction: column;
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sidnik-ts__slide {
		transition: none;
	}
}

/* Slider Arrows */

.sidnik-ts-arrows {
	display: flex;
	gap: 14px;
}

.sidnik-ts-arrows__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	font-size: 16px;
	color: #0c2f51;
	background-color: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(12, 47, 81, 0.12);
	cursor: pointer;
	transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.sidnik-ts-arrows__btn:hover {
	transform: translateY(-2px);
}

.sidnik-ts-arrows__btn svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
