.nir-reels {
	--nir-gap: clamp(12px, 1.5vw, 24px);
	--nir-radius: 12px;
	--nir-text: #000000;
	--nir-surface: #ffffff;
	--nir-border: #e9e9e9;
	--nir-gold: #c5b358;
	background: linear-gradient(180deg, #FAF8F5 0%, #F5F2EA 100%);
	border-top: 1px solid var(--nir-border);
	border-bottom: 1px solid var(--nir-border);
	color: var(--nir-text);
	font-family: inherit;
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	padding: clamp(32px, 4vw, 56px) clamp(18px, 4vw, 68px) clamp(42px, 5vw, 78px);
	width: 100vw;
	position: relative;
}

.nir-reels::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--nir-gold) 50%, transparent);
	opacity: 0.8;
}

.nir-reels__header {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin: 0 auto clamp(24px, 3vw, 42px);
	max-width: 1880px;
}

.nir-reels__title {
	color: inherit;
	font-family: inherit;
	font-size: clamp(24px, 3vw, 48px);
	font-weight: 900;
	letter-spacing: -0.5px;
	line-height: 1.1;
	margin: 0;
	text-transform: uppercase;
}

.nir-reels__profile {
	border: 1.5px solid var(--nir-text);
	border-radius: 999px;
	color: var(--nir-text);
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	padding: 14px 28px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.nir-reels__profile:hover,
.nir-reels__profile:focus-visible {
	background: var(--nir-text);
	color: #ffffff;
	border-color: var(--nir-text);
}

.nir-reels__stage {
	align-items: center;
	display: block;
	margin-inline: auto;
	max-width: 1880px;
	position: relative;
}

.nir-reels__viewport {
	overflow: hidden;
	padding-block: clamp(24px, 3vw, 48px);
	touch-action: pan-y;
}

.nir-reels__track {
	display: grid;
	gap: var(--nir-gap);
	grid-auto-columns: calc((100% - (var(--nir-gap) * 4)) / 5);
	grid-auto-flow: column;
	transition: transform 520ms cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.nir-reels__item {
	aspect-ratio: 9 / 16;
	border: 1px solid var(--nir-border);
	border-radius: var(--nir-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
	opacity: .5;
	overflow: hidden;
	position: relative;
	transform: scale(.9);
	transition: opacity 400ms cubic-bezier(.16, 1, 0.3, 1), transform 400ms cubic-bezier(.16, 1, 0.3, 1), box-shadow 400ms cubic-bezier(.16, 1, 0.3, 1), border-color 400ms cubic-bezier(.16, 1, 0.3, 1);
}

.nir-reels__item.is-near {
	opacity: .8;
	transform: scale(.96);
}

.nir-reels__item.is-active {
	box-shadow: 0 20px 48px rgba(0, 0, 0, .12), 0 0 35px rgba(200, 174, 69, .2);
	opacity: 1;
	transform: scale(1.04);
	z-index: 3;
	border-color: var(--nir-gold);
}

.nir-reels__card {
	background: #000;
	color: #fff;
	display: block;
	height: 100%;
	outline: none;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	width: 100%;
}

.nir-reels__card::after {
	background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .6));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
	transition: opacity 0.3s ease;
}

.nir-reels__media {
	display: block;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.nir-reels__video {
	display: block;
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nir-reels__card:hover .nir-reels__video {
	transform: scale(1.08);
}

.nir-reels__caption {
	align-items: flex-end;
	display: flex;
	inset: 0;
	justify-content: center;
	left: 0;
	padding: clamp(12px, 1.2vw, 18px);
	position: absolute;
	z-index: 2;
}

.nir-reels__caption strong {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--nir-gold);
	border-radius: 99px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
	color: #000000;
	display: inline-flex;
	font-family: inherit;
	font-size: clamp(12px, .8vw, 14px);
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.5px;
	opacity: 0;
	line-height: 1;
	min-width: min(80%, 150px);
	padding: 12px 20px;
	position: relative;
	transform: translateY(12px);
	transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
	text-transform: uppercase;
}

.nir-reels__caption strong::after {
	content: "";
	background: var(--nir-gold);
	border-radius: 999px;
	height: 2px;
	left: 50%;
	position: absolute;
	bottom: 6px;
	transform: translateX(-50%);
	width: 16px;
	opacity: 0.7;
}

.nir-reels__item:hover .nir-reels__caption strong,
.nir-reels__item:focus-within .nir-reels__caption strong {
	opacity: 1;
	transform: translateY(0);
}

.nir-reels__caption strong:hover {
	background: var(--nir-gold);
	border-color: var(--nir-gold);
	color: #ffffff;
}

.nir-reels__arrow {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1.5px solid var(--nir-border);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
	color: var(--nir-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 52px;
	justify-content: center;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	z-index: 4;
	transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nir-reels__arrow--prev {
	left: 12px;
}

.nir-reels__arrow--next {
	right: 12px;
}

.nir-reels__arrow span {
	font-size: 28px;
	line-height: 1;
	transform: translateY(-2px);
	transition: transform 0.2s ease;
}

.nir-reels__arrow:hover,
.nir-reels__arrow:focus-visible {
	background: var(--nir-gold);
	border-color: var(--nir-gold);
	color: #ffffff;
	transform: translateY(-50%) scale(1.08);
}

.nir-reels__arrow--prev:hover span {
	transform: translateY(-2px) translateX(-2px);
}

.nir-reels__arrow--next:hover span {
	transform: translateY(-2px) translateX(2px);
}

@media (max-width: 1100px) {
	.nir-reels__track {
		grid-auto-columns: calc((100% - (var(--nir-gap) * 3)) / 4);
	}
}

@media (max-width: 768px) {
	.nir-reels {
		padding: 20px 0 76px;
	}

	.nir-reels__header {
		align-items: stretch;
		flex-direction: column;
		padding-inline: 16px;
		margin-bottom: 24px;
	}

	.nir-reels__profile {
		width: 100%;
		margin-top: 12px;
	}

	.nir-reels__stage {
		display: block;
	}

	.nir-reels__track {
		grid-auto-columns: calc((100% - (var(--nir-gap) * 1.5)) / 2.5);
	}

	.nir-reels__arrow {
		height: 44px;
		width: 44px;
	}

	.nir-reels__arrow--prev {
		left: 8px;
	}

	.nir-reels__arrow--next {
		right: 8px;
	}

	.nir-reels__caption {
		padding: 12px;
	}

	.nir-reels__caption strong {
		font-size: 12px;
		min-width: 80%;
		padding: 10px 16px;
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 480px) {
	.nir-reels__track {
		grid-auto-columns: calc((100% - (var(--nir-gap) * 0.8)) / 1.5);
	}
}

/* Force full edge-to-edge media coverage and defeat theme img { height: auto !important } */
.nir-reels__item {
	aspect-ratio: 9 / 16 !important;
	border-radius: 16px !important;
	background: #f8f6ee !important;
}

.nir-reels__card {
	background: #f8f6ee !important;
	display: block !important;
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
}

.nir-reels__media {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
}

.nir-reels__video,
.nir-reels__media img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nir-reels__caption strong {
	opacity: 1 !important;
	transform: translateY(0) !important;
}
