/* =========================================================
   mod_gallery_cat_tov
   Самодостаточный слайдер портфолио без зависимости от Slick.
   ========================================================= */

.gallery-cat-tov {
	position: relative;
	width: 100%;
	margin: 10px 0 38px;
	padding: 0 34px;
	box-sizing: border-box;
}

.gallery-cat-tov__viewport {
	width: 100%;
	overflow: hidden;
}

.gallery-cat-tov__track {
	display: flex;
	align-items: stretch;
	will-change: transform;
	transition: transform .35s ease;
}

.gallery-cat-tov__slide {
	flex: 0 0 33.333333%;
	min-width: 0;
	padding: 0 8px;
	box-sizing: border-box;
}

.gallery-cat-tov__link {
	display: block;
	width: 100%;
	height: 300px;
	overflow: hidden;
	background: #f5f5f5;
}

.gallery-cat-tov__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.gallery-cat-tov__link:hover .gallery-cat-tov__img {
	transform: scale(1.025);
}

.gallery-cat-tov__arrow {
	position: absolute;
	top: calc(50% - 24px);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(255,255,255,.94);
	color: #f36f21;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

.gallery-cat-tov__arrow:hover,
.gallery-cat-tov__arrow:focus {
	background: #fff;
	color: #d95810;
	outline: none;
}

.gallery-cat-tov__arrow--prev {
	left: 0;
}

.gallery-cat-tov__arrow--next {
	right: 0;
}

.gallery-cat-tov__arrow[disabled] {
	opacity: .3;
	cursor: default;
}

.gallery-cat-tov__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.gallery-cat-tov__dot {
	width: 9px;
	height: 9px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfcfcf;
	cursor: pointer;
}

.gallery-cat-tov__dot.is-active {
	background: #666;
}

@media (max-width: 1023px) {
	.gallery-cat-tov__slide {
		flex-basis: 50%;
	}
}

@media (max-width: 767px) {
	.gallery-cat-tov {
		padding: 0 28px;
		margin-bottom: 30px;
	}

	.gallery-cat-tov__slide {
		flex-basis: 100%;
		padding: 0 4px;
	}

	.gallery-cat-tov__link {
		height: 280px;
	}

	.gallery-cat-tov__arrow {
		width: 26px;
		height: 44px;
		font-size: 24px;
	}
}

@media (max-width: 479px) {
	.gallery-cat-tov {
		padding: 0 22px;
	}

	.gallery-cat-tov__link {
		height: 235px;
	}

	.gallery-cat-tov__arrow {
		width: 22px;
	}
}
