.ogc-carousel {
	--ogc-stage-height: 380px;
	--ogc-active-width: 46%;
	--ogc-active-height: 320px;
	--ogc-side-scale: 0.78;
	--ogc-outer-scale: 0.58;
	--ogc-offset-one: 25%;
	--ogc-inner-tuck: 5%;
	--ogc-offset-two: 48%;
	--ogc-drag-x: 0px;
	--ogc-nav-size: 42px;
	--ogc-nav-icon-size: 21px;
	--ogc-nav-gap: 14px;
	--ogc-lightbox-nav-size: 50px;
	--ogc-lightbox-nav-icon-size: 25px;
	--ogc-lightbox-close-size: 46px;
	--ogc-lightbox-close-icon-size: 34px;
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	outline: none;
}

.ogc-stage {
	position: relative;
	height: var(--ogc-stage-height);
	isolation: isolate;
	touch-action: pan-y;
	user-select: none;
	cursor: grab;
}

.ogc-carousel.ogc-is-dragging .ogc-stage,
.ogc-carousel.ogc-is-dragging .ogc-slide.ogc-is-drag-target {
	cursor: grabbing;
}

.ogc-slide {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: block;
	width: var(--ogc-active-width);
	height: var(--ogc-active-height);
	padding: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(18, 85, 155, 0.55);
	background: #e9eef3;
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
	cursor: grab;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(calc(-50% + var(--ogc-drag-x)), -50%) scale(0.9);
	will-change: left, transform, opacity;
	transition:
		left 480ms cubic-bezier(.2,.75,.25,1),
		width 480ms cubic-bezier(.2,.75,.25,1),
		height 480ms cubic-bezier(.2,.75,.25,1),
		opacity 260ms ease,
		transform 480ms cubic-bezier(.2,.75,.25,1),
		filter 300ms ease,
		visibility 0s linear 480ms;
}

.ogc-carousel.ogc-is-dragging .ogc-slide.ogc-is-drag-target {
	transition: none !important;
}

.ogc-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.ogc-slide[data-offset] {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.ogc-slide[data-offset="0"] {
	left: 50%;
	z-index: 5;
	width: var(--ogc-active-width);
	height: var(--ogc-active-height);
	opacity: 1;
	filter: none;
	transform: translate(calc(-50% + var(--ogc-drag-x)), -50%) scale(1);
}

.ogc-slide[data-offset="-1"],
.ogc-slide[data-offset="1"] {
	z-index: 4;
	width: var(--ogc-active-width);
	height: var(--ogc-active-height);
	opacity: 0.92;
	filter: saturate(0.92) brightness(0.96);
	transform: translate(calc(-50% + var(--ogc-drag-x)), -50%) scale(var(--ogc-side-scale));
}

.ogc-slide[data-offset="-1"] { left: calc(50% - var(--ogc-offset-one) + var(--ogc-inner-tuck)); }
.ogc-slide[data-offset="1"]  { left: calc(50% + var(--ogc-offset-one) - var(--ogc-inner-tuck)); }

.ogc-slide[data-offset="-2"],
.ogc-slide[data-offset="2"] {
	z-index: 3;
	width: var(--ogc-active-width);
	height: var(--ogc-active-height);
	opacity: 0.82;
	filter: saturate(0.82) brightness(0.9);
	transform: translate(calc(-50% + var(--ogc-drag-x)), -50%) scale(var(--ogc-outer-scale));
}

.ogc-slide[data-offset="-2"] { left: calc(50% - var(--ogc-offset-two)); }
.ogc-slide[data-offset="2"]  { left: calc(50% + var(--ogc-offset-two)); }

.ogc-slide:focus-visible,
.ogc-nav:focus-visible,
.ogc-lightbox button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.ogc-caption {
	min-height: 1.4em;
	margin-top: 14px;
	padding-inline: 16px;
	color: #222;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

.ogc-mobile-caption {
	display: none;
}

.ogc-nav {
	position: absolute;
	top: 50%;
	left: auto;
	z-index: 8;
	display: grid;
	place-items: center;
	width: var(--ogc-nav-size);
	height: var(--ogc-nav-size);
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
	color: #17212b;
	font: inherit;
	font-size: var(--ogc-nav-icon-size);
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ogc-nav span {
	display: block;
	line-height: 1;
}

.ogc-nav:hover {
	background-color: #fff;
	transform: translateY(-50%) scale(1.06);
}

/* Fallback until JavaScript positions the buttons beside the fixed outer carousel positions. */
.ogc-prev { left: calc(0px - var(--ogc-nav-size) - var(--ogc-nav-gap)); }
.ogc-next { left: calc(100% + var(--ogc-nav-gap)); }

.ogc-empty {
	padding: 24px;
	border: 1px dashed #b9c2cc;
	background: #f7f8fa;
	text-align: center;
}

.ogc-lightbox[hidden] {
	display: none;
}

.ogc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.ogc-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 10, 14, 0.94);
	backdrop-filter: blur(5px);
}

.ogc-lightbox-dialog {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: min(96vw, 1800px);
	height: min(94vh, 1200px);
}

.ogc-lightbox-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.ogc-lightbox-image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(92vw, 1700px);
	max-height: calc(88vh - 70px);
	object-fit: contain;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.ogc-lightbox-caption {
	max-width: min(92vw, 1100px);
	min-height: 1.4em;
	margin-top: 14px;
	color: #fff;
	font-size: 15px;
	font-style: normal !important;
	line-height: 1.5;
	text-align: center;
}

.ogc-lightbox-close,
.ogc-lightbox-nav {
	position: absolute;
	z-index: 3;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ogc-lightbox-close:hover,
.ogc-lightbox-nav:hover {
	background-color: rgba(255, 255, 255, 0.23);
}

.ogc-lightbox-close {
	top: 0;
	right: 0;
	width: var(--ogc-lightbox-close-size);
	height: var(--ogc-lightbox-close-size);
	font-size: var(--ogc-lightbox-close-icon-size);
	line-height: 1;
}

.ogc-lightbox-nav {
	top: 50%;
	width: var(--ogc-lightbox-nav-size);
	height: var(--ogc-lightbox-nav-size);
	font-size: var(--ogc-lightbox-nav-icon-size);
	line-height: 1;
	transform: translateY(-50%);
}

.ogc-lightbox-nav:hover {
	transform: translateY(-50%) scale(1.06);
}

.ogc-lightbox-prev { left: 0; }
.ogc-lightbox-next { right: 0; }

body.ogc-lightbox-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.ogc-carousel {
		--ogc-stage-height: 320px;
		--ogc-active-width: 56%;
		--ogc-active-height: 270px;
		--ogc-offset-one: 30%;
		--ogc-offset-two: 52%;
	}
}

@media (max-width: 767px) {
	.ogc-carousel {
		--ogc-active-width: 100%;
		--ogc-active-height: 210px;
		--ogc-lightbox-nav-size: 44px;
		--ogc-lightbox-nav-icon-size: 22px;
	}

	/* Mobile: one image at a time, with both navigation buttons centered above it. */
	.ogc-carousel .ogc-stage {
		height: calc(var(--ogc-active-height) + var(--ogc-nav-size) + 20px) !important;
		padding-top: calc(var(--ogc-nav-size) + 20px);
		overflow: visible;
		touch-action: pan-y;
		user-select: none;
		cursor: default;
	}

	.ogc-carousel .ogc-stage .ogc-slide,
	.ogc-carousel .ogc-stage .ogc-slide[data-offset] {
		left: 50%;
		top: calc(var(--ogc-nav-size) + 20px);
		z-index: 1;
		width: 100%;
		height: var(--ogc-active-height);
		margin: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		filter: none;
		transform: translateX(-50%);
		transition: opacity 220ms ease, visibility 0s linear 220ms;
		cursor: pointer;
	}

	.ogc-carousel .ogc-stage .ogc-slide[data-offset="0"] {
		z-index: 2;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(-50%);
		transition-delay: 0s;
	}

	.ogc-carousel .ogc-stage .ogc-slide img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	/* Captions stay in the shared caption below the carousel, just like desktop. */
	.ogc-mobile-caption {
		display: none !important;
	}

	.ogc-carousel > .ogc-caption {
		display: block;
	}

	.ogc-carousel .ogc-nav {
		top: 0;
		transform: none;
	}

	.ogc-carousel .ogc-nav:hover {
		transform: scale(1.06);
	}

	.ogc-carousel .ogc-prev {
		left: calc(50% - var(--ogc-nav-size) - (var(--ogc-nav-gap) / 2)) !important;
	}

	.ogc-carousel .ogc-next {
		left: calc(50% + (var(--ogc-nav-gap) / 2)) !important;
	}

	.ogc-lightbox {
		padding: 12px;
	}

	.ogc-lightbox-dialog {
		width: 100%;
		height: 100%;
	}

	.ogc-lightbox-image {
		max-width: 96vw;
		max-height: calc(84vh - 60px);
	}

	.ogc-lightbox-nav {
		top: auto;
		bottom: 8px;
		transform: none;
	}

	.ogc-lightbox-nav:hover {
		transform: scale(1.06);
	}

	.ogc-lightbox-prev { left: calc(50% - var(--ogc-lightbox-nav-size) - 8px); }
	.ogc-lightbox-next { right: calc(50% - var(--ogc-lightbox-nav-size) - 8px); }
}

@media (prefers-reduced-motion: reduce) {
	.ogc-slide,
	.ogc-nav,
	.ogc-lightbox button {
		transition: none !important;
	}
}
