.ovahomee-stories,
.ovahomee-stories *,
.ovahomee-story-viewer,
.ovahomee-story-viewer * {
	box-sizing: border-box;
}

.ovahomee-stories {
	width: calc(100% - 48px);
	max-width: 1240px;
	margin: 22px auto 24px;
	color: #242424;
}

.ovahomee-stories__heading {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
}

.ovahomee-stories__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 6px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ovahomee-stories__track::-webkit-scrollbar {
	display: none;
}

/* Story strip geometry is deliberately explicit so legacy theme/cache portrait rules
 * cannot stretch the homepage thumbnail. Viewer sizing is intentionally separate. */
.ovahomee-stories .ovahomee-story-card {
	display: flex !important;
	flex: 0 0 96px !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 96px !important;
	min-width: 96px !important;
	max-width: 96px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font: inherit;
	text-align: center;
	cursor: pointer;
	scroll-snap-align: start;
}

.ovahomee-stories .ovahomee-story-card__ring {
	display: block !important;
	flex: 0 0 76px !important;
	width: 76px !important;
	height: 76px !important;
	min-width: 76px !important;
	min-height: 76px !important;
	max-width: 76px !important;
	max-height: 76px !important;
	aspect-ratio: 1 / 1 !important;
	margin: 0 auto 8px !important;
	padding: 3px !important;
	overflow: hidden !important;
	border: 3px solid #556B2F !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: inset 0 0 0 2px #fff;
	transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.ovahomee-stories .ovahomee-story-card__ring > img.ovahomee-story-card__image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	aspect-ratio: 1 / 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center !important;
}

.ovahomee-stories .ovahomee-story-card__title {
	display: -webkit-box;
	width: 96px;
	min-height: 42px;
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	direction: rtl;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ovahomee-story-card:focus-visible {
	outline: 2px solid #556B2F;
	outline-offset: 4px;
	border-radius: 18px;
}

.ovahomee-story-viewer[hidden] {
	display: none !important;
}

.ovahomee-story-viewer {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ovahomee-story-viewer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 22, 18, .82);
	opacity: 0;
	transition: opacity 160ms ease;
}

.ovahomee-story-viewer__shell {
	position: relative;
	width: min(430px, 92vw);
	height: min(760px, 90vh);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 20px;
	background: #151713;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
	opacity: 0;
	transform: translateY(8px) scale(.99);
	transition: opacity 160ms ease, transform 160ms ease;
}

.ovahomee-story-viewer.is-open .ovahomee-story-viewer__backdrop,
.ovahomee-story-viewer.is-open .ovahomee-story-viewer__shell {
	opacity: 1;
	transform: none;
}

.ovahomee-story-viewer__progress {
	position: absolute;
	z-index: 5;
	top: 10px;
	right: 12px;
	left: 12px;
	display: flex;
	gap: 5px;
	direction: rtl;
}

.ovahomee-story-viewer__progress-bar {
	flex: 1 1 0;
	height: 3px;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(255, 255, 255, .34);
}

.ovahomee-story-viewer__progress-fill {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: #fff;
	transform: scaleX(0);
	transform-origin: right center;
}

.ovahomee-story-viewer__topbar {
	position: absolute;
	z-index: 6;
	top: 22px;
	right: 14px;
	left: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
}

.ovahomee-story-viewer__title {
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ovahomee-story-viewer .ovahomee-story-viewer__close {
	margin-inline-start: auto;
	flex: 0 0 40px !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	max-width: 40px !important;
	max-height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(15, 17, 14, .38) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 1 !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ovahomee-story-viewer .ovahomee-story-viewer__close svg {
	flex: 0 0 20px !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	display: block !important;
	margin: 0 !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ovahomee-story-viewer__media,
.ovahomee-story-viewer__asset {
	width: 100%;
	height: 100%;
}

.ovahomee-story-viewer__media {
	background: #151713;
}

.ovahomee-story-viewer__asset {
	display: block;
	object-fit: cover;
}

.ovahomee-story-viewer__media > img.ovahomee-story-viewer__asset {
	object-fit: contain;
	object-position: center;
	background: #FFFFFF;
}

.ovahomee-story-viewer .ovahomee-story-viewer__tap {
	position: absolute;
	z-index: 3;
	top: 70px !important;
	bottom: 80px !important;
	width: 50% !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: transparent !important;
	display: block !important;
	font-size: 0 !important;
	line-height: 0 !important;
	opacity: 0 !important;
	cursor: pointer;
	transform: none !important;
	-webkit-tap-highlight-color: transparent;
}

/* Physical screen zones: right = next, left = previous. */
.ovahomee-story-viewer .ovahomee-story-viewer__tap--previous {
	left: 0 !important;
	right: auto !important;
}

.ovahomee-story-viewer .ovahomee-story-viewer__tap--next {
	right: 0 !important;
	left: auto !important;
}

.ovahomee-story-viewer__status {
	position: absolute;
	z-index: 4;
	top: 50%;
	right: 24px;
	left: 24px;
	padding: 12px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .52);
	color: #fff;
	font-size: 13px;
	text-align: center;
}

.ovahomee-story-viewer .ovahomee-story-viewer__cta {
	position: absolute;
	z-index: 7;
	right: 22px;
	bottom: 22px;
	left: 22px;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 46px;
	padding: 11px 18px;
	border-radius: 10px;
	background: #556B2F;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	text-decoration: none;
}

.ovahomee-story-viewer .ovahomee-story-viewer__cta-icon {
	width: 20px !important;
	height: 20px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 20px !important;
}

.ovahomee-story-viewer .ovahomee-story-viewer__cta-icon svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	display: block !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ovahomee-story-viewer__cta-label {
	display: inline-block;
}

.ovahomee-story-viewer__cta:hover,
.ovahomee-story-viewer__cta:focus {
	background: #465825;
	color: #fff;
}

@media (hover: hover) and (pointer: fine) {
	.ovahomee-story-card:hover .ovahomee-story-card__ring {
		border-color: rgba(85, 107, 47, .72);
		transform: translateY(-2px);
	}
}

@media (max-width: 767px) {
	.ovahomee-stories {
		width: 100%;
		max-width: none;
		margin: 20px 0 22px;
	}

	.ovahomee-stories__heading {
		margin: 0 16px 12px;
		font-size: 18px;
	}

	.ovahomee-stories__track {
		gap: 12px;
		padding: 2px 16px 6px;
	}

	.ovahomee-stories .ovahomee-story-card {
		flex-basis: 90px !important;
		width: 90px !important;
		min-width: 90px !important;
		max-width: 90px !important;
	}

	.ovahomee-stories .ovahomee-story-card__ring {
		flex-basis: 70px !important;
		width: 70px !important;
		height: 70px !important;
		min-width: 70px !important;
		min-height: 70px !important;
		max-width: 70px !important;
		max-height: 70px !important;
	}

	.ovahomee-stories .ovahomee-story-card__title {
		width: 90px;
		font-size: 13px;
	}

	.ovahomee-story-viewer {
		padding: 0;
	}

	.ovahomee-story-viewer__shell {
		width: 100vw;
		height: 100dvh;
		max-height: none;
		border: 0;
		border-radius: 0;
	}

	.ovahomee-story-viewer__cta {
		bottom: max(18px, env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ovahomee-story-card__ring,
	.ovahomee-story-viewer__backdrop,
	.ovahomee-story-viewer__shell,
	.ovahomee-story-viewer__progress-fill {
		transition: none !important;
	}
}
