.higf-feed {
	margin: 0 auto;
}

.higf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.higf-profile {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.higf-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.higf-profile-names {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.higf-profile-name {
	font-weight: 700;
	font-size: 16px;
}

.higf-profile-handle {
	font-size: 13px;
	opacity: 0.72;
}

.higf-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(var(--higf-cols, 4), minmax(0, 1fr));
}

@media (max-width: 900px) {
	.higf-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.higf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.higf-full-bleed {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* Carousel layout */

.higf-car {
	position: relative;
}

.higf-car-viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.higf-car-viewport::-webkit-scrollbar {
	display: none;
}

.higf-track {
	display: flex;
	gap: 14px;
	padding: 2px;
}

.higf-layout-carousel .higf-item {
	flex: 0 0 auto;
	width: min(272px, 66vw);
	aspect-ratio: 4 / 5;
	scroll-snap-align: start;
}

.higf-car-prev,
.higf-car-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(10, 10, 10, 0.85);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 3px;
	transition: background 0.25s ease, opacity 0.25s ease;
}

.higf-car-prev:hover,
.higf-car-next:hover,
.higf-car-prev:focus-visible,
.higf-car-next:focus-visible {
	background: rgba(10, 10, 10, 0.95);
}

.higf-car-prev:focus-visible,
.higf-car-next:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.higf-car-prev[disabled],
.higf-car-next[disabled] {
	opacity: 0.35;
	cursor: default;
}

.higf-car-prev {
	left: -10px;
}

.higf-car-next {
	right: -10px;
}

@media (max-width: 700px) {
	.higf-car-prev,
	.higf-car-next {
		display: none;
	}
}

.higf-item {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #f0f0f0;
}

.higf-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.higf-item:hover img,
.higf-item:focus-visible img {
	transform: scale(1.05);
}

.higf-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #fff;
	line-height: 0;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.higf-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	line-height: 0;
	backdrop-filter: blur(2px);
	transition: transform 0.25s ease, background 0.25s ease;
}

.higf-play svg {
	width: 20px;
	height: 20px;
	margin-left: 2px;
}

.higf-item:hover .higf-play,
.higf-item:focus-visible .higf-play {
	transform: translate(-50%, -50%) scale(1.08);
	background: rgba(0, 0, 0, 0.65);
}

.higf-item-handle {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 22px 12px 10px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.higf-item-handle svg {
	flex-shrink: 0;
}

.higf-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	opacity: 0;
	transition: opacity 0.25s ease;
	font-size: 14px;
	font-weight: 600;
}

.higf-overlay > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.higf-item:hover .higf-overlay,
.higf-item:focus-visible .higf-overlay {
	opacity: 1;
}

.higf-cta-row {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.higf-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--higf-accent, #262626);
	color: var(--higf-accent-text, #ffffff) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.higf-header .higf-cta {
	padding: 11px 22px;
	font-size: 14px;
}

.higf-cta:hover,
.higf-cta:focus-visible {
	filter: brightness(1.12);
	transform: translateY(-1px);
	color: var(--higf-accent-text, #ffffff) !important;
}

.higf-empty {
	font-style: italic;
	opacity: 0.8;
}

/* Lightbox */

body.higf-lb-locked {
	overflow: hidden;
}

.higf-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.higf-lb.is-open {
	display: block;
}

.higf-lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.higf-lb-body {
	position: relative;
	z-index: 1;
	margin: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 72px;
	box-sizing: border-box;
	pointer-events: none;
}

.higf-lb-body img,
.higf-lb-body figcaption,
.higf-lb-body button {
	pointer-events: auto;
}

.higf-lb-img,
.higf-lb-video {
	max-width: min(90vw, 720px);
	max-height: 70vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.higf-lb-video {
	background: #000;
}

.higf-lb-meta {
	margin-top: 14px;
	max-width: min(90vw, 720px);
	text-align: center;
	color: #fff;
}

.higf-lb-caption {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
	max-height: 4.5em;
	overflow: hidden;
}

.higf-lb-caption:empty {
	display: none;
}

.higf-lb-link {
	color: #fff !important;
	text-decoration: underline;
	font-weight: 600;
	font-size: 14px;
}

.higf-lb button {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 8px;
	line-height: 1;
}

.higf-lb-close {
	top: 14px;
	right: 18px;
	font-size: 34px;
}

.higf-lb-prev,
.higf-lb-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 48px;
}

.higf-lb-prev {
	left: 14px;
}

.higf-lb-next {
	right: 14px;
}

.higf-lb button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 4px;
}

@media (max-width: 600px) {
	.higf-lb-body {
		padding: 56px 12px 24px;
	}

	.higf-lb-prev,
	.higf-lb-next {
		top: auto;
		bottom: 8px;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.higf-item img,
	.higf-overlay,
	.higf-play,
	.higf-cta {
		transition: none;
	}
}
