/* ACTOPIM variant first-image slider */

.actopim-variant-gallery {
	--actopim-variant-gallery-blue: #17469e;
	--actopim-variant-gallery-line: #dfe6ef;
	--actopim-variant-gallery-ink: #172033;
	--actopim-variant-gallery-muted: #66758c;
	--actopim-variant-gallery-height: 520px;
	width: 100%;
	margin: 0 0 24px;
	font-family: inherit;
}

.actopim-variant-gallery *,
.actopim-variant-gallery *::before,
.actopim-variant-gallery *::after {
	box-sizing: border-box;
}

.actopim-variant-gallery__stage {
	position: relative;
	width: 100%;
	min-height: var(--actopim-variant-gallery-height);
	border: 1px solid var(--actopim-variant-gallery-line);
	background: #fff;
	overflow: hidden;
}

.actopim-variant-gallery__slides {
	position: relative;
	display: flex;
	width: 100%;
	height: var(--actopim-variant-gallery-height);
	min-height: var(--actopim-variant-gallery-height);
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	transform: translateX(0);
	transition: transform .42s ease;
	will-change: transform;
}

.actopim-variant-gallery__slide {
	position: relative;
	flex: 0 0 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 22px !important;
	list-style: none !important;
}

.actopim-variant-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	object-fit: contain;
	box-shadow: none;
}

.actopim-variant-gallery__caption {
	position: absolute;
	right: 18px;
	bottom: 18px;
	left: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(223, 230, 239, .9);
	color: var(--actopim-variant-gallery-ink);
	backdrop-filter: blur(8px);
}

.actopim-variant-gallery__caption strong {
	min-width: 0;
	color: var(--actopim-variant-gallery-blue);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.actopim-variant-gallery__caption span {
	flex: 0 0 auto;
	color: var(--actopim-variant-gallery-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.actopim-variant-gallery__arrow {
	position: absolute;
	top: calc(var(--actopim-variant-gallery-height) / 2);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--actopim-variant-gallery-line);
	border-radius: 0;
	background: #fff;
	color: var(--actopim-variant-gallery-blue);
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
}

.actopim-variant-gallery__arrow:hover,
.actopim-variant-gallery__arrow:focus {
	border-color: var(--actopim-variant-gallery-blue);
	background: var(--actopim-variant-gallery-blue);
	color: #fff;
	outline: none;
}

.actopim-variant-gallery__arrow--prev {
	left: 16px;
}

.actopim-variant-gallery__arrow--next {
	right: 16px;
}

.actopim-variant-gallery__thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 86px;
	grid-template-rows: repeat(2, 86px);
	gap: 9px;
	width: 100%;
	margin-top: 10px;
	padding-bottom: 4px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
}

.actopim-variant-gallery__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 86px;
	margin: 0;
	padding: 5px;
	border: 1px solid var(--actopim-variant-gallery-line);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
}

.actopim-variant-gallery__thumb.is-active,
.actopim-variant-gallery__thumb:hover,
.actopim-variant-gallery__thumb:focus {
	border-color: var(--actopim-variant-gallery-blue);
	outline: none;
}

.actopim-variant-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 768px) {
	.actopim-variant-gallery {
		--actopim-variant-gallery-height: 380px;
	}

	.actopim-variant-gallery__caption {
		right: 10px;
		bottom: 10px;
		left: 10px;
		min-height: 46px;
		padding: 10px 12px;
	}

	.actopim-variant-gallery__slide {
		padding: 14px !important;
	}

	.actopim-variant-gallery__thumbs {
		grid-auto-columns: 68px;
		grid-template-rows: repeat(2, 68px);
	}

	.actopim-variant-gallery__thumb {
		width: 68px;
		height: 68px;
	}
}

@media (max-width: 420px) {
	.actopim-variant-gallery {
		--actopim-variant-gallery-height: 310px;
	}

	.actopim-variant-gallery__caption {
		display: block;
	}

	.actopim-variant-gallery__caption span {
		display: block;
		margin-top: 5px;
	}
}
