.profile-slider {
	width: 100%;
	max-width: 230px;
}

.profile-slider__main {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	overflow: hidden;
}

.profile-slider__viewport {
	position: relative;
	width: 100%;
	height: 100%;
}

.profile-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.profile-slider__slide_active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.profile-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 20px;
	line-height: 26px;
	cursor: pointer;
}

.profile-slider__arrow:hover {
	background: rgba(0, 0, 0, 0.65);
}

.profile-slider__arrow_prev {
	left: 6px;
}

.profile-slider__arrow_next {
	right: 6px;
}

.profile-slider__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	width: 100%;
}

.profile-slider__thumb {
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	flex: 0 0 52px;
}

.profile-slider__thumb:hover {
	border-color: rgba(175, 34, 128, 0.45);
}

.profile-slider__thumb_active {
	border-color: #af2280;
}

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

.profile-slider__cta,
.profile-slider__cta:link,
.profile-slider__cta:visited {
	display: block;
	width: 100%;
	max-width: 230px;
	margin-top: 10px;
	padding: 9px 12px;
	box-sizing: border-box;
	border-radius: 4px;
	background-color: #af2280;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.profile-slider__cta:hover,
.profile-slider__cta:active {
	background-color: #8c1a66;
	color: #fff;
	text-decoration: none;
}

/* Галерея выше по высоте, чем стандартный блок 230px */
.user .user__img-wrap:has(.profile-slider) {
	width: 100%;
	max-width: 230px;
	height: auto;
	min-height: 0;
	overflow: visible;
	margin-bottom: 12px;
	box-sizing: border-box;
}

.user .user__img-inner:has(.profile-slider) .user__meta {
	position: static;
	width: 100%;
	margin-top: 8px;
}

/* Реклама после h1 не должна налезать на превью */
.user:has(.profile-slider) .user__title div[id^="yandex_rtb"] {
	clear: both;
	display: block;
	margin: 16px 0 0;
}

@media (max-width: 959px) {
	.user:has(.profile-slider) {
		width: 100%;
	}

	.user .user__img-wrap:has(.profile-slider),
	.profile-slider {
		max-width: none;
		width: 100%;
	}

	.user .user__img-wrap:has(.profile-slider) {
		float: none;
		margin-right: 0;
	}

	.profile-slider__main {
		background-color: #f4e3d3;
	}

	.profile-slider__img {
		object-fit: contain;
	}

	.profile-slider__thumb {
		flex: 1 1 calc(25% - 5px);
		width: auto;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.user:has(.profile-slider) .profile-slider__cta,
	.user:has(.profile-slider) .profile-slider__cta:link,
	.user:has(.profile-slider) .profile-slider__cta:visited {
		max-width: none;
		width: 100%;
		font-size: 16px;
		padding: 14px 16px;
	}
}
