/* Rivière instagram_carousel */

.ifp-carousel-wrap {
	--ifp-accent: #B15965;
	--ifp-visible: 6;
	position: relative;
	width: 100%;
	padding: 0 36px;
	box-sizing: border-box;
	margin: 0;
	user-select: none;
}

.ifp-carousel-viewport {
	overflow: hidden;
	cursor: grab;
}
.ifp-carousel-viewport:active { cursor: grabbing; }

.ifp-carousel-track {
	display: flex;
	will-change: transform;
}

.ifp-carousel-slide {
	flex: 0 0 calc(100% / var(--ifp-visible));
	min-width: 0;
	padding: 0 2px;
	box-sizing: border-box;
}

/* Hard-reset ALL button elements inside the carousel wrap to prevent
   Elementor/theme styles from adding borders, backgrounds, outlines */
.ifp-carousel-wrap button,
.ifp-carousel-wrap button:hover,
.ifp-carousel-wrap button:focus,
.ifp-carousel-wrap button:active {
	outline: none !important;
	box-shadow: none !important;
}

.ifp-carousel-item {
	display: block;
	text-decoration: none;
	overflow: hidden;
	background: #111 !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	cursor: pointer !important;
	text-align: left !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.ifp-carousel-img-wrap {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #222;
}
.ifp-carousel-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.35s ease;
}
.ifp-carousel-item:hover .ifp-carousel-img-wrap img {
	transform: scale(1.03);
}

/* Procedure label — top-left corner, small horizontal text */
.ifp-carousel-label {
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(18, 15, 10, 0.58);
	color: #fff;
	font-family: "Inter", "Open Sans", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 8px;
	line-height: 1;
	pointer-events: none;
	backdrop-filter: blur(2px);
}

.ifp-carousel-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 65%, rgba(0,0,0,0.15) 100%);
	pointer-events: none;
}

.ifp-carousel-play {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ifp-carousel-tagline {
	display: block;
	padding: 7px 8px 9px;
	font-family: "Open Sans", sans-serif;
	font-size: 12.5px;
	line-height: 1.35;
	color: #120F0A;
	text-align: center;
	background: #fff;
}

/* ── Arrows ─────────────────────────────── */
.ifp-carousel-arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 10;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: rgba(18, 15, 10, 0.80) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	line-height: 1;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	transition: background 0.15s ease;
}
.ifp-carousel-arrow svg {
	width: 14px;
	height: 14px;
	display: block;
	flex-shrink: 0;
}
.ifp-carousel-arrow:hover:not(:disabled) {
	background: var(--ifp-accent);
}
.ifp-carousel-arrow:disabled {
	opacity: 0.25;
	cursor: default;
}
.ifp-carousel-prev { left: 2px; }
.ifp-carousel-next { right: 2px; }

/* ── Dots ─────────────────────────────── */
.ifp-carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
}
.ifp-carousel-dot {
	width: 7px !important;
	height: 7px !important;
	border-radius: 50% !important;
	background: #ccc !important;
	border: none !important;
	cursor: pointer;
	padding: 0 !important;
	flex-shrink: 0;
	transition: background 0.15s ease, transform 0.15s ease;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	box-sizing: content-box !important;
}
.ifp-carousel-dot.ifp-dot-active {
	background: #888 !important;
	transform: scale(1.3);
}

.ifp-carousel-empty {
	color: #777;
	font-style: italic;
}

@media (max-width: 768px) {
	.ifp-carousel-wrap { padding: 0 28px; }
}
@media (max-width: 480px) {
	.ifp-carousel-wrap { padding: 0 24px; }
}

/* ── Lightbox ─────────────────────────── */
.ifp-lb-overlay {
	position: fixed;
	inset: 0;
	background: rgba(18, 15, 10, 0.82);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.28s ease;
	backdrop-filter: blur(3px);
}
.ifp-lb-overlay.ifp-lb-open {
	opacity: 1;
}

.ifp-lb-box {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	position: relative;
	transform: scale(0.95);
	transition: transform 0.28s ease;
}
.ifp-lb-overlay.ifp-lb-open .ifp-lb-box {
	transform: scale(1);
}

.ifp-lb-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 20px;
	color: #120F0A;
	cursor: pointer;
	z-index: 2;
	line-height: 1;
	padding: 4px;
	opacity: 0.6;
	transition: opacity 0.15s ease;
}
.ifp-lb-close:hover { opacity: 1; }

.ifp-lb-img-wrap {
	flex: 0 0 50%;
	max-width: 50%;
	background: #1a1a1a;
	overflow: hidden;
}
.ifp-lb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ifp-lb-content {
	flex: 1;
	padding: 36px 30px 28px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background: #fff;
}

.ifp-lb-label {
	font-family: "Inter", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #B15965;
	margin-bottom: 6px;
	display: block;
}

.ifp-lb-date {
	font-family: "Inter", sans-serif;
	font-size: 12px;
	color: #999;
	margin-bottom: 18px;
	display: block;
}

.ifp-lb-story {
	font-family: "Open Sans", sans-serif;
	font-size: 14.5px;
	line-height: 1.7;
	color: #2a2a2a;
	flex: 1;
}
.ifp-lb-story a {
	color: #9B144F;
	text-decoration: underline;
}

.ifp-lb-link {
	display: inline-block;
	margin-top: 22px;
	font-family: Lora, serif;
	font-size: 13.5px;
	font-weight: 500;
	color: #9B144F;
	text-decoration: none;
	border-bottom: 1px solid rgba(155, 20, 79, 0.3);
	padding-bottom: 2px;
	transition: color 0.15s ease;
	align-self: flex-start;
}
.ifp-lb-link:hover { color: #B15965; }

/* Responsive */
@media (max-width: 680px) {
	.ifp-lb-box { flex-direction: column; max-height: 95vh; }
	.ifp-lb-img-wrap { flex: 0 0 240px; max-width: 100%; }
	.ifp-lb-content { padding: 20px 18px 18px; }
}
