/* Карусель фото */

.g3c {
	position: relative;
	clear: both;
	max-width: 900px;
	margin: 28px auto;
}

.g3c-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	border-radius: 14px;
	background: #eef0f5;
	scrollbar-width: none;
	outline: none;
}

.g3c-track::-webkit-scrollbar {
	display: none;
}

.g3c-slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: 3 / 2;
	margin: 0 !important;
	scroll-snap-align: center;
}

.g3c-slide a {
	display: block;
	width: 100%;
	height: 100%;
}

/* contain — старые фото не обрезаются */
.g3c .g3c-img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	object-fit: contain;
}

.g3c-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 16px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .65));
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
}

.g3c-btn {
	position: absolute;
	top: calc(50% - 30px);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	color: #1f2a44;
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
	transition: background .2s;
}

.g3c-btn:hover {
	background: #fff;
}

.g3c-prev {
	left: 12px;
}

.g3c-next {
	right: 12px;
}

.g3c-counter {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 3px 10px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 13px;
	line-height: 18px;
}

.g3c-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.g3c-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c7ccd8;
	cursor: pointer;
}

.g3c-dot.is-active {
	background: #2b3f8f;
	transform: scale(1.25);
}

/* Одиночное фото (постер) */
.g3c-photo {
	clear: both;
	margin: 0 auto 24px !important;
	text-align: center;
}

.g3c-photo .g3c-photo-img {
	display: inline-block;
	max-width: min(100%, 560px) !important;
	height: auto !important;
	float: none !important;
	margin: 0 !important;
	border-radius: 12px;
}

@media (max-width: 600px) {
	.g3c-btn {
		width: 36px;
		height: 36px;
		font-size: 24px;
		line-height: 32px;
	}

	.g3c-prev {
		left: 6px;
	}

	.g3c-next {
		right: 6px;
	}
}
