/* Stop Elementor sections/columns/containers (which often get an
   auto-applied overflow:hidden for shape dividers, sticky effects, or
   flexbox "Containers") from clipping the 3D rotation. This only targets
   the direct ancestors of THIS widget, so it won't affect the rest of
   your page. */
.elementor-widget-orbit_circular_gallery,
.elementor-widget-orbit_circular_gallery .elementor-widget-container,
.elementor-widget-orbit_circular_gallery.elementor-widget,
.elementor-section:has(.ogs-orbit-wrapper),
.elementor-container:has(.ogs-orbit-wrapper),
.elementor-column:has(.ogs-orbit-wrapper),
.elementor-widget-wrap:has(.ogs-orbit-wrapper),
.e-con:has(.ogs-orbit-wrapper) {
	overflow: visible !important;
}

.ogs-orbit-wrapper {
	position: relative;
	width: 100%;
	isolation: isolate; /* own stacking context so other sections can't sit on top of / clip the rotating cards */
	z-index: 1;
	--ogs-radius: 480px;
	--ogs-active-scale: 1.15;
	--ogs-inactive-opacity: 0.55;
}

.ogs-orbit-viewport {
	position: relative;
	width: 100%;
	height: 640px;
	perspective: 1400px;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ogs-orbit-stage {
	position: relative;
	width: 1px;
	height: 1px;
	transform-style: preserve-3d;
	will-change: transform;
}

.ogs-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 280px;
	height: 420px;
	margin-top: -210px;
	margin-left: -140px;
	border-radius: 18px;
	overflow: hidden;
	display: block;
	text-decoration: none;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	cursor: pointer;
	transition: opacity 0.4s ease, filter 0.4s ease;
	will-change: transform, opacity;
}

.ogs-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
}

.ogs-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ogs-card-overlay {
	--ogs-overlay-start: rgba(0, 0, 0, 0);
	--ogs-overlay-end: rgba(0, 0, 0, 0.75);
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--ogs-overlay-end) 0%, var(--ogs-overlay-start) 60%);
	pointer-events: none;
}

.ogs-card-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 20px 20px;
	z-index: 2;
}

.ogs-card-badge {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #d4af6a;
	margin-bottom: 6px;
	font-weight: 600;
}

.ogs-card-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	color: #fff;
	font-weight: 600;
}

.ogs-card-subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

/* Navigation arrows */
.ogs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background 0.25s ease, transform 0.25s ease;
}

.ogs-arrow:hover {
	background: rgba(0, 0, 0, 0.6);
	transform: translateY(-50%) scale(1.08);
}

.ogs-arrow-prev {
	left: 10px;
}

.ogs-arrow-next {
	right: 10px;
}

/* Dots */
.ogs-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.ogs-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease;
}

.ogs-dot.is-active {
	background: #d4af6a;
	transform: scale(1.3);
}

/* Dragging state */
.ogs-orbit-wrapper.is-dragging .ogs-card {
	transition: none;
}

.ogs-orbit-wrapper.is-dragging .ogs-orbit-viewport {
	cursor: grabbing;
}

.ogs-orbit-viewport {
	cursor: grab;
}

@media (max-width: 1024px) {
	.ogs-orbit-viewport {
		height: 480px;
	}
	.ogs-card {
		width: 220px;
		height: 320px;
		margin-top: -160px;
		margin-left: -110px;
	}
}

@media (max-width: 767px) {
	.ogs-orbit-viewport {
		height: 360px;
	}
	.ogs-card {
		width: 160px;
		height: 240px;
		margin-top: -120px;
		margin-left: -80px;
	}
	.ogs-card-title {
		font-size: 16px;
	}
	.ogs-arrow {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
}
