body {
	background-color: white;
	margin:0;
	padding:0;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	color: #444;
	box-sizing: border-box;
    min-width: 1100px;
}

* {
	margin:0;
	padding:0;
	box-sizing: border-box;
    max-width: 100%;
}

p {
	line-height: 1.5em;
	margin-bottom: 20px;
}

a {
	color: #4F658E;
	text-decoration: none;
}

a:hover {
	color: #2f4051;
}

a:focus {
	outline: none;
}

h1 {
  	color: #FFA500;
	font-weight: normal;
	font-size: 40px;
}

h2 {
	color: #4F658E;
	font-size: 28px;
	letter-spacing: 0.5px;
	font-weight: normal;
	padding: 0 0 15px;
    margin: 0 0 30px 0;
	border-bottom: 1px solid #4F658E;
}

h3 {
	color: black;
	font-size: 20px;
	font-weight: normal;
	margin-bottom: 20px;
}

h4 {
	padding-bottom: 10px;
	font-size: 17px;
    margin-top: 30px;
    margin-bottom: 10px;
    }

h5 {
	padding-bottom: 10px;
	font-size: 13px;
	color: #999;
}

hr {
	margin-top: 20px;
 	margin-bottom: 20px;
}

ul, ol {
	margin: 0 0 15px 25px;
}

li {
	padding-bottom: 10px;
	line-height: 1.3em;
}

li ol, li ul {
	font-size: 1.0em;
	margin-bottom: 0;
	padding-top: 5px;
}

#container-velky {
	max-width: 1400px;
	width: 97%;
	margin:0 auto;
	padding: 0;
	background-color: rgb(255, 255, 255);
	display: flex;
}

#container-lista {
	width: 20%;
	max-width: 250px;
	margin: 0;
	padding: 0;
	position: sticky;
    height: fit-content;
}

#container {
	max-width: 1250px;
	width: 80%;
	margin:0 auto;
	padding: 0;
}

#container-inner {
	max-width: 1250px;
	width: 95%;
	margin:0 auto;
	padding: 0;
	background: #ffffff;
}


/*----------- Header -----------------*/

#header {
    position: relative;
    margin: 0 auto;
    width: 100%;
    /* height: 260px; */
	height: clamp(260px, 17vw, 320px);

    background-image: url('/images/hlavicka.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
	position: relative;
}

/* ZTMAVENÍ OBRÁZKU */
.header-overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.35)
    );
    z-index: 1;
}

.header-content{
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 830px;
    padding: 0 20px;
	margin-top: -20px;
}

/* NADPIS */
#header h1{
    margin: 0;
}

#header h1 a{
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 48px;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
	text-transform: uppercase;
	letter-spacing: 7px;

}

#header p{
    color: rgba(255,255,255,0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.4;
	letter-spacing: 5px;
}

/* VLAJKA */
.lang{
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

/* VYHLEDÁVÁNÍ */
.search-box{
    position: absolute;
    top: 20px;
    right: 70px;
    z-index: 5;
    display: flex;
    align-items: center;
	height: 18px;
}

.search-input {
    width: 0px;
    opacity: 0;
    padding: 8px 0;
    margin-right: 8px;
    border: none;
    outline: none;
    font-size: 12px;

    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.60);
    border-radius: 20px;
    color: #333;

    pointer-events: none;
    box-sizing: content-box !important;
}

/* rozbalení směrem DOLEVA */
.search-box:hover .search-input,
.search-box:focus-within .search-input {
    width: 100px;
	height: 13px;
    opacity: 1;
    padding: 8px 15px;
    pointer-events: auto;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*----------- Navigation -----------------*/

#nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
	font-family: 'Montserrat', sans-serif;
    background: linear-gradient(
        to right,
        rgba(79,101,142,0) 0%,
        rgba(79,101,142,0.5) 15%,
        rgba(79,101,142,0.5) 85%,
        rgba(79,101,142,0) 100%
  		);
    z-index: 2;
}

#nav-inner {
    margin: 0 auto;
    max-width: 1140px;
    width: 95%;
}

#nav-inner ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    justify-content:center;
}

/*
#nav a.nav-aktivni span::after {
    width: 100%;
} */

/* menu položky */
#nav ul li {
    position: relative;
}

#nav ul li a{
    position: relative;
    color:#fff;
    text-decoration:none;
    text-transform: uppercase;
    padding:0 19px;
    height:40px;

    display:flex;
    align-items:center;

    transition:color 0.3s;
    letter-spacing: 0.5px;
}

/* podtržení pod textem */
#nav ul li a span{
    position:relative;
}

#nav ul li a span::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;
    width:0;
    height:1.2px;
    background:#fff;
    transition:width 0.3s ease;
}

#nav ul li a:hover span::after{
    width:100%;
}

/* Dropdown */

#nav ul li ul {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    padding: 5px 0;
	margin: 0;
    min-width: 150px;
    z-index: 1000;
}

#nav ul li ul li {
	padding: 0;
}

#nav ul li ul li a {
    color: #2f4051;
	background: none;
	text-transform: none;
	font-size: 13px;
	line-height: 32px;
	padding: 0 15px;
}

#nav ul li ul li a:hover {
    background: #f2f2f2;
}

#nav ul li:hover ul {
    display: block;
}




/* ------------ Lišta ----------- */

.ramecek-lista {
	max-width: 240px;
	margin: 15px 0 15px 15px;
	padding: 15px;
	/* background: #efefef; */
	background: #4f658e14;
	box-shadow: 2px 2px 15px 0 rgb(24 24 24 / 24%), 0 17px 50px 0 rgb(255 255 255 / 19%);
}

.ramecek-lista p {
	font-size: 14px;
	margin-bottom: 10px;
}

.ramecek-lista a {
	text-decoration: none;
}

/* seznam aktualit */

.aktualita-preview{
	padding:18px 0;
	border-bottom:1px solid #e5e5e5;
}

.aktualita-preview:last-child{
	border-bottom:none;
}

.aktualita-datum{
	font-size:13px;
	color:#888;
	margin-bottom:4px;
}

.aktualita-nadpis a{
	font-size:20px;
	text-decoration:none;
	font-weight:500;
}

/* článek */

.aktualita-clanek{
	margin-top:10px;
	line-height:1.6;
}

.aktualita-clanek .datum{
	color:#888;
	font-size:14px;
	margin-bottom:15px;
}

.aktualita-perex{
    font-size:14px;
    color:#555;
    margin-top:6px;
    line-height:1.4;
}

/* zpět */

.zpet{
	text-decoration:none;
	color:#4F658E;
}

/* Aktuality - boční lišta */

.sidebar-news{
	margin-bottom:12px;
	font-size:14px;
}

.news-date{
	color:#888;
	font-size: 12px;
}

/*----------- Main Content -----------------*/

#main {
	/* float: left; */
	max-width: 1050px;
	width: 95%;
	margin:0 auto;
	padding: 0;
}

.sidebar {
	width: 280px;
	padding: 0;
	float: right;
	padding-top: 15px;
}

.sidebar ul {
	padding: 0;
	margin:10px 0 35px 35px;
}

.sidebar li ul li {
	display: block;
	border-top: none;
	padding: 6px 7px;
	margin: 0;
	line-height: 1.5em;
	font-size: 13px;
	color: #555;
}

.sidebar li ul li a {
	font-weight: normal;
	color: #555;
}

.sidebar li ul li a:hover {
	color: #36CBDF;
}

.sidebar h4 {
	color: #90DA11;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	letter-spacing: 0;
	text-transform: uppercase;
	margin: 0;
	border-bottom: 1px solid #D6D6D6;
	padding: 5px 5px;
	font-weight: bold;
}

.news-item {
padding-bottom:10px;
padding-top:10px;
}
.latest-news a {
font-weight:bold;
}
.date {
color:#000;
font-weight:bold;
}

/*----------- Footer -----------------*/

#footer {
	background-color: #535353;
  	margin: 0 auto;
	padding: 15px 0px;
	width: 100%;
	margin-top: 30px;
}

.footer-inner{
	max-width: 1200px;
	width: 95%;
	margin:0 auto;
}

#footer p {
	color: white;
	font-size: 14px;
	font-family: 'Montserrat', sans-serif;
	margin: 0 auto;
	display: block;
	width: auto;
}

#footer p a {
	color: white;
}

	#footer p a:hover {
		color: rgb(217, 217, 217);
	}

.footer-row{
    display: flex;
    align-items: center;
}

	.footer-left{
		flex: 1;
		text-align:left;
	}

	.footer-center{
		flex: 1;
		text-align:center;
	}

	.footer-right{
		flex: 1;
		text-align:right;
	}


/* --------- Úvod -------------- */

.uvod {
    width: 100%;
	margin: 0 auto;
	}

	.uvod p {
    	font-size: 18px;
		text-align: justify;
		padding: 0 30px;
		margin: 0 auto;
	}

	.uvod img {
		text-align: center;
		width: 50%;
	}
	
.uvod-polozka {
    position: relative;
	margin-top: 0px;
	margin-bottom: 0px;
	display:flex;
	align-items:center;
	justify-content:center;
	gap: 0 30px;
}

#scroll-arrow{
    position: fixed;
    bottom: 15px;
    left: 57%;
    transform: translateX(-50%);

    font-size: 40px;
    color: rgb(161, 161, 161);
    opacity: 0.8;

    animation: bounce 1.5s infinite;
    transition: opacity 0.4s ease;

    z-index: 999;
}

/* jemné „poskakování“ */
@keyframes bounce{
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* skrytí */
#scroll-arrow.hide{
    opacity: 0;
    pointer-events: none;
}

/* ------------------------------------------- */

blockquote {
	display: block;
	padding: 10px;
	margin-bottom: 20px;
	border-left: 5px solid #36CBDF;
}

blockquote p {
	font-style: italic;
	font-family: Georgia, "Times New Roman", Times, serif;
	margin: 0;
	color: #555;
	height: 1%;
}


fieldset {
	display: block;
	border: none;
	border-top: 1px solid #ccc;
}

fieldset legend {
	font-weight: bold;
	font-size: 13px;
	padding-right: 10px;
	color: #555;
}

fieldset form {
	padding-top: 15px;
}

fieldset p label {
	float: left;
	width: 150px;
}

form input, form select, form textarea {
	padding: 5px;
	color: #222;
	border: 1px solid #ccc;
	border-right:1px solid #ddd;
	border-bottom:1px solid #ddd;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}

form input.formbutton {
	border: none;
	background: #1FAABE;
	color: #ffffff;
	font-weight: bold;
	padding: 5px 10px;
	font-size: 12px;
	font-family: Tahoma, Geneva, sans-serif;
	letter-spacing: 1px;
	width: auto;
	overflow: visible;
}

form.searchform p {
	margin: 5px 0;
}


span.required {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #ff0000;
}

.clear {
	clear: both;
}

.prava {
float: right;
}

.sed {
color: #808080;
}

.zelena {
	color:#90DA11;
}

.button {
  background-color: #4F658E;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 12px;
  }

.button:hover {background: #2f4051;}

.button2 {
  background-color: #4F658E; 
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 6px 5px 0 rgba(0,0,0,0.24), 0 7px 25px 0 rgba(0,0,0,0.19);
  }

.projekt {
font-style: italic;
color: #FFA500;
}

.subjekt {
font-weight: bold;
color: #838383;
}


/* ------------------- NOVÉ --------------------- */

/* ------------------- Text --------------------- */

.normal {font-weight: normal;}
.tucne {font-weight: bold;}
.kurziva {font-style: italic;}

.text-blok {text-align: justify;}
.text-střed {text-align: center;}
.text-vpravo {text-align: start;}

.text-pozadi {
	background-color: #f2f2f2; 
	padding: 20px; 
	margin-bottom: 20px; 
	border-radius: 0px; 
	}

.mezera20 {margin-top: 20px; margin-bottom: 20px;}
.mezera10 {margin-top: 10px; margin-bottom: 10px;}
.mezera0 {margin-top: 0px; margin-bottom: 0px;}

.mezera-pod20 {margin-bottom: 20px;}
.mezera-pod10 {margin-bottom: 10px;}
.mezera-pod0 {margin-bottom: 0px;}

.mezera-nad20 {margin-top: 20px;}
.mezera-nad10 {margin-top: 10px;}
.mezera-nad0 {margin-top: 10px;}


/* ------------------- Elementy obecně --------------------- */

.stred {text-align: center;}

/* ------------------- Seznamy, odrážky --------------------- */

.vetsi-odsazeni {padding-left: 30px;}

.male-mezery li {padding-bottom: 5px;}

.fajfka {
  list-style: none;
  margin-left: 10px;
}
	.fajfka li {
	position: relative;
	padding-left: 30px;
	}
	.fajfka li::before {
	content: "✓";
	position: absolute;
	font-size: 25px;
	left: 0;
	top: 0.2em;
	font-weight: bold;
	color: #94D926; 
	}

.krizek {
	list-style: none;
	margin-left: 10px;
	}
	.krizek > li {
		padding-left: 30px;
		position: relative;
	}
	.krizek > li::before {
		content: "⚠️";
		position: absolute;
		font-size: 23px;
		left: -7px;
		top: 0.2em;
		font-weight: bold;
		color: #FFA500;
	}
	.krizek li ul {
		margin-left: 2.5em;
	}

.cisla {
  padding-left: 20px;
  line-height: 1.3em;
  list-style-type: decimal;
  counter-reset: item;
}
	.cisla li {
	position: relative;
	margin-bottom: 0.5em;
	font-size: 16px;
	text-align: justify;
	}
	.cisla li::marker {
	font-size: 20px;
	color: #4F658E;
	font-weight: bold;
	}


.pododrazky {
    margin-left: 60px;
  	}


/* ------------------- Rámečky --------------------- */

.ramecek {
	padding: 20px 20px 5px 20px;
    background-color: #ffa60021;
    width: fit-content;
    margin: 30px 0px;
	position: relative;
}

.ramecek_vystupy {
	flex: 1;
	padding: 15px;
	background-color: #00a6ff18;
	margin: 0px 0px 20px 0px;
	/* border-radius: 10px;
	border: 1px solid #999; */
	}
	.ramecek_vystupy h4 {
		margin-top: 2px;
	}
	
.ramecky-container {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	}

.ramecky-sloupce {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
	.ramecky-sloupec {
	flex: 1;
	padding: 1em;
	background-color: #f2f2f2;
	box-sizing: border-box;
	text-align: left;
	}

.toggle-heading {
  cursor: pointer;
  color: #4F658E;
  user-select: none;
  margin: 10px 0;
  padding-left: 15px;
	}
  .toggle-content {
    display: none;
    padding: 10px;
    background-color: #f2f2f2;
    border-left: 3px solid #ccc;
    margin-bottom: 15px;
  	}

.obsah-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
		padding-bottom: 20px;
    }
	.obsah-grid ul {margin-top: 0px; margin-bottom: 0px;}

    .obsah-ramecek {
        background-color: #f1f1f1;
        border: 1px solid #cdcdcd;
         /* border-radius: 8px; */
        text-decoration: none;
        color: #000;
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.3s ease;
        overflow: hidden;
		transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

		.obsah-ramecek:hover {
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
			transform: translateY(-5px);
		}

    .obsah-text {
        padding: 15px 15px 5px 15px;
        flex-grow: 1;
    }

    .obsah-nazev {
        font-size: 1.3em;
		font-weight: normal;
        margin: 0 0 10px;
        color: #2c3e50;
    }

    .obsah-popis {
        font-size: 0.95em;
        color: #555;
    }

    .obsah-obrazek {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-top: 1px solid #ddd;
    }

.odkaz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.odkaz-grid ul {
    margin-top: 0px; 
    margin-bottom: 0px;
}

.odkaz-ramecek {
    background-color: #c9c9c926;
	border: 1px solid #dbdbdb;
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
    height: 100%;
}

.odkaz-ramecek:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.odkaz-text {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.odkaz-nazev {
    font-size: 1.3em;
    font-weight: normal;
    margin: 0 0 8px;
    color: #2c3e50;
    width: 100%;
	padding-bottom: 0;
}

.odkaz-popis {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0px;
    width: 100%;
}

.odkaz-obrazek {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top: 1px solid #ddd;
}

.prehled-projekt {
	background-color: #f1f1f1;
	border: 1px solid #cdcdcd;
	/*  border-radius: 8px; */
	text-decoration: none;
	color: #000;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	margin-bottom: 15px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

	.prehled-projekt:hover {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		transform: translateY(-5px);
	}

    .prehled-text {
        padding: 15px;
        flex-grow: 1;
		padding-right: 280px;
    }

    .prehled-nazev {
        font-size: 1.3em;
		font-weight: normal;
        margin: 0 0 10px;
        color: #2c3e50;
    }

    .prehled-popis {
        font-size: 0.95em;
        color: #555;
		margin-bottom: 0px;
    }

	.prehled-obrazek{
		position: absolute;
		right: 0;
		top: 0;
		height: 100%;
		width: 250px;
		object-fit: cover;
		border-left: 1px solid #ddd;
	}

.ramecky_kontakty {
  display: flex;
  flex-direction: row;
  gap: 20px; 
  margin-bottom: 20px;
}
	.sloupec_kontakty {
	flex: 1;
	padding: 1em;
	background-color: #f2f2f2;
	box-sizing: border-box;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	}
	.leva-cast {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	font-size: 15px;
	}

	.logo {
	margin-top: 10px;
	}

	.prava-cast {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	}

	.foto-osoby {
	width: 120px;
	border: 2px solid #888;
	border-radius: 6px;
	}

.temata {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}

.tema {
    position: relative;
    height: 220px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
	border-radius: 4px;
}

	.tema:hover {
		transform: scale(1.05);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	}

	.tema-obr {
		position: absolute;
		width: 100%;
		height: 100%;
		object-fit: cover;
		filter: brightness(50%);

		transition: all 0.4s ease;
	}

	.tema-text {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: white;
		text-align: center;
		z-index: 2;
	}

	.tema-text h4 {
		margin: 0;
		font-size: 22px;
		font-weight: 500;
		text-transform: uppercase;
		line-height: 1.4;
		letter-spacing: 4px;
	}

	.tema:hover .tema-obr {
		filter: brightness(60%);
		transform: scale(1.1);
	}


/* ------------------- Tabulky --------------------- */

table {
	width: 100%;
	font-size: 14px;
	text-align: left;
	border: none;
	margin-bottom: 20px;
}

th, td {
	padding: 10px 10px;
}

th {
        background-color: #f2f2f2;
        color: #000;
        }

td {
	background: #fff;
	border-bottom: 1px solid #ccc;
}




/* ------------------- Obrázky --------------------- */

.sw {
  border-radius: 0px;
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.obr-jas {
	filter: brightness(90%);
}

.obr-stin {
	box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19); 
}

.obr-vpravo {
	float: right;
	margin-left: 40px;
	margin-bottom: 20px;
}

.obr-aktuality {
	max-width: 100%;
	}

.obrazky  {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 2em;
	}
	
	.obrazek {
		text-align: center;
	}
	.obrazek img {
		max-width: 100%;
		height: auto;
		display: block;
		margin: 0 auto;
	}
	.obrazek p {
		margin-top: 0.5em;
		font-size: 0.9em;
	}


.obrazkova-galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 2em;
}

.polozka {
    margin: 0;
    overflow: hidden;
    cursor: pointer;
}

	.polozka img {
		width: 100%;
		aspect-ratio: 3 / 2;
		object-fit: cover;
		display: block;
		transition: filter 0.2s;

		filter: brightness(1);
		image-rendering: high-quality;
		transform: translateZ(0);
		backface-visibility: hidden;
	}

	.polozka img:hover {
		filter: brightness(1.1);
	}

    .polozka p {
        margin-top: 0.5em;
        font-size: 0.9em;
    }

.obrazkova-galerie:has(.polozka:only-child) {
    grid-template-columns: 75%;
    justify-content: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.aktivni {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-zavrit {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
}

.lightbox-sipka {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3em;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10000;
}

	.lightbox-prev {
		left: 20px;
	}

	.lightbox-next {
		right: 20px;
	}

	.lightbox-sipka:hover {
		opacity: 1;
	}

.lightbox-obal {
    position: relative;
    display: inline-block;
    max-width: 90vw;
    max-height: 90vh;
}

	.lightbox-obal img {
		max-width: 90vw;
		max-height: 90vh;
		object-fit: contain;
		display: block;
		border-radius: 4px;
	}

	.lightbox-popisek {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(0,0,0,0.5);
		color: white;
		font-size: 0.9em;
		padding: 8px 12px;
		border-radius: 0 0 4px 4px;
		display: none;
	}


/* ------------------- OSTATNÍ --------------------- */


summary {
	color: #4F658E;
	margin-bottom: 5px;
	padding-left: 10px;
	}

	details[open] .summary_nazev {
		font-weight: bold;
      }

	details[open] {
 		margin-bottom: 20px;
		}
	
	.summary_nazev:hover {color: #2f4051; cursor: pointer;}

	.mapy_pdf li {margin-left: 30px; margin-top: 10px; padding: 0;}


.dva-sloupce {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}
	.sloupec {
	flex: 1;
	}


.app-esai {
	float: right;
	margin-left: 30px;
	position: relative;
	bottom: 5px;
}
	.b-esai {
		position: absolute;
		bottom: 86px;
		right: 93px;
	}

	.b-esai2 {
		position: relative;
		top: -10px;
	}

	.b-esai-en {
		position: absolute;
		bottom: 86px;
		right: 78px;
	}
	

.app-marg {
	float: right;
	margin-left: 30px;
	position: relative;
	bottom: -25px;
}
	.b-marg {
		position: absolute;
		bottom: 139px;
		right: 108px;
	}

	.b-marg-en {
		position: absolute;
		bottom: 139px;
		right: 77px;
	}

.app-niva {
	float: right;
	margin-left: 30px;
	position: relative;
}
	.b-niva {
		position: absolute;
		bottom: 90px;
		right: 96px;
	}

	.b-niva-en {
		position: absolute;
		bottom: 90px;
		right: 84px;
	}

/* ------------------- Projekty --------------------- */

.projekt-panel {
	width: 30%;
	height: 100%;
	position: relative;
	margin-left: 30px;
	background-color: #f1f1f1;
	float:right;
	}

.projekt-panel-text {
	padding: 20px;
}

.projekt-uvod-text  {
	width:70%;
}

.projekt-uvod {
	display: flex;
}

.vystupy-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px auto;
}

    .vystup {
        overflow: hidden;
       /* box-shadow: 2px 2px 8px rgba(0,0,0,0.2); */
        transition: transform 0.3s ease, filter 0.3s ease;
        filter: brightness(1);
        transform: translateZ(0);
    }

    .vystup img {
        box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
        width: 100%;
        aspect-ratio: 1 / 1.414;
        object-fit: cover;
        display: block;
        border: 1px solid rgb(188, 188, 188);
    }

    .vystup:hover {
        transform: scale(1.05);
        filter: brightness(1.05);
    }

    .vystup p {
        margin: 0;
        font-size: 0.85em;
        color: #555;
        padding: 10px;
    }





/* ==========================================
   MOBILNÍ VERZE - Media Queries
   ========================================== */

/* Hamburger skrytý na desktopu */
.hamburger {
    display: none;
}

@media (max-width: 480px) {

    /* --- Header --- */
    #header {
        height: auto;
        min-height: 180px;
        padding-bottom: 50px;
    }

    #header h1 a {
        font-size: 28px;
        letter-spacing: 3px;
    }

    #header p {
        font-size: 12px;
        letter-spacing: 2px;
        margin-top: 10px;
    }

    .header-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    /* --- Hamburger tlačítko --- */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        position: absolute;
        bottom: 10px;
        right: 15px;
        z-index: 100;
    }

    .hamburger span {
        display: block;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.aktivni span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.aktivni span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.aktivni span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- Navigace --- */
    #nav {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 40px;
        background: rgba(79,101,142,0.6);
    }

    #nav-inner ul {
        display: none;
        flex-direction: column;
        background: #4F658E;
        position: absolute;
        top: 40px;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 10px 0;
    }

    #nav-inner ul.otevreno {
        display: flex;
    }

    #nav ul li a {
        height: auto;
        padding: 12px 20px;
        font-size: 14px;
        justify-content: flex-start;
    }

    #nav ul li a span::after {
        display: none;
    }

    /* Dropdown v mobilu */
    #nav ul li ul {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.15);
        padding: 0;
        min-width: 0;
    }

    #nav ul li.dropdown-aktivni ul {
        display: block;
    }

    #nav ul li ul li a {
        color: white;
        padding: 10px 30px;
        font-size: 13px;
    }

    #nav ul li ul li a:hover {
        background: rgba(255,255,255,0.1);
    }

    /* --- Vyhledávání a vlajka --- */
    .search-box {
        top: 10px;
        right: 60px;
    }

    .lang {
        top: 10px;
        right: 15px;
    }

    /* --- Layout - sidebar a obsah --- */
    #container-velky {
        flex-direction: column;
        width: 100%;
    }

    #container-lista {
        width: 100%;
        max-width: 100%;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    .ramecek-lista {
        flex: 1;
        min-width: 200px;
        margin: 0;
    }

    #container {
        width: 100%;
    }

    #container-inner {
        width: 95%;
    }

    #main {
        width: 95%;
    }

    /* --- Projekty --- */
    .prehled-projekt {
        flex-direction: column;
    }

    .prehled-text {
        padding: 15px;
        padding-right: 15px;
    }

    .prehled-obrazek {
        position: static;
        width: 100%;
        height: 200px;
    }

    /* --- Projekt panel (na stránce projektu) --- */
    .projekt-uvod {
        flex-direction: column;
    }

    .projekt-uvod-text {
        width: 100%;
    }

    .projekt-panel {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-top: 20px;
    }

    /* --- Témata grid --- */
    .temata {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Dva sloupce --- */
    .dva-sloupce {
        flex-direction: column;
        gap: 20px;
    }

    /* --- Rámečky sloupce --- */
    .ramecky-sloupce {
        flex-direction: column;
    }

    .ramecky_kontakty {
        flex-direction: column;
    }

    /* --- Obrázek vpravo --- */
    .obr-vpravo {
        float: none;
        display: block;
        margin: 0 auto 20px;
        max-width: 100%;
    }

    /* --- Galerie --- */
    .obrazkova-galerie {
        grid-template-columns: 1fr;
    }

    .obrazkova-galerie:has(.polozka:only-child) {
        grid-template-columns: 100%;
    }

    /* --- Footer --- */
    .footer-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        text-align: center;
    }

    /* --- Nadpisy --- */
    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 17px;
    }

    /* --- Aktuality preview --- */
    .aktualita-preview {
        flex-direction: column;
    }

    /* --- Scroll šipka --- */
    #scroll-arrow {
        left: 50%;
    }


.uvod-polozka {
    flex-direction: column;
    gap: 15px;
}

.uvod-polozka img {
    width: 100% !important;
    order: -1;
}

.uvod p {
    font-size: 15px;
    text-align: left;
    padding: 0;
}

/* Skryj sekci Běžící projekty */
.ramecek-lista:nth-child(2) {
    display: none;
}

/* Zobraz jen 3 aktuality */
.sidebar-news:nth-child(n+4) {
    display: none;
}

.ramecek-lista {
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

#container-lista {
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

#container-lista {
    display: none;
}

    #container-velky {
        min-width: 0 !important;
    }
    #header {
        min-width: 0 !important;
    }
    
body {
    min-width: 0 !important;
}

.uvod-polozka p {
    margin-bottom: 20px;
}

.ramecky-container {
    flex-direction: column;
}

.obsah-ramecek {
    max-width: 100% !important;
}

.prava {
    float: none;
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 30px 0 !important;
}


    
    #header h1 a {
        font-size: 22px;
        letter-spacing: 2px;
    }

    #header p {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .temata {
        grid-template-columns: 1fr;
    }

    .ramecek-lista {
        min-width: 100%;
    }

    h2 {
        font-size: 20px;
    }
}




