/* On-site Instagram player (assets/js/nm-ig-lightbox.js) */
html.nm-igbox-open {
	overflow: hidden;
}

.nm-igbox {
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px clamp(12px, 3vw, 40px) clamp(16px, 3vh, 32px);
	font-family: "Outfit", sans-serif;
	font-weight: 300;
	color: #fff;
}

.nm-igbox[hidden] {
	display: none;
}

.nm-igbox__backdrop {
	position: absolute;
	inset: 0;
	background: #0c0c0c;
}

.nm-igbox__close {
	position: fixed;
	top: 8px;
	right: 10px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.nm-igbox__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 520px;
	max-height: 100%;
}

.nm-igbox__stage {
	position: relative;
	background: #000;
}

.nm-igbox__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: min(calc(100svh - 210px), 860px);
	min-height: 240px;
}

.nm-igbox__media video,
.nm-igbox__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.nm-igbox.is-loading .nm-igbox__media::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nm-igbox-spin 0.8s linear infinite;
}

@keyframes nm-igbox-spin {
	to {
		transform: rotate(360deg);
	}
}

.nm-igbox__note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 14px 16px;
	background: rgba(0, 0, 0, 0.75);
	font-size: 13px;
	text-align: center;
}

.nm-igbox__nav {
	position: absolute;
	top: 50%;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #111;
	font-size: 26px;
	line-height: 38px;
	cursor: pointer;
}

.nm-igbox__nav[hidden] {
	display: none;
}

.nm-igbox__prev {
	left: 10px;
}

.nm-igbox__next {
	right: 10px;
}

.nm-igbox__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}

.nm-igbox__dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
}

.nm-igbox__dots span.is-active {
	background: #fff;
}

.nm-igbox__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.nm-igbox__caption {
	margin: 0;
	max-height: 4.8em;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	white-space: pre-line;
}

.nm-igbox__caption[hidden] {
	display: none;
}

.nm-igbox__link {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	padding-bottom: 3px;
}

.nm-igbox__link:hover,
.nm-igbox__link:focus-visible {
	border-bottom-color: #fff;
}

.nm-igbox button:focus-visible,
.nm-igbox a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (min-width: 900px) {
	.nm-igbox__nav {
		width: 44px;
		height: 44px;
		margin-top: -22px;
		line-height: 42px;
	}

	.nm-igbox__prev {
		left: -64px;
	}

	.nm-igbox__next {
		right: -64px;
	}
}
