/* VHS hero slider - nahrada Slider Revolution (2026-10-12). Rozmery a pisma podle puvodniho slideru "ClassicSlider1". */

/* Na sirokych monitorech nejvys 1536 px (obsah 1240 px + ~300 px), na stred. */
.vhs-hero { position: relative; max-width: 1536px; height: 500px; margin: 0 auto; overflow: hidden; background: #298bcc; }
/* Po stranach slideru barva stranky, ne modra hlavicky (#Header_wrapper obaluje i slider). */
#Header_wrapper #mfn-custom-slider { background: #fcfcfc; }
.vhs-hero__slides, .vhs-hero__slide { position: absolute; inset: 0; margin: 0; }
.vhs-hero__slides { touch-action: pan-y; }
.vhs-hero__slide { visibility: hidden; opacity: 0; }
.vhs-hero__slide.is-active { visibility: visible; opacity: 1; z-index: 2; }
.vhs-hero__slide.is-leaving { visibility: visible; opacity: 1; z-index: 1; }
.vhs-hero__slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Prechod jako "zoomout" v Revolution: nova fotka se zesvetli a zaroven oddali. */
.vhs-hero__slide.is-entering { animation: vhs-hero-fade 2s ease-out both; }
.vhs-hero__slide.is-entering img { animation: vhs-hero-zoom 2s ease-out both; }
@keyframes vhs-hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vhs-hero-zoom { from { transform: scale(1.2); } to { transform: none; } }

/* Prubeh do dalsi fotky (pri najeti mysi se zastavi) */
.vhs-hero__progress { position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 7px; pointer-events: none; }
.vhs-hero__progress span { display: block; height: 100%; background: rgba(255, 255, 255, .25); transform: scaleX(0); transform-origin: left; }
.vhs-hero.is-running .vhs-hero__progress span { animation: vhs-hero-progress var(--vhs-hero-delay, 9s) linear both; }
.vhs-hero:hover .vhs-hero__progress span,
.vhs-hero:focus-within .vhs-hero__progress span { animation-play-state: paused; }
@keyframes vhs-hero-progress { to { transform: none; } }

/* Popisek objektu vpravo dole */
.vhs-hero__caption { position: absolute; right: max(23px, calc((100% - 1240px) / 2 + 23px)); bottom: 12px; padding: 0 6px; background: rgba(2, 2, 2, .24); font-size: 20px; line-height: 25px; color: #fff; text-shadow: 2px 1px 0 rgba(0, 0, 0, .25); }

/* Pruh s logem vlevo */
.vhs-hero__grid { position: absolute; inset: 0; z-index: 4; max-width: 1240px; margin: 0 auto; pointer-events: none; }
.vhs-hero__panel { position: relative; width: 182px; height: 100%; overflow: hidden; text-align: center; pointer-events: auto; }
.vhs-hero__logo { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: auto; }
.vhs-hero .vhs-hero__title { position: absolute; top: 266px; left: 0; right: 0; margin: 0; padding: 0; font-family: inherit; font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: 2px; color: #298bcc; }
.vhs-hero .vhs-hero__text { position: absolute; top: 307px; left: 0; right: 0; margin: 0; padding: 0; font-size: 17px; line-height: 21px; color: #303030; }
.vhs-hero .vhs-hero__button { position: absolute; top: 431px; left: 11px; width: 160px; box-sizing: border-box; padding: 7px; border: 2px solid #298bcc; background: rgba(255, 255, 255, .5); font-size: 16px; line-height: 21px; color: #298bcc; text-decoration: none; transition: background-color .2s, color .2s; }
.vhs-hero .vhs-hero__button:hover,
.vhs-hero .vhs-hero__button:focus { background: #298bcc; color: #fff; }

@media (max-width: 1023px) {
	.vhs-hero { height: 450px; }
	.vhs-hero__caption { right: 18px; bottom: 11px; font-size: 16.5px; line-height: 21px; }
	.vhs-hero__panel { width: 164px; }
	.vhs-hero .vhs-hero__title { top: 240px; font-size: 16.5px; line-height: 21px; letter-spacing: 1.65px; }
	.vhs-hero .vhs-hero__text { top: 270px; font-size: 14px; line-height: 17px; }
	.vhs-hero .vhs-hero__button { top: 403px; width: 141px; padding: 5px; font-size: 13.2px; line-height: 20px; }
}

@media (max-width: 767px) {
	.vhs-hero__caption { font-size: 12.5px; line-height: 16px; }
	.vhs-hero__panel { width: 163px; }
}

@media (max-width: 479px) {
	.vhs-hero { height: 320px; }
	.vhs-hero__caption { top: 10px; right: 8px; bottom: auto; font-size: 12px; line-height: 14px; }
	.vhs-hero .vhs-hero__title { top: 200px; font-size: 16px; line-height: 20px; letter-spacing: normal; }
	.vhs-hero .vhs-hero__text { top: 245px; font-size: 14px; line-height: 17px; }
	.vhs-hero .vhs-hero__button { top: 280px; left: 10px; width: 139px; padding: 4px 4px 6px; font-size: 14px; line-height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.vhs-hero__slide.is-entering,
	.vhs-hero__slide.is-entering img { animation-duration: .01s; }
}
