/* Odisha Hero Slider — front end */
.ohs {
	--ohs-ease: cubic-bezier(.215, .61, .355, 1);
	--ohs-ink: #fff;
	--ohs-shade: rgba(8, 18, 28, .62);
	position: relative;
	width: 100%;
	aspect-ratio: var(--ohs-ratio, 2/1);
	max-height: 100vh;
	overflow: hidden;
	background: #0d1a24;
	color: var(--ohs-ink);
	isolation: isolate;
	outline: none;
}
.ohs-track { position: absolute; inset: 0; }

/* Slides ---------------------------------------------------------------- */
.ohs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
}
.ohs-slide.is-active { opacity: 1; visibility: visible; z-index: 3; }
.ohs-slide.is-leaving {
	visibility: visible;
	z-index: 2;
	animation: ohs-out .5s ease forwards;
}
.ohs-bg { position: absolute; inset: 0; }
.ohs .ohs-bg .ohs-img,
.ohs .ohs-bg .ohs-video {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	border-radius: 0 !important;
}
.ohs-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ohs-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
/* Incoming slide: fades in from 85% scale after the old one fades out. */
/* The first image shows instantly (fast page load); later slides zoom in. */
.ohs.has-moved .ohs-slide.is-active .ohs-bg {
	animation: ohs-in 1.1s var(--ohs-ease) .35s both;
}

/* Caption ---------------------------------------------------------------
   Sized by its text (never overflows), placed by the per-slide setting. */
.ohs-caption {
	--edge-x: 6%;
	--edge-top: 12%;
	--edge-bottom: calc(var(--ohs-dots-b, 70px) + 40px);
	position: absolute;
	z-index: 2;
	display: block;
	width: max-content;
	max-width: min(46%, 680px);
	padding: clamp(16px, 2.1vw, 40px) clamp(24px, 3.4vw, 64px);
	color: inherit;
	text-decoration: none;
}
.ohs-caption[data-pos^="t"] { top: var(--edge-top); }
.ohs-caption[data-pos^="m"] { top: 50%; transform: translateY(-50%); }
.ohs-caption[data-pos^="b"] { bottom: var(--edge-bottom); }
.ohs-caption[data-pos$="l"] { left: var(--edge-x); }
.ohs-caption[data-pos$="r"] { right: var(--edge-x); }
.ohs-caption[data-pos$="c"] { left: 50%; transform: translateX(-50%); text-align: center; }
.ohs-caption[data-pos="mc"] { transform: translate(-50%, -50%); }

.ohs-panel {
	position: absolute;
	inset: 0;
	background: var(--ohs-shade);
	border-radius: 4px;
	z-index: -1;
}
.ohs.has-panel-image .ohs-panel {
	/* The brush shape stretches around the text, whatever its length. */
	inset: -8% -6%;
	background: var(--ohs-panel) center / 100% 100% no-repeat;
	border-radius: 0;
}
.ohs-text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: clamp(4px, .5vw, 10px);
}
.ohs .ohs-caption,
.ohs .ohs-caption * { font-family: var(--ohs-font, inherit); }
.ohs .ohs-title {
	color: var(--ohs-tc, #fff);
	font-size: clamp(18px, calc(var(--ohs-t, 54) * .052vw), calc(var(--ohs-t, 54) * 1px));
	font-weight: var(--ohs-w, 600);
	line-height: 1.12;
	text-wrap: balance;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.ohs .ohs-sub {
	color: var(--ohs-sc, #fff);
	font-size: clamp(12px, calc(var(--ohs-s, 20) * .052vw), calc(var(--ohs-s, 20) * 1px));
	line-height: 1.45;
	max-width: 42ch;
	opacity: .95;
	text-wrap: pretty;
}
.ohs-caption[data-pos$="c"] .ohs-sub { margin-inline: auto; }

/* Background focus point (set per slide in the admin) */
.ohs-img,
.ohs-video { object-position: var(--fx, 50%) var(--fy, 50%); }

/* Timed layer reveal (panel 0.83s, title 1.73s, subtitle 1.96s) --------- */
.ohs-slide.is-active .ohs-panel { animation: ohs-rise 1s var(--ohs-ease) .83s both; }
.ohs-slide.is-active .ohs-title { animation: ohs-fade .6s ease 1.73s both; }
.ohs-slide.is-active .ohs-sub   { animation: ohs-fade .6s ease 1.96s both; }

@keyframes ohs-in   { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ohs-out  { from { opacity: 1; } to { opacity: 0; } }
@keyframes ohs-rise { from { opacity: 0; transform: translateY(160%); } to { opacity: 1; transform: none; } }
@keyframes ohs-fade { from { opacity: 0; } to { opacity: 1; } }

/* Arrows with a hover preview of the next / previous place ------------- */
.ohs-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	height: 56px;
	min-width: 56px;
	padding: 0;
	border: 0;
	border-radius: 28px;
	background: rgba(8, 18, 28, .45);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .25s ease;
}
.ohs-prev { left: 24px; }
.ohs-next { right: 24px; flex-direction: row-reverse; }
.ohs-arrow svg {
	flex: none;
	width: 56px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ohs-peek {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 500;
	transition: max-width .45s var(--ohs-ease), padding .45s var(--ohs-ease);
}
.ohs-peek img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.ohs-next .ohs-peek { flex-direction: row-reverse; }
@media (hover: hover) {
	.ohs-arrow:hover { background: rgba(8, 18, 28, .75); }
	.ohs-arrow:hover .ohs-peek { max-width: 280px; }
	.ohs-prev:hover .ohs-peek { padding-right: 8px; }
	.ohs-next:hover .ohs-peek { padding-left: 8px; }
}
.ohs-arrow:focus-visible,
.ohs-dot:focus-visible,
.ohs-caption:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Dots ------------------------------------------------------------------ */
.ohs-dots {
	position: absolute;
	left: 50%;
	bottom: var(--ohs-dots-b, 70px);
	z-index: 20;
	pointer-events: auto;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}
.ohs .ohs-dot {
	position: relative;
	width: 14px;
	height: 14px;
	min-height: 0;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	line-height: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}
.ohs .ohs-dot::after { content: ""; position: absolute; inset: -10px; } /* bigger tap area */
.ohs .ohs-dot[aria-current="true"] { background: #fff; transform: scale(1.15); }

/* Tablets ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ohs { aspect-ratio: 16 / 10; }
	.ohs-caption { max-width: 62%; --edge-x: 5%; }
	.ohs-arrow { height: 48px; min-width: 48px; }
	.ohs-arrow svg { width: 48px; }
}

/* Phones: full-width caption at top, middle or bottom ------------------- */
@media (max-width: 767px) {
	.ohs { aspect-ratio: var(--ohs-ratio-m, 4/5); max-height: 85vh; }
	.ohs-caption,
	.ohs-caption[data-pos] {
		left: 4%;
		right: 4%;
		top: auto;
		bottom: auto;
		width: auto;
		max-width: none;
		padding: 16px 20px;
		transform: none;
		text-align: left;
	}
	.ohs-caption[data-pos-m="top"] { top: 6%; }
	.ohs-caption[data-pos-m="middle"] { top: 50%; transform: translateY(-50%); }
	.ohs-caption[data-pos-m="bottom"] { bottom: calc(var(--ohs-dots-b-m, 60px) + 30px); }
	.ohs.has-panel-image .ohs-panel { inset: 0; background: var(--ohs-shade); border-radius: 4px; }
	.ohs.panel-on-phone .ohs-caption { padding: 22px 28px; }
	.ohs.panel-on-phone .ohs-panel { inset: -6% -3%; background: var(--ohs-panel) center / 100% 100% no-repeat; border-radius: 0; }
	.ohs .ohs-title { font-size: calc(var(--ohs-t-m, 24) * 1px); }
	.ohs .ohs-sub { font-size: calc(var(--ohs-s-m, 14) * 1px); max-width: none; }
	.ohs-caption[data-pos$="c"] .ohs-sub { margin-inline: 0; }
	.ohs-arrow { display: none; }
	.ohs-dots { bottom: var(--ohs-dots-b-m, 60px); }
}

/* Respect "reduce motion" ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ohs.has-moved .ohs-slide.is-active .ohs-bg,
	.ohs-slide.is-active .ohs-panel,
	.ohs-slide.is-active .ohs-title,
	.ohs-slide.is-active .ohs-sub { animation: ohs-fade .3s ease both; }
	.ohs-slide.is-leaving { animation-duration: .2s; }
}

/* v1.5: max height options */
.ohs { max-height: var(--ohs-maxh, 100vh); }
@media (max-width: 1024px) { .ohs { max-height: var(--ohs-maxh-t, var(--ohs-maxh, 100vh)); } }
@media (max-width: 767px) { .ohs { max-height: var(--ohs-maxh-m, 85vh); } }

/* v1.6: slow zoom (Ken Burns) on photo slides */
@keyframes ohs-kb-in { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes ohs-kb-out { from { transform: scale(1.14); } to { transform: scale(1); } }
.ohs .ohs-bg { overflow: hidden; }
.ohs .ohs-bg .ohs-img { transform-origin: var(--fx, 50%) var(--fy, 50%); will-change: transform; }
.ohs[data-motion="in"] .ohs-slide.is-active .ohs-img, .ohs[data-motion="in"] .ohs-slide.is-leaving .ohs-img,
.ohs[data-motion="alternate"] .ohs-slide:nth-child(odd).is-active .ohs-img, .ohs[data-motion="alternate"] .ohs-slide:nth-child(odd).is-leaving .ohs-img { animation: ohs-kb-in var(--ohs-kb, 8.5s) ease-out both; }
.ohs[data-motion="out"] .ohs-slide.is-active .ohs-img, .ohs[data-motion="out"] .ohs-slide.is-leaving .ohs-img,
.ohs[data-motion="alternate"] .ohs-slide:nth-child(even).is-active .ohs-img, .ohs[data-motion="alternate"] .ohs-slide:nth-child(even).is-leaving .ohs-img { animation: ohs-kb-out var(--ohs-kb, 8.5s) ease-out both; }
@media (prefers-reduced-motion: reduce) { .ohs .ohs-slide .ohs-img { animation: none !important; transform: none !important; } }

.ohs[data-motion="alternate"] .ohs-slide.kb-in.is-active .ohs-img, .ohs[data-motion="alternate"] .ohs-slide.kb-in.is-leaving .ohs-img { animation: ohs-kb-in var(--ohs-kb, 8.5s) ease-out both; }
.ohs[data-motion="alternate"] .ohs-slide.kb-out.is-active .ohs-img, .ohs[data-motion="alternate"] .ohs-slide.kb-out.is-leaving .ohs-img { animation: ohs-kb-out var(--ohs-kb, 8.5s) ease-out both; }
