/* Náhled banneru kategorie.
   Od 791 px: název nad bannerem, text 1/3 vlevo, fotka 790×282 vpravo.
   650–790 px: název nad bannerem, samostatný banner 790×282, text pod ním.
   Pod 650 px: název nad obrázkem 700×400, text pod ním.
   Když úzký snímek chybí, zůstane vidět široký banner. */

.kat-banner-nahled {
	padding: 2rem 0 4rem;
	text-align: left;
}

.kat-banner-nahled__uvod,
.kat-banner-nahled__popis {
	max-width: 1280px;
	margin: 0 auto 1.6rem;
	padding: 0 20px;
	color: #4a585d;
	font-size: 1.4rem;
	line-height: 1.45;
	text-align: left;
}

.kat-banner-nahled__uvod {
	margin-top: 1.6rem;
	margin-bottom: 2.4rem;
	color: #1d1d1b;
	font-size: 1.6rem;
}

.kat-banner-nahled__blok + .kat-banner-nahled__blok {
	margin-top: 4rem;
}

.kat-banner-wrap {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: left;
}

.container .kat-banner {
	padding-bottom: 1.6rem;
}

.kat-banner-wrap .breadcrumbs {
	width: 100%;
	margin-top: 0;
	margin-bottom: 1.2rem;
}

.kat-banner__frame {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: stretch;
	background: #fff;
	text-align: left;
}

.kat-banner__copy {
	display: flex;
	flex-direction: column;
	height: 0;
	min-height: 100%;
	min-width: 0;
	padding: 0 2.4rem 0 0;
	overflow: hidden;
}

.kat-banner__title {
	flex: 0 0 auto;
	margin: 0 0 1.2rem;
	color: #1d1d1b;
	font-size: 2.8rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: left;
	text-transform: none;
}

.kat-banner__text {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	color: #1d1d1b;
	font-size: 1.5rem;
	line-height: 1.45;
	text-align: left;
}

.kat-banner__text--fade {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.45em), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 1.45em), transparent);
}

.kat-banner__text p {
	margin: 0;
}

.kat-banner__text p + p {
	margin-top: 1rem;
}

.kat-banner__more {
	flex: 0 0 auto;
	align-self: flex-start;
	margin-top: 1rem;
	padding: 0;
	border: 0;
	background: none;
	color: #009fe3;
	font: inherit;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
}

.kat-banner__more:hover {
	color: #0361b2;
}

.kat-banner__more[hidden] {
	display: none !important;
}

.kat-banner__more-close {
	display: none;
}

.kat-banner.is-open .kat-banner__more-open {
	display: none;
}

.kat-banner.is-open .kat-banner__more-close {
	display: inline;
}

.kat-banner__media {
	position: relative;
	min-width: 0;
	aspect-ratio: 790 / 282;
	background: #fff;
	overflow: hidden;
}

.kat-banner__slider,
.kat-banner__slider .slick-list,
.kat-banner__slider .slick-track {
	height: 100%;
}

.kat-banner__slider {
	position: absolute;
	inset: 0;
}

.kat-banner__slider .slick-slide {
	height: 100%;
}

.kat-banner__slider .slick-slide > div,
.kat-banner__slide {
	height: 100%;
}

.kat-banner__slider:not(.slick-initialized) .kat-banner__slide:not(:first-child) {
	display: none;
}

.kat-banner__slider:not(.slick-initialized) .kat-banner__slide:first-child {
	position: absolute;
	inset: 0;
}

.kat-banner__slide img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: contain;
	object-position: center;
	background: #fff;
}

.kat-banner__slide .kat-banner__img--mobile {
	display: none;
}

.kat-banner__dots {
	grid-column: 2;
	grid-row: 2;
	min-width: 0;
}

.kat-banner__dots:empty {
	display: none;
}

.kat-banner__dots .slick-dots {
	position: static;
	z-index: 6;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 6px;
	margin: 6px 0 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
	list-style: none;
}

.kat-banner__dots .slick-dots li {
	display: block;
	width: auto;
	height: 5px;
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
}

.kat-banner__dots .slick-dots li button {
	position: static;
	display: block;
	width: 28px;
	height: 5px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #8c8b8b;
	color: transparent;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
}

.kat-banner__dots .slick-dots li button:before {
	content: none;
}

.kat-banner__dots .slick-dots li.slick-active button,
.kat-banner__dots .slick-dots li button:hover {
	background: #009fe3;
}

/* Bez fotky není co ořezávat, text se vejde celý. */
.kat-banner--bez-foto .kat-banner__frame {
	display: block;
}

.kat-banner--bez-foto .kat-banner__copy {
	height: auto;
	min-height: 0;
	padding-right: 0;
	overflow: visible;
}

.kat-banner--bez-foto .kat-banner__text {
	flex: none;
	overflow: visible;
}

.kat-banner--bez-textu .kat-banner__frame {
	display: block;
}

.kat-banner--bez-textu .kat-banner__media {
	width: 100%;
	max-width: 900px;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 791px) {
	.kat-banner.is-open .kat-banner__media,
	.kat-banner.is-open .kat-banner__dots {
		display: none;
	}

	.kat-banner.is-open .kat-banner__copy {
		grid-column: 1 / -1;
		height: auto;
		min-height: 0;
		padding-right: 0;
		overflow: visible;
	}

	.kat-banner.is-open .kat-banner__text {
		flex: none;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@media (max-width: 790px) {
	.kat-banner__frame {
		display: flex;
		flex-direction: column;
	}

	.kat-banner__media {
		order: 1;
		width: 100%;
	}

	.kat-banner__dots {
		order: 2;
		width: 100%;
	}

	.kat-banner__copy {
		order: 3;
		display: block;
		height: auto;
		min-height: 0;
		padding: 1.2rem 0 0;
		overflow: visible;
	}

	.kat-banner__text {
		display: block;
		width: 100%;
		max-height: calc(1.45em * 3);
		overflow: hidden;
	}

	.kat-banner.is-open .kat-banner__text {
		max-height: none;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.kat-banner--bez-foto .kat-banner__copy {
		padding-top: 0;
	}

	.kat-banner--bez-foto .kat-banner__text {
		max-height: none;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@media (max-width: 649px) {
	.kat-banner__title {
		font-size: 2.4rem;
	}

	.kat-banner__media {
		aspect-ratio: 700 / 400;
	}

	.kat-banner__slide:has(.kat-banner__img--mobile) .kat-banner__img--desktop {
		display: none;
	}

	.kat-banner__slide .kat-banner__img--mobile {
		display: block;
		object-fit: cover;
	}
}
