.profile-gallery {
	background: #000;
	overflow: hidden;
}

.profile-gallery__main {
	background: #111;
	position: relative;
}

.profile-gallery__main .splide__track {
	background: #111;
}

.profile-gallery__main .splide__slide {
	background: #111;
}

.profile-gallery__main .splide__slide img,
.profile-gallery__main .splide__slide video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #111;
}

.profile-gallery__video {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #111;
	position: relative;
}

.profile-gallery__video video {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 100%;
}

.profile-gallery__video--placeholder::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(0,0,0,.5);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.profile-gallery__video--placeholder::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 17px solid transparent;
	border-bottom: 17px solid transparent;
	border-left: 25px solid #fff;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.profile-gallery__thumbs {
	padding: 10px 12px 14px;
	background: #000;
	visibility: visible;
}

.profile-gallery__thumbs .splide__track {
	overflow-x: auto;
	overflow-y: hidden;
	height: 104px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.profile-gallery__thumbs .splide__track::-webkit-scrollbar {
	display: none;
}

.profile-gallery__thumbs .splide__list {
	display: flex;
	width: max-content;
	min-width: 100%;
	justify-content: center;
	gap: 8px;
	transform: none !important;
}

.profile-gallery__thumbs .splide__slide {
	flex: 0 0 80px;
	width: 80px;
	height: 104px;
	background: #111;
	cursor: pointer;
	opacity: 0.58;
	transition: opacity .2s ease, outline-color .2s ease, transform .2s ease;
}

.profile-gallery__thumbs .splide__slide.is-active {
	opacity: 1;
	outline: 3px solid var(--tt-red);
	outline-offset: -3px;
	transform: translateY(-2px);
}

.profile-gallery__thumbs .splide__slide img,
.profile-gallery__video-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-gallery__video-thumb {
	position: relative;
	background-color: #171717;
	background-position: center;
	background-size: cover;
}

.profile-gallery__video-thumb--ready {
	background-color: #111;
}

.profile-gallery__video-thumb::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(0,0,0,.58);
	transform: translate(-50%, -50%);
}

.profile-gallery__video-thumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 15px solid #fff;
	transform: translate(-50%, -50%);
}

.profile-gallery__main .splide__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 88px;
	border: 0;
	border-radius: 0;
	background: rgba(0,0,0,.26);
	color: #fff;
	transform: translateY(-50%);
	cursor: pointer;
	opacity: .78;
	transition: background .2s ease, opacity .2s ease;
}

.profile-gallery__main .splide__arrow:hover,
.profile-gallery__main .splide__arrow:focus {
	background: rgba(175,32,88,.9);
	opacity: 1;
}

.profile-gallery__main .splide__arrow svg {
	display: none;
}

.profile-gallery__main .splide__arrow::before {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 58px;
	font-weight: 400;
	line-height: 1;
	margin-top: -4px;
}

.profile-gallery__main .splide__arrow--prev {
	left: 0;
}

.profile-gallery__main .splide__arrow--next {
	right: 0;
}

.profile-gallery__main .splide__arrow--prev::before {
	content: '\2039';
}

.profile-gallery__main .splide__arrow--next::before {
	content: '\203A';
}

.profile-gallery__counter {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	min-width: 54px;
	padding: 5px 9px;
	background: rgba(0,0,0,.48);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	pointer-events: none;
}

.profile-gallery--empty .profile-gallery {
	display: none;
}

.profile-gallery--fallback .profile-gallery__main .splide__list {
	display: block;
}

.profile-gallery--fallback .profile-gallery__main .splide__slide:not(:first-child) {
	display: none;
}

@media screen and (max-width: 760px) {
	.profile-gallery__thumbs {
		padding: 8px var(--indent) 10px;
	}

	.profile-gallery__thumbs .splide__track {
		height: 86px;
	}

	.profile-gallery__thumbs .splide__list {
		gap: 7px;
	}

	.profile-gallery__thumbs .splide__slide {
		flex-basis: 66px;
		width: 66px;
		height: 86px;
	}

	.profile-gallery__main .splide__arrow {
		width: 38px;
		height: 64px;
	}

	.profile-gallery__main .splide__arrow::before {
		font-size: 44px;
	}

	.profile-gallery__main .splide__arrow--prev {
		left: var(--indent);
	}

	.profile-gallery__main .splide__arrow--next {
		right: var(--indent);
	}

	.profile-gallery__counter {
		top: 10px;
		right: var(--indent);
	}

}
