.hig-gallery {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
}

.hig-gallery *,
.hig-gallery *::before,
.hig-gallery *::after {
	box-sizing: border-box;
}

.hig-gallery__track {
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	height: var(--hig-height, 320px);
}

.hig-gallery__item {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	display: block;
	text-decoration: none;
	color: inherit;
	transition: flex-grow 0.35s ease;
	cursor: pointer;
}

.hig-gallery__item:hover,
.hig-gallery__item:focus-visible,
.hig-gallery__item.is-active {
	flex-grow: 2.4;
	z-index: 2;
}

.hig-gallery.is-hovering .hig-gallery__item:not(.is-active) {
	flex-grow: 0.65;
}

.hig-gallery__frame {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	background: #f3f3f3;
}

.hig-gallery__frame img {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.hig-gallery__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 1;
}

.hig-gallery__item:hover .hig-gallery__overlay,
.hig-gallery__item:focus-visible .hig-gallery__overlay,
.hig-gallery__item.is-active .hig-gallery__overlay {
	opacity: 0;
}

.hig-gallery__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 28px 18px 18px;
	color: #fff;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.45) 55%,
		rgba(0, 0, 0, 0) 100%
	);
}

.hig-gallery__title {
	display: block;
	margin: 0;
	font-size: 25px;
	line-height: 1.3;
	font-weight: 600;
	color: #fff;
}

.hig-gallery__desc {
	display: block;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.95);
}

.hig-gallery__item:hover .hig-gallery__frame img,
.hig-gallery__item.is-active .hig-gallery__frame img {
	transform: scale(1.03);
}

@media (max-width: 768px) {
	.hig-gallery__track {
		flex-direction: column;
		height: auto;
	}

	.hig-gallery__item,
	.hig-gallery__item:hover,
	.hig-gallery__item:focus-visible,
	.hig-gallery__item.is-active,
	.hig-gallery.is-hovering .hig-gallery__item:not(.is-active) {
		flex: none;
		width: 100%;
		height: 220px;
	}

	.hig-gallery__frame {
		height: 100%;
	}
}
