@media (orientation: landscape) and (max-device-width: 1400px) {}

@media (max-device-width: 1919px) {
	#platan1 {
    left: calc(50vw - 927px);
	}
  #platan2 {
    right: calc(50vw - 927px);
	}
  .single #content .container,
	.page:not(.page-id-28234) #content .container {
	  padding: 0;
	}
 /*.page:not(.page-id-28234) #content .container,*/
 .category #content .container {
	  padding: 0 15px;
	}
  #prohlidka iframe {
    width:100%;
		height:70vw;
	}
}

@media (max-device-width: 1550px) {
	.container {
  	width: 1090px;
	}
	#platan1 {
    left: calc(50vw - 800px);
	}
	#platan2 {
	  right: calc(50vw - 800px);
	}
	/*#topnews .slide {
  	height: auto;
	}*/
  .topnews_box {
  	flex-direction: column;
	}
  .news_box {
  	flex-basis: 33.3% !important;
	}
  #topnews .slide {
  	width: 100%;
  	height: 395px;
	}
  .news_box_inner,
	#posty_grid .news_box .news_box_inner {
  	max-width: 310px;
	}
  #owl-two .owl-item {
	  padding: 10px;
  	box-sizing: border-box;
	}
  #footer .blok {
  	padding: 0 30px 0 0;
	}
  .single #content .texty,
	.page:not(.page-id-28234) #content .texty,
	body:not(#cs) #content .texty {
	  padding: 40px;
	}
  #osoby .osoba {
  	width: calc(33% - 40px);
	}
  .single #content .dlazdice .wp-block-gallery {
	  grid-template-columns: repeat(3, 1fr);
    padding: 0 40px;
	}
  #ostatni_clanky article,
	#ostatni_aktuality article,
	#dalsi-uspechy article {
		width:16.5%;
	}
  .logo_souteze {
	  margin-right:0;
	}
}

@media (max-device-width: 1160px) {
  .container {
  	width: 90%;
	}
  h1 {
  	padding-top: 96px;
    line-height: 1em;
	}
  #platan1, #platan2 {
		background-size: 190px;
		width: 190px;
  	top: 40px;
	}
  #platan1 {
	  left: calc(5% - 160px);
    background-image: url("../images/platan-1.png");
	}
  #platan2 {
	  right: calc(5% - 160px);
    background-image: url("../images/platan-2.png");
	}
  .topnews_box {
  	flex-direction: column;
	}
	header {
	  height: auto;
    min-height: 80px;
	}
  #budova {
  	top: 70px;
    background-image: url("../images/pruceli_middle.png");
  	background-size: 1100px;
    background-position: center 0;
	}
	#headermenu .menu-item-object-category,
  #headermenu .menu-item-object-page,
  #headermenu .menu_desktop,
	#topmenu {
		display:none;
	}
  #top {
    position: fixed;
		height:110px;
	}
  #top nav {
  	padding-top: 30px;
	}
  #topnews .slide {
    height: 32vw;
  }
  #akce > a#showsearch {
  	background-size: 20px;
	}
  #akce > a#menu_icon {
  	line-height: 32px;
	}
	a#menu_icon {
		display:block;
		text-align:right;
	}
  a#menu_icon:hover {
		background-image: url('../images/menu_active.svg');
	}
  #headermenu li a {
	  line-height: 34px;
	  font-size: 23px;
	}
  .news_box .img {
	  height: auto;
 	}
  .news_box .texty {
  	padding: 15px 20px
	}
  #topnews .slide p {
	  display:none;
	}
  #owl-two .owl-stage-outer {
  	max-height: 372px;
	}
  .single #content .texty,
	.page:not(.page-id-28234) #content .texty,
	body:not(#cs) #content .texty {
  	width: 100%;
    margin-bottom: 30px;
	}
  .single #content .featured,
	.page #content .featured,
	body:not(#cs) #content .featured {
  	padding: 0 40px;
    width:100%;
		box-sizing:border-box;
	}
  .single #content .texty::before,
	.page #content .texty::before,
	body:not(#cs) #content .texty::before {
  	display: none;
	}
  .single #content .featured img.size-fotka,
	.page #content .featured img.size-fotka,
	body:not(#cs) #content .featured img.size-fotka {
		display:none;
	}
  .single #content .featured img.size-fotka_velka,
	.page #content .featured img.size-fotka_velka,
	body:not(#cs) #content .featured img.size-fotka_velka {
		display:block;
	}
  .texty a.ikona, .texty a.ikona:visited,
	.single .texty .wp-block-file a, .single .texty .wp-block-file a:visited {
	  width: 33%;
	}
  .single-osoba #content .texty {
  	width: calc(100% - 310px);
	}
  .single-osoba #content .texty::before {
	  display: initial;
	}
  .single-osoba #content .featured {
  	width: initial;
		padding:0;
	}
  .single-osoba #content .featured img.size-fotka {
	  display: block;
	}
  .search #content ul {
  	columns: 2;
	}
  .single #content .dlazdice .wp-block-gallery {
    padding: 0;
	}
  .single #content .dlazdice .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
	  width: 100%;
	  max-width: max-content;
	  height: auto;
	}
  #minivypis {
  	padding: 0;
	}
  .postid-26579 #content .featured {
	  text-align: center;
	}
  #clock {
	  margin: 0 auto;
	}
  .postid-26579 #content .texty table {
  	text-align: center;
	}
  .single.postid-26579 #content .texty::before {
  	display: none;
	}
  #ostatni_clanky article,
	#ostatni_aktuality article,
	#dalsi-uspechy article {
  	width: 20%;
	}
  #maturita h2 {
	  margin: 0.5em 0;
	}
  .souteze_inner {
  	padding: 10px 20px;
	}


  nav {
	  border-bottom:none;
	}
  #fullmenu {
		display:block;
	}
  .mm-menu {
    z-index: 99999;
		--mm-color-background: #fff;
    --mm-color-text: #000;
    --mm-listitem-size:43px;
    --mm-navbar-size:43px;
	}
  .mm-wrapper__blocker {
	  z-index: 9999;
	}
  .mm-listitem {
  	text-align: left;
	  color: initial;
	}
  .mm-listitem::after {
	  box-sizing: border-box;
	}
  .mm-spn .mfp-close {
	  width: 50px;
	  height: 50px;
	  line-height: 50px;
	}
  .mm-listitem__btn:not(.mm-listitem__text) {
  	border-left: none;
	}
  .mm-btn--next::after, .mm-btn--prev::before {
	  width:9px;
		height:9px;
		border-left-width: 3px;
    border-top-width: 3px;
    border-color:var(--zelena) !important;
    opacity:1;
	}
  .mm-btn--close::before {
		color:var(--tyrkys);
		font-weight:bold;
	}
  .mm-navbar {
  	z-index: 4;
		background:none;
		width:100%;
	}
  .mm-navbar__btn {
  	float: right;
	}
  .mm-navbars .mm-navbar {
  	justify-content: right !important;
    text-align: right !important;
	}
  .mm-navbars--top {
  	width: 100%;
		border-bottom: none;
	  height: 28px;
	}
  .mm-navbar__title {
	  font-size: 1.2em;
	  font-weight: bold;
	  color: var(--zelena) !important;
	}
  .mm-menu a, .mm-menu a:active, .mm-menu a:hover, .mm-menu a:link, .mm-menu a:visited {
	  font-size: 1.2em;
	  font-family: var(--title-font);
    font-weight: normal;
	}
  .mm-menu a.mm-navbar__title, .mm-menu a.mm-navbar__title:visited {
	  font-weight: bold;
    font-size: 1.4em;
	}
  .mm-menu .mm-listitem--selected a, .mm-menu .mm-listitem--selected a:visited,
	.mm-menu .mm_selected_group a, .mm-menu .mm_selected_group a:visited {
		font-weight:bold;
	}
}



/** ----------------------------------------- SCREEN SIZE: tablets landscape / very old desktop --------------------*/
@media (max-device-width : 1024px) {
	#topmenu li.icon img {
    padding: 0;
	}
  #topmenu li a, #topmenu li a:visited, #languages li a, #languages li a:visited {
    padding: 30px 15px 15px 15px;
	}
  #topnews .owl-item {
  	max-height:initial;
	}
  .owl-carousel .owl-stage-outer {
	  max-height: initial;
	}
  #topnews .slide {
    height: 480px;
		background:none;
	}
  #topnews .slide p {
	  display:initial;
	}
  .owl-carousel .owl-item .obr img {
  	max-width: 660px;
	}
	#footer .blok {
  	width:50%;
		padding-right:30px;
  }
  #footer .bloky #blok2 {
		padding-right:0;
	}
  #footer .bloky #blok3 {
 	 clear:both;
  }
  #footer .bloky #blok3 p {
  	margin-bottom:0;
  }
  #footer .bloky #blok3 p span {
		font-weight:bold;
	}
  #footer .bloky #blok3 p span::after {
		content:'';
		width:100%;
		display:block;
	}
  #footer .bloky #blok3 span {
		display:inline-block;
		margin-right:5px;
	}
  .single #content .featured img.size-fotka_velka,
	.page #content .featured img.size-fotka_velka,
	body:not(#cs) #content .featured img.size-fotka_velka {
	  width:100%;
		max-width:max-content;
		height:auto;
	}
  #content .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
	  width: calc(33% - var(--wp--style--unstable-gallery-gap, 16px)*0.75);
	}
  .single-osoba #content .texty {
  	padding: 30px;
	}
  .single .osoba h2 {
  	margin: 0.5em 0;
	}
  #minivypis {
  	columns: 3;
	}
  #ostatni_clanky article,
	#ostatni_aktuality article,
	#dalsi-uspechy article {
  	width: 25%;
	}
  .logo_souteze {
  	width: 230px;
  	height: 230px
	}
  .logo_souteze img {
		width:100%;
		height:auto;
	}
  .souteze_grid {
	  padding: 20px;
	  column-gap: 20px;
	}
}

@media (max-device-width : 880px) {
	#news_grid,
	#posty_grid {
  	padding: 0 30px;
	}
	.news_box {
  	flex-basis: 50% !important;
	}
  .texty a.ikona, .texty a.ikona:visited,
	.single .texty .wp-block-file a, .single .texty .wp-block-file a:visited {
	  width: 50%;
	}
  #shrnuti {
	  width: 100%;
	  box-sizing: border-box;
	}
  #hlavni_post {
	  padding: 40px;
	}
  #osoby_box {
	  float: none;
	  width: 100%;
	  margin: 0 0 40px 0;
	  padding: 30px 40px;
	}
  #ucitele a, #ucitele a:visited {
	  display: inline-block;
	  line-height: 1.3em;
		margin: 0 25px 12px 0;
	}
  #hlavni_post .texty #osoby_box + h2 {
  	margin: 1em 0 0.5em 0;
	}
  .souteze_grid {
  	clear: both;
		padding: 0 0 20px 20px;
	}
  .logo_souteze {
  	width: 100%;
	}
  .logo_souteze img {
	  width: auto;
	  height: 100%;
	}
}

@media (max-device-width : 800px) {
  .container {
  	width: 92%;
	}
  #platan1 {
	  top:0;
	}
  h1 {
  	padding: 96px 30px 0 30px;
	}
  #news_grid,
	#posty_grid {
  	padding: 0;
	}
  #owl-two .owl-stage-outer {
	  max-height: 43vw;
	}
	#topmenu li a, #topmenu li a:visited {
    height:auto;
	}
  #topmenu.responsive {
    padding-top: 9vw;
	}
	#topmenu.responsive li a {
    line-height: 1em;
  }
  #topmenu li.icon img {
    padding-top:0;
  }
  #footer .archa {
	  float: none;
	  margin-right: 0;
	  margin-top: 1em;
	}
  .single #content .texty::before,
	.page:not(.page-id-28234) #content .texty::before,
	body:not(#cs) #content .texty::before {
  	display: initial;
	}
  .single #content .featured,
	.page #content .featured,
	body:not(#cs) #content .featured {
  	padding: 0;
	}
  #content .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
	  width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*0.75);
	}
  .texty .autor {
  	text-align: center;
	}
  #content .wp-block-table.scroll {
  	overflow-x: auto;
	}
	#content .wp-block-table:not(.scroll), #content .wp-block-table:not(.scroll) thead, #content .wp-block-table:not(.scroll) tbody, #content .wp-block-table:not(.scroll) tr, #content .wp-block-table:not(.scroll) th, #content .wp-block-table:not(.scroll) td {
		display:block;
		width:100%;
	}
  #content .wp-block-table:not(.scroll) table tr th, #content .wp-block-table:not(.scroll) table tr td {
		box-sizing:border-box;
	}
  #content .wp-block-table:not(.scroll) table tr th {
		padding-bottom:0;
	}
  #content .wp-block-table:not(.scroll) table tr th:last-child {
  	padding-bottom: 0.5em;
	}
  #content .wp-block-table:not(.scroll) table tr th:nth-child(1),	#content .wp-block-table:not(.scroll) table tr th:nth-child(2) {
		border:none;
	}
  #content .wp-block-table:not(.scroll) table tr th:nth-child(1) {
		border-bottom:1px solid white;
	}
  #content .wp-block-table:not(.scroll) table tr td {
    border-top: none;
    padding-bottom:0;
		border-bottom: none;
	}
  #content .wp-block-table:not(.scroll) table tr:first-child td:first-child {
    border-top: 1px solid #bbb;
	}
  #content .wp-block-table:not(.scroll) table tr td:last-child {
    padding-bottom:0.5em;
		border-bottom: 1px solid #bbb;
	}
  .single #content .container ul,
	page #content .container ul {
  	margin: 0 0 3em 2em;
	}
  .search #content ul {
  	columns: 1;
    padding-left: 80px;
	}
  .single-osoba #content .texty {
  	width: 100%;
	}
	#shrnuti {
  	margin: 30px auto;
	}
  #minivypis {
  	columns: 2;
	}
  #ostatni_clanky article,
	#ostatni_aktuality article,
	#dalsi-uspechy article {
  	width: 33%;
	}
  .souteze_grid {
  	padding: 0 0 20px 10px;
	}
	.map-responsive {
    width:100%;
  }
  .wpcf7-form .blok {
    width: 100%;
		padding-right:0;
	}
  .sloupce2 {
		-webkit-columns: 1;
		-moz-columns: 1;
		columns: 1;
  }
  #sloupce-3 {
  	columns: 2;
	}
}

@media (max-device-width : 720px) {
  #topnews .slide {
    height: 68vw;
	}
}

@media (max-device-width : 680px) {
  #budova {
  	top: 58px;
  	background-image: url("../images/pruceli_small.png");
  	background-size: 600px;
	}
  #platan1 {
  	top:0;
	}
  #platan2 {
  	top: 40px;
	}
  h1 {
    font-size: 60px;
	}
  h2 {
  	font-size: 33px;
  	margin: 1em 0 0.5em 0;
	}
  .logo img {
  	height: 40px;
	}
  header {
  	min-height: 75px;
	}
  .single #content .texty,
	.page #content .texty,
	body:not(#cs) #content .texty {
  	padding: 30px !important;
	}
  .single #content .texty h2,
	.page #content .texty h2,
	body:not(#cs) #content .texty h2 {
  	font-size: 32px;
	}
  .single #content .texty > h2,
	.page #content .texty > h2,
	body:not(#cs) #content .texty > h2 {
	  margin: 0.5em 0;
	}
  .single #content .dlazdice .wp-block-gallery {
  	grid-template-columns: repeat(2, 1fr);
	}
  #hlavni_post {
	  padding: 40px 30px;
	}
  .souteze_grid {
	  padding: 0 0 30px 0;
  	columns: 1;
		text-align:center;
	}
	#cookies-alert {
  	padding: 1.5em 2em 2em 2em;
	}
	.wpcf7-form .blok {
    width: 100%;
  }
  #buttons .wp-block-button, .wp-block-buttons .wp-block-button {
  	width: 100%;
		text-align: center;
	}
  #buttons .wp-block-button__link, .wp-block-buttons .wp-block-button__link {
		width: 230px;
	}
}

/* ----------------------------------------- SCREEN SIZE: phone landscape / tablets portrait --------------------*/
@media (max-device-width : 600px) {
	h1, .h1 {
	  font-size: 56px;
	}
	#top {
  	height: 90px !important;
	}
	#top nav {
	  padding-top: 20px !important;
	}
	#topmenu li a, #topmenu li a:visited, #languages li a, #languages li a:visited {
    padding:15px;
	}
  #topmenu li.icon img {
    padding-top:5px;
	}
  #topmenu.responsive {
    padding-top:11vw;
	}
  #topmenu.responsive li a {
    line-height: 1.2em;
	}
  #topnews .slide p {
	  display: none;
	}
  #topnews .slide .texty {
  	bottom: 30px;
	}
  .topnews_box,
	.news_box {
  	padding: 20px;
		flex-basis: 100% !important;
	}
  .home section h2 {
	  margin: 0 40px;
  	font-size: 32px;
	}
  #footer {
  	margin-top: 0;
	}
  #footer .container {
	  width: 84%;
	}
  #footer .bloky {
  	padding: 0;
    text-align: center;
	}
	#footer .blok {
  	width:100%;
  	padding: 0 10px;
  }
  #footer .bloky ul {
  	margin:0;
	}
  #footer .bloky ul li {
  	display: inline-block;
  	margin-right:15px;
  }
  #footer .praha {
		display: block;
		margin: 5px auto 0 auto;
	}
  #years {
  	margin-bottom:0;
	}
  .texty a.ikona, .texty a.ikona:visited,
	.single .texty .wp-block-file a, .single .texty .wp-block-file a:visited {
	  width: 100%;
    padding: 5px 20px;
	}
  .search #content ul {
    padding-left: 40px;
	}
  #shrnuti {
		padding: 20px 30px;
	}
  #shrnuti {
  	font-size: 1.2em;
	}
  #ostatni_clanky article,
	#ostatni_aktuality article,
	#dalsi-uspechy article {
  	width: 50%;
	}
  #sloupce-3 {
  	columns: 1;
	}
  #cookies-alert {
  	padding: 1.5em 1em 2em 1em;
	}
	#cookies-settings .group p,
	.buttons {
  	padding-left: 0;
	}
}

@media (max-device-width : 480px) {
	h1, .h1 {
  	font-size: 48px;
	}
	#top {
  	height: 75px !important;
	}
	#top nav {
	  padding-top: 15px !important;
	}
	#topmenu.responsive {
    padding-top:13vw;
	}
	#topmenu.responsive li a {
    padding: 1.5vw 1vw 1.5vw 3vw;
    font-size: 1.7em;
  }
  .mm-menu {
	  width: 100%
	}
  #platan1,
  #platan2 {
    width: 50px;
    background-size: 50px;
    top: 70px;
	}
  #platan1 {
    background-image: url("../images/platan-1-mini.png");
    left:0;
	}
  #platan2 {
    background-image: url("../images/platan-2-mini.png");
		right:0;
	}
  #budova {
  	top: 60px;
	}
  #logo_wrapper {
  	margin-left:30px;
	}
  .logo img {
  	height: 35px;
	}
  header {
  	min-height: 70px;
	}
  /*#topnews .slide .texty {
  	position: initial;
    width: 100%;
		padding: 20px;
	}*/
  #owl-two .owl-stage-outer {
	  max-height: 68vw;
	}
  #footer {
  	padding: 20px 0;
  }
  #footer .bloky #blok3 br {
  	display:block;
  }
  #footer .bloky #blok3 span {
		display:none;
	}
  .single #content .texty,
	.page #content .texty,
	body:not(#cs) #content .texty {
  	padding: 20px !important;
	}
  .single #content .texty h2,
	.page #content .texty h2,
	body:not(#cs) #content .texty h2 {
  	font-size: 28px;
	}
  body .is-layout-flex {
  	justify-content: center;
	}
  #content .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
	  width: calc(100% - var(--wp--style--unstable-gallery-gap, 16px)*0.75);
    max-width: 310px;
    padding: 0 0 12px 0;
	}
  .single #content .container ul, .page #content .container ul {
  	margin: 0 0 2em 1em;
	}
  .search #content ul {
  	padding: 40px 20px;
	}
  .single-osoba #content .featured {
  	width: 100%;
  	text-align: center;
		background:none;
	}
  .single-osoba #content .featured img.size-fotka {
  	display: inline-block;
	}
  .single #content .dlazdice .wp-block-gallery {
  	grid-template-columns: repeat(1, 1fr);
	}
  #content .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
  	padding-bottom:0;
	}
  #shrnuti {
  	padding: 15px 25px;
	}
  #hlavni_post {
	  padding: 30px 20px;
	}
  #minivypis {
  	columns: 1;
    margin-left:0;
    text-align: center;
	}
  #minivypis li {
  	display: inline-block;
		margin: 12px;
	}
  #maturita {
	  padding: 10px 40px;
	}
  body.category .posty .texty ul {
	  margin: 0 0 2em 2em;
	}
  #clock {
	  width: 200px;
		height: 200px;
	}
  #clock .hour, .hr {
	  width: 110px;
	  height: 110px;
	}
  #clock .min, .mn {
	  width: 170px;
	  height: 170px;
	}
  #clock .sec, .sc {
	  width: 180px;
	  height: 180px;
	}
  .hr::before {
  	height: 60px;
	}
  .sc::before {
  	height: 100px;
	}
  .category #maturita .wp-block-file a {
	  width: 100%;
	}
  #cookies-settings .group p {
	  padding-left: 0;
	}
  #cookies-alert .button {
	  border:none;
		margin:0;
    padding: 7px;
		display: inline-block;
	}
  .switch, .switch-item {
	  display: block;
    margin-bottom: 15px;
	}
  .buttons {
  	padding-left: 0;
    line-height: 2em;
	}
  #cookies-settings .button {
	  margin: 0 15px 0 0px;
	  padding: 5px 10px;
		display:inline-block;
	}
  #topnews .slide > a.obr {
	  max-height: 300px;
	  display: inline-block;
	  overflow: hidden;
	}
}

/** ----------------------------------------- SCREEN SIZE: phone portrait --------------------*/
@media (max-device-width : 380px) {
	h1, .h1 {
  	font-size: 42px;
	}
	#top {
  	height: 65px !important;
	}
  #platan1,
  #platan2 {
    width: 40px;
		background-size: 40px;
	}
  #platan1 {
		left:-10px;
	}
  #platan2 {
		right:-10px;
	}
  .logo img {
  	height: 32px;
	}
  .news_box .texty {
	  padding: 10px 20px;
	}
  #footer .bloky ul li {
  	display: block;
  	margin-right: 0;
	}
  .single #content .texty h2,
	.page #content .texty h2,
	body:not(#cs) #content .texty h2 {
  	font-size: 25px;
	}
  .search #content ul li {
  	text-align: center;
	}
  .search #content ul li img {
  	float: none;
    padding-top: 20px;
	}
  .search #content ul li .nalezeno {
    width: 100%;
		padding: 5px 0 0 0;
	}
  #ostatni_clanky article,
	#ostatni_aktuality article,
	#dalsi-uspechy article {
  	width: 100%;
	}
  #osoby_box {
	  padding: 20px;
	}
}
