/* Hiawatha Instagram-carrousel: zelfde indeling als de SiteOrigin-carrousel
   (4 naast elkaar, 3 / 2 op tablet, 1 op mobiel) */

.hig-carrousel {
	--hig-tussenruimte: 20px;
	--hig-per-rij: 4;
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 1.5em;
}

.hig-baan {
	flex: 1;
	display: flex;
	gap: var(--hig-tussenruimte);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	outline-offset: 4px;
}
.hig-baan::-webkit-scrollbar { display: none; }

.hig-item {
	flex: 0 0 calc((100% - (var(--hig-per-rij) - 1) * var(--hig-tussenruimte)) / var(--hig-per-rij));
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
}

.hig-beeld {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #eee;
}
.hig-beeld img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.hig-item:hover .hig-beeld img,
.hig-item:focus-visible .hig-beeld img { transform: scale(1.04); }

/* Afspeelteken bij video's */
.hig-video {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
}
.hig-video::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 12px;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
}

/* Maximaal twee regels, daarna netjes afgekapt */
.hig-titel {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 10px;
	padding: 0 4px;
	text-align: center;
	font-size: 15px;
	line-height: 1.4;
}

.hig-knop {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	position: relative;
}
.hig-knop::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border: solid #555;
	border-width: 0 2px 2px 0;
}
.hig-vorige::before { transform: translate(-30%, -50%) rotate(135deg); }
.hig-volgende::before { transform: translate(-70%, -50%) rotate(-45deg); }
.hig-knop:hover { border-color: #888; }

@media (max-width: 1366px) { .hig-carrousel { --hig-per-rij: 3; } }
@media (max-width: 1025px) { .hig-carrousel { --hig-per-rij: 2; } }
@media (max-width: 480px)  { .hig-carrousel { --hig-per-rij: 1; } }

@media (prefers-reduced-motion: reduce) {
	.hig-baan { scroll-behavior: auto; }
	.hig-beeld img { transition: none; }
}
