/*!
Theme Name: TUL 2022
Theme URI: https://www.tul.cz/
Author: Pavel Satrapa
Author URI: http://www.nti.tul.cz/~satrapa/
Description: Šablona pro TUL podle vizuálu z roku 2022.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tul-2022
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

TUL 2022 is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

main {
	display: block;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: bolder;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img {
	border-style: none;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

@font-face {
    font-family: 'TUL Mono';
    src: local('TUL Mono'), url('./font/TULMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
	font-display: optional;
}

@font-face {
    font-family: 'TUL Mono';
    src: local('TUL Mono'), url('./font/TULMono-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
	font-display: optional;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter'), url('./font/Inter-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
	font-display: optional;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter'), url('./font/Inter-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
	font-display: optional;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter'), url('./font/Inter-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
	font-display: optional;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter'), url('./font/Inter-BoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
	font-display: optional;
}

.tulmono {
	font-family: 'TUL Mono', sans-serif;
}

body,
button,
input,
select,
optgroup,
textarea {
	color: #000;
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	margin: 1.5rem 0 0.75rem;
	font-size: 1.2rem;
}

h1 {
	font: bold 2.25rem 'TUL Mono', sans-serif;
	margin: 0;
}

h2 { font: bold 1.6rem 'TUL Mono', sans-serif; }
h3 { font-size: 1.4rem; }

p {
	margin: 0 0 0.75em;
}

dfn, cite, em, i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em 0.75em;
}

address {
	margin: 0 0 0.75em;
}

pre {
	background: #eee;
	font-family: monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-bottom: 0.75em;
	max-width: 100%;
	overflow: auto;
	padding: 0.5em;
}

code, kbd, tt, var {
	font-family: monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark, ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html,
body {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #fff;
	color: #000;
	--btn-color: #fff;
	--wp--preset--color--tul: #5948ad;
	--wp--preset--color--fs: #54595f;
	--wp--preset--color--ft: #924c14;
	--wp--preset--color--fp: #0076D5;
	--wp--preset--color--ef: #4a7c0e;
	--wp--preset--color--fua: #006443;
	--wp--preset--color--fm: #CC4400;
	--wp--preset--color--fzs: #007780;
	--wp--preset--color--cxi: #C20019;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 0.75em;
}

ul, ol {
	margin: 0 0 0.75em 0;
	padding-left: 2em;
}

ul {
	list-style: square;
}

ul li::marker {
    color: #747476;
    font-size: 130%;
    line-height: 0.77;
}

ol {
	list-style: decimal;
}

ol.pismena {
	list-style: lower-alpha;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 0.75em;
}

.size-large > img[src$=".svg"] {
    width: 1024px;
}

.size-medium > img[src$=".svg"] {
    width: 300px;
}

.size-thumbnail > img[src$=".svg"] {
    width: 150px;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 0 0 0.75em;
	display: table;
	/* Extra wide images within figure tags don't overflow the content area. */
}

.wp-block-gallery {
	padding-bottom: 0.75rem;
}

.wp-block-column .wp-block-image {
/*    margin: 0 -0.5rem 1rem; */
}

figcaption {
	text-align: center;
	width: 100%;
}

table {
	margin: 0 0 0.75em;
	border-collapse: collapse;
}

figure > table {
	margin: 0;
}

.wp-block-table table {
	width: auto;
}

tr:nth-child(odd) {
    background-color: rgba(0,0,0,0.07);
}

tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

td, th {
    padding: 0.25em 0.5em;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
label {
    white-space: nowrap;
    margin-right: 1em;
	display: inline-block;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
a {
	color: #5948ad;
	background-color: transparent;
}

a:active {
	outline-color: #5948ad;
}

.wp-block-buttons {
	margin-bottom: 0.75em;
}

.wp-block-button {
	margin: 0.5rem 0.5rem 0.5rem 0;
}

.wp-block-button__link {
	font-size: 100%;
	padding: 0.5em 1.0em;
	border-radius: 0.25rem;
}

.wp-block-button__link,
.wp-block-button__link:visited {
	color: #fff;
	color: var(--btn-color);
}

.wp-block-button__link::after {
    content: " ➔";
}

/*--------------------------------------------------------------
## Site
--------------------------------------------------------------*/
.site {
    margin: 0 auto;
}

/*--------------------------------------------------------------
## Header
--------------------------------------------------------------*/
header {
	background: #5948ad;
	color: #fff;
	margin-bottom: 0.5rem;
}

.site-header {
	max-width: 70rem;
	margin: 0 auto;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	font: 0.85rem 'TUL Mono', sans-serif;
}

.site-branding {
    flex-shrink: 0;
	margin-right: 1rem;
}

.part-header {
	padding: 0 0.5rem;
}

.logo-tul {
	width: 5rem;
	display: block;
}

.site-header a {
    text-decoration: none;
}

.hdr-icon {
    width: 3rem;
	aspect-ratio: 155/150;
    position: relative;
    top: 0.3rem;
    margin: 0 0.5rem 0 1rem;
    flex-shrink: 0;
}

/*--------------------------------------------------------------
## Language switcher
--------------------------------------------------------------*/
.jazyk {
    margin: 0 0 0 0.75rem;
    padding: 0px;
    list-style: none;
	line-height: 1.2;
}

.no-translation {
    text-decoration: line-through;
	opacity: 0.5;
}

/*--------------------------------------------------------------
## Site search
--------------------------------------------------------------*/
.sitesearch {
    width: 3em;
	height: 2.2em;
	position: relative;
}

.searchbox {
	border-radius: 2em;
	border: solid 1px rgba(255,255,255,0.3);
	padding: 0.2em 1.1em;
	margin-left: 0.5rem;
	background: rgba(255,255,255,0.1) url(./img/lupa-bila.svg) no-repeat 0.6em center;
	background-size: 1.25em;
	color: #fff;
	height: 2.2em;
	width: 0em;
/*	transition: all 0.25s; */
}

.searchbox:hover {
	border-color: #fff;
}

.searchbox:focus {
	position: absolute;
	top: 0;
	right: 0;
	width: 15em;
	padding-left: 2em;
}

::placeholder {
	color: #fff;
}

/*--------------------------------------------------------------
## Footer
--------------------------------------------------------------*/
.colophon {
	padding: 1rem 0.5rem;
	background-color: #eee;
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin-top: 1rem;
}

.loga {
	padding-top: 16rem;
	background: transparent url(./img/symbol.svg) no-repeat top center;
	background-size: 12rem;
	background-position: center top 1rem;	
}

@media (min-width: 71em) {
	.colophon {
		padding-left: calc(50vw - 35.4rem);
	}
	
	.site-footer {
		flex-wrap: nowrap;		
	}
}

@media (min-width: 66em) {
	.colophon {
		padding-right: 14rem;
		background: #eee url(./img/symbol.svg) no-repeat top right;
		background-size: 12rem;
		background-position: right 1rem top 2.5rem;
	}
	
	.loga {
		background-image: none;
		padding-top: 0;
	}
}

.site-footer > * {
	padding: 0.5rem;
	min-width: 12rem;
}

.foot-logo {
    height: 2.2rem;
	margin-right: 1rem;
	display: inline-block;
}

.foot-logo-s {
    height: 1.7rem;
}

.foot-logo-velke {
    height: 2.5rem;
}

.foot-logo img {
    height: 100%;
}

.copyright {
    padding: 1rem 0.5rem 0.5rem;
	color: #777;
}

.copyright a {
	white-space: nowrap;
}

/*--------------------------------------------------------------
## Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
	font-size: 0.8rem;
	padding: 0.2rem 0.5rem;
}

.homeicon {
	height: 1em;
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.toggle-label,
.toggle-switch {
	display: none;
}

.menu,
.sub-menu {
	list-style: none;	
	margin: 0;
	padding: 0;
}

.menu-item {
	padding: 0.1em 0.75em;
	white-space: nowrap;
}

.main-navigation ul {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	display: none;
}

.main-navigation li {
	position: relative;
}

.menu a {
	display: block;
	text-decoration: none;
}

header a {
	color: #fff;
}

header a:hover {
	background: rgba(0,0,0,0.5);
}

.current-page-ancestor > a,
.current_page_item > a {
	font-weight: bold;
	text-decoration: underline;
	text-decoration-thickness: 0.25em;
}

.menu-secondary-container {
    min-width: 12rem;
    line-height: 1.25;
    font-size: 0.95rem;
	padding: 0.2rem 0;
}

.menu-secondary li,
.menu-secondary a {
	display: inline;
	line-height: 1.75;
}

.menu-secondary a::after {
	content: "\2192";
}

@media all and (max-width : 41rem) {
	.toggle-label {
		display: block;
		padding: 0.1rem 0.5rem;
		text-decoration:none;
		text-align: right;
		border:none;
		cursor: pointer;
	}

	.toggle-switch + div {
		display: none;
	}

	.toggle-switch:checked + div {
		display: block;
	}
	
	.main-navigation ul {
		flex-direction: column;
		justify-content: flex-start;
	}
	
	.menu-hlavni-menu-container {
		position: absolute;
		left: 0;
		width: 100%;
		margin-top: 1rem;
		z-index: 1;
		background-color: #5948AD;
		border-top: 1px solid #7869C4;
	}
	
	.menu-hlavni-menu-container li {
		border-bottom: 1px solid #7869C4;
		padding: 0.5rem;
	}
	
	.menu-hlavni-menu-container a {
		color: #fff;
	}

}

@media screen and (min-width: 41em) {
	
	article.page,
	article.post {
    	display: grid;
    	grid-template-columns: 1fr auto;
		grid-template-rows: auto auto auto 1fr;
		max-width: 70rem;
		margin: 0 auto;
	}
	
	.home article.page {
    	display: block;
	}
	
	.page-h1 {
		grid-column: 1 / 3;
	    grid-row: 2;
	}
	
	.menu-secondary-container {
    	grid-column: 2;
		grid-row: 3;
	}
	
	.breadcrumbs {
		grid-column: 1 / 3;
		grid-row: 1;
	}
	
	.sidebar {
    	grid-column: 2;
		grid-row: 4;
		padding-top: 2rem;
	}
	
	.entry-content {
		grid-column: 1;
		grid-row: 3 / 5;
	}
	
	.menu-secondary {
    	border-left: solid 0.5rem #5948ad;
    	margin: 1rem 1rem 1rem 0.5rem;
	}

	
	.menu-item {
		white-space: normal;
	}

	.menu-secondary li,
	.menu-secondary a {
		display: block;
		line-height: 1.3;
		margin-bottom: 0.25rem;
	}

	.main-navigation ul {
		display: flex;
		justify-content: flex-end;
		flex-wrap: wrap;
	}
}

.posts-navigation,
.post-navigation {
	margin: 3rem 0 1.5em;
}

.nav-previous {
	float: left;
	width: 50%;
}

.nav-previous::before {
	content: "\2190  ";
}

.nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

.nav-next::after {
	content: " \2192";
}

/*--------------------------------------------------------------
# Kalendář
--------------------------------------------------------------*/
.home-top {
   	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 0.5rem;
	margin: 0.5rem 0 1rem;
}

.metaslider {
	background-color: #747476;
	aspect-ratio: 1080/420;
}

body .metaslider.ms-theme-blend div.slider-wrapper .nivo-controlNav:not(.nivo-thumbs-enabled) {
    bottom: 0.5rem;
    left: 1rem;
}

.facebook {
    padding: 0.5rem;
}

.facebook {
	font-size: 1.5rem;
	display: flex;
	justify-content: left;
	align-items: center;
	text-align: center;
}

.facebook img {
    width: 5rem;
    display: block;
    margin-right: 0.5rem;
}

.uni-events {
    padding-top: 0.5rem;
}

@media screen and (min-width: 40em) {
	.home-top {
		grid-template-columns: 1fr 1fr;
	}

	.metaslider,
	.facebook {
		grid-column: 1 / 3;
	}
	
	.uni-events {
		grid-column: 2 / 3;
	}
	
	.soucasti {
    	grid-row: 2;
    	grid-column: 1/3;
	}
	
	.clanek:nth-child(4) {
		grid-column: 1 / 2;
		grid-row: 3 / 4;
	}
}

@media screen and (min-width: 50em) {
	.home-top {
		grid-template-columns: 1fr 1fr 1fr;
		margin: 0 -0.5rem 1rem;
	}
	
	.uni-events {
		grid-column: 3 / 4;
    	grid-row: 1 / 3;
	}

	.soucasti {
    	grid-column: 1 / 3;
	}
	
	.facebook {
		flex-direction: column;
		grid-column: 3 / 4;
		justify-content: center;
	}
	
	.facebook img {
		margin: 0;
	}

}

h2.akce-nadpis {
	margin: -0.5rem 0 0.5rem 0.5rem;
	text-align: center;
}

.akce-seznam {
    list-style: none;
    margin: 0;
    padding: 0;
	line-height: 1.1;
}

.event-item {
	margin-bottom: 0.75rem;
}

.date-wrapper {
	display: inline-block;
	font-family: 'TUL Mono', sans-serif;
	padding: 0.2em;
}

.title {
    margin-top: 0.2rem;
    line-height: 1.25em;
}

/*--------------------------------------------------------------
# Články TUNI
--------------------------------------------------------------*/
.clanek {
    background-color: #eee;
	display: flex;
	flex-direction: column;
	position: relative;
}

.clanek-obr {
    height: 15rem;
    width: 100%;
    object-fit: cover;
	object-position: 50% 10%;
}

.clanek-nadpis {
    font-size: 1.2rem;
    margin: 0;
	padding: 0.5rem;
	line-height: 1.3;
}

.clanek-text {
	padding: 0 0.5rem;
	display: inline-block;
	display: none;
}

.clanek-datum {
    padding: 1.0rem 0.5rem 0;
    margin-top: auto;
    font: 0.9rem 'TUL Mono', sans-serif;
}

a.coverblock::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

.akce-seznam a,
.tul-aktuality a,
.clanek a {
	display: block;
}

.clanek a {
	text-decoration: none;
	color: #000;
}

/*--------------------------------------------------------------
# Přehled součástí
--------------------------------------------------------------*/

.soucasti {
	text-align: center;
	background-color: rgba(0, 0, 0, 0.05);
	margin-top: -0.5rem;
	padding-top: 0.75rem;
}

.soucasti .wp-block-button__link {
    margin: 0 0.5rem 0.25rem 0;
}

/*--------------------------------------------------------------
# Archiv a seznamy příspěvků
--------------------------------------------------------------*/
.archiv-polozka {
    margin-bottom: 1.5rem;
}

.archiv-nadpis {
    display: flex;
	flex-direction: column-reverse;
}

.archiv-datum {
    font-size: 1rem;
    font-weight: normal;
    white-space: nowrap;
    margin-bottom: 0.25rem;
	width: fit-content;
}

.wp-block-latest-posts.wp-block-latest-posts__list {
	list-style: square;
}

.wp-block-latest-posts a {
    font-weight: bold;
}


/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 0.5rem;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 0.5rem;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.textright {
	text-align: right;
}

.textcenter {
	text-align: center;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after {
	clear: both;
}

.clear {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
}

.edit-link {
	display: none;
	float: right;
	margin-left: 1rem;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.home .site-content {
	max-width: 70rem;
	margin: 0 auto;
	padding: 0 0.5rem;
}

.error404 .page-title,
.search-results .page-title {
    background-color: #fff;
    color: #000;
    padding: 2rem calc(50vw - 35.5rem) 1rem;
}

.error404 .page-content,
.search-results .page-content {
    max-width: 70rem;
    margin: 2rem auto 3rem;
}

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/

.entry-header {
    display: flex;
	flex-direction: column;
    align-items: stretch;
}

@media screen and (min-width: 37.5em) {
	.entry-header {
		flex-direction: row-reverse;
	}
}

.entry-footer {
	margin-top: 3rem;
}

.entry-title {
	padding: 0.5rem;
}

.page-id-15894 .entry-title {
    background: rgba(58, 117, 196, 0.8);
    color: #f9dd16;
}

.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1rem 1rem 1rem 0.5rem;
}

.home .entry-content {
	margin: 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
embed,
iframe,
object {
	max-width: 100%;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

.wp-block-image .aligncenter > figcaption, .wp-block-image .alignleft > figcaption, .wp-block-image .alignright > figcaption {
	display: block;
}

.wp-block-image a,
.site-branding a {
	display: inline-block;
}

.foot-logo:hover *,
.foot-logo:focus *,
.site-branding a:hover *,
.site-branding a:focus *,
.hdr-icon:hover *,
.hdr-icon:focus *{
	filter: grayscale(1) brightness(0) invert(1);
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
## Přehled programů
--------------------------------------------------------------*/
#programmes-list {
    padding: 0;
}

summary {
	padding: solid 1px #ccc;
	padding: 0 0.5rem 0 1.5em;
	text-indent: -1em;
	cursor: pointer;
}

summary:hover {
	text-decoration: underline;
}

summary > h2 {
    display: inline;
}

.prog-wrap {
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.15rem;
    list-style: none;
}

.prog {
	display: inline-block;
	list-style: none;
	margin-right: 1em;
	white-space: nowrap;
}

.prog-param dt {
    font-weight: normal;
    float: left;
    min-width: 8.5em;
}

.prog-param dd {
    font-weight: bold;
    margin: 0;
}


/*--------------------------------------------------------------
## Projekty
--------------------------------------------------------------*/
.projekt-info[open] {
	background-color: #eee;
	padding: 0 0.5rem;
}

.projekt-info[open] summary {
	color: #fff;
	background-color: #5948ad;
	margin: 0 -0.5rem 0.75rem;
}

.projekt-info dt {
	float: left;
	min-width: 6.5em;
	clear: left;
}

.projekt-info dd {
	margin-bottom: 0;
}

.projekt-info dd::after {
	clear: both;
	content: "";
	display: block;
}

/*--------------------------------------------------------------
## MSIE
--------------------------------------------------------------*/
.msie-only {
	background-color: #94090d;
	color: #fff;
	padding: 0.5em 1em;
	margin: 0;
	text-align: center;
}

.menu-secondary-container {
	float: right;
	width: 29%;
	min-height: 8.6rem;
}

.breadcrumbs {
	width: 71%;
}

.entry-content {
	width: 70%;
}

.metaslider {
	width: 67%;
	float: left;
}

.uni-events {
	width: 33%;
	float: right;
}

.clanek {
	margin-top: 0.5rem;
}

.clanek-obr {
	display: none;
}

/* reset pro normální prohlížeče */
@supports ( display:grid ) {
	.msie-only {
		display: none;
	}
	
	.menu-secondary-container {
		float: none;
		width: auto;
		max-width: 15rem;
	}

	.breadcrumbs {
		width: auto;
	}

	.entry-content {
		width: auto;
	}

	.metaslider,
	.uni-events {
		width: auto;
		float: none;
	}

	.clanek {
		margin-top: 0;
	}

	.clanek-obr {
		display: block;
	}

	@media screen and (min-width: 72em) {
		.entry-title,
		.breadcrumbs {
			padding: 0.5rem;
		}
	}
	
	.site-header {
		justify-content: center;
	}

	.main-navigation {
		flex-grow: 1;
	}
	
	.menu a:hover {
		color: #d4d5d6;
	}

	a:hover,
	a:active,
	a:focus,
	a[class$=color]:hover,
	.toggle-label:hover,
	*:focus {
		outline: none;
		text-decoration: none;
		background: #5948ad;
		color: #fff;
		box-shadow: 0 0 0 0.5rem #5948ad;
	}
	
	a.wp-block-button__link:hover,
	a.wp-block-button__link:active,
	a.wp-block-button__link:focus {
		box-shadow: 0 0 0 0.2rem #5948ad;		
	}

}

/*--------------------------------------------------------------
## Nástroje
--------------------------------------------------------------*/
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
	margin: 1rem auto;
	padding: 1rem;
}

.wp-block-media-text {
	margin-bottom: 0.75rem;
}

.metaslider.ms-theme-nivo-bar .slider-wrapper {
	border: none !important;
}

.nivo-prevNav,
.nivo-nextNav {
	background-color: rgba(0,0,0,0.6) !important;
}

.block75 {
	display: block;
	margin: 1rem auto;
}

@media screen and (min-width: 50em) {
	.block75 {
		width: 75%;
	}
}

.padding-small {
	padding: 0.5rem;
}

.padding-small-tb {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.padding-big {
	padding: 1rem;
}

.padding-big-tb {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.fullwidth {
	width: 100%;
}

.fullwidth table {
	width: 100%;
}

.noclear {
	clear: none;
}

.mezera-velka {
	margin-top: 2rem;
}

.mezera-stredni {
	margin-top: 1rem;
}


.mezera-zaporna {
	margin-top: -0.5rem;
}

.mezera-pod-stredni {
	margin-bottom: 1rem;
}

.mezera-pod-velka {
	margin-bottom: 2rem;
}

.bez-mezery {
	margin-bottom: 0;
}

.mezera-vpravo {
	margin-right: 0.5em;
}

.ramecek img {
    border: solid 1px rgba(0, 0, 0, 0.2);
}

.nedelit {
	white-space: nowrap;
}

/*--------------------------------------------------------------
## Responsibility
--------------------------------------------------------------*/
.uzke { display: block; }
.siroke { display: none; }

@media (min-width: 50em) {
	.uzke { display: none; }
	.siroke { display: block; }
}


/*--------------------------------------------------------------
## Univerzitní barvy
--------------------------------------------------------------*/
.bg-tul,
.has-tul-background-color {
    background-color: #5948ad;
	background-color: var(--wp--preset--color--tul);
	color: #fff;
	color: var(--btn-color);
}

.bg-tul-light {
	background-color: rgba(89, 72, 173, 0.1);
}

.bg-fs,
.has-fs-background-color,
.projekt-info-bg-fs[open] summary {
    background-color: #54595f;
	background-color: var(--wp--preset--color--fs);
	color: #fff;
	color: var(--btn-color);
}

.bg-fs-light {
    background-color: rgba(84, 89, 95, 0.1);
}

.bg-ft,
.has-ft-background-color,
.projekt-info-bg-ft[open] summary {
    background-color: #924c14;
	background-color: var(--wp--preset--color--ft);
	color: #fff;
	color: var(--btn-color);
}

.bg-ft-light {
    background-color: rgba(146, 76, 20, 0.1);
}

.bg-fp,
.has-fp-background-color,
.projekt-info-bg-fp[open] summary {
    background-color: #0076d5;
	color: #fff;
	color: var(--btn-color);
}

.bg-fp-light {
    background-color: rgba(0, 118, 213, 0.1);
}

.bg-ef,
.has-ef-background-color,
.projekt-info-bg-ef[open] summary {
    background-color: #65a812;
	color: #fff;
	color: var(--btn-color);
}

.bg-ef-light {
    background-color: rgba(101, 168, 18, 0.1);
}

.bg-fua,
.has-fua-background-color,
.projekt-info-bg-fua[open] summary {
    background-color: #006443;
	background-color: var(--wp--preset--color--fua);
	color: #fff;
	color: var(--btn-color);
}

.bg-fua-light {
    background-color: rgba(	0, 100, 67, 0.1);
}

.bg-fm,
.has-fm-background-color,
.projekt-info-bg-fm[open] summary {
    background-color: #ea7603;
	color: #fff;
	color: var(--btn-color);
}

.bg-fm-light {
	background-color: rgba(204, 68, 0, 0.1);
}

.bg-fzs,
.has-fzs-background-color,
.projekt-info-bg-fzs[open] summary {
    background-color: #00b0be;
	color: #fff;
	color: var(--btn-color);
}

.bg-fzs-light {
    background-color: rgba(0, 176, 190, 0.1);
}

.bg-cxi,
.has-cxi-background-color,
.projekt-info-bg-cxi[open] summary {
    background-color: #c20019;
	background-color: var(--wp--preset--color--cxi);
	color: #fff;
	color: var(--btn-color);
}

.bg-cxi-light {
    background-color: rgba(194, 0, 25, 0.1);
}

.radek-doleva {
    margin: 0 0 0 1.5rem;
    text-indent: -1.5rem;
}

.border-left,
.barevny-okraj {
	border-left: solid 1rem currentcolor;
	padding-left: 0.25em;
}

.border-tul,
.okraj-tul { border-color: #5948ad; }
.border-fs,
.okraj-fs { border-color: #54595f; }
.border-ft,
.okraj-ft { border-color: #924c14; }
.border-fp,
.okraj-fp { border-color: #0076d5; }
.border-ef,
.okraj-ef { border-color: #4a7c0e; }
.border-fua,
.okraj-fua { border-color: #006443; }
.border-fm,
.okraj-fm { border-color: #CC4400; }
.border-fzs,
.okraj-fzs { border-color: #007780; }
.border-cxi,
.okraj-cxi { border-color: #c20019; }

.bg-tmava,
.has-dark-background-color {
    background-color: #747476;
	color: #fff;
}

.bg-svetla,
.has-light-background-color {
    background-color: #d4d5d6;
	color: #000;
}

.has-white-background-color {
    background-color: #fff;
	color: #000;
}

.bg-tul a,
.has-tul-background-color a,
.bg-fs a,
.has-fs-background-color a,
.bg-ft a,
.has-ft-background-color a,
.bg-fp a,
.has-fp-background-color a,
.bg-ef a,
.has-ef-background-color a,
.bg-fua a,
.has-fua-background-color a,
.bg-fm a,
.has-fm-background-color a,
.bg-fzs a,
.has-fzs-background-color a,
.bg-cxi a,
.has-cxi-background-color a,
.bg-tmava a,
.has-dark-background-color a {
	color: #fff;
	color: var(--btn-color);
}

.has-tul-color {
	color: #5948ad;
	color: var(--wp--preset--color--tul);
}

.has-fs-color {
	color: #54595f;
	color: var(--wp--preset--color--fs);
}

.has-ft-color {
	color: #924c14;
	color: var(--wp--preset--color--ft);
}

.has-fp-color {
	color: #0076d5;
	color: var(--wp--preset--color--fp);
}

.has-ef-color {
	color: #4a7c0e;
	color: var(--wp--preset--color--ef);
}

.has-fua-color {
	color: #006443;
	color: var(--wp--preset--color--fua);
}

.has-fm-color {
	color: #CC4400;
	color: var(--wp--preset--color--fm);
}

.has-fzs-color {
	color: #007780;
	color: var(--wp--preset--color--fzs);
}

.has-cxi-color {
	color: #c20019;
	color: var(--wp--preset--color--cxi);
}

.bila,
.has-white-color {
	color: #fff;
}

.svetla,
.has-light-color {
	color: #d4d5d6;
}

.tmava,
.has-dark-color {
	color: #747476;
}



/*--------------------------------------------------------------
## Dark mode
--------------------------------------------------------------*/

@media ( prefers-color-scheme: dark ) {
	body {
		background: #111;
		color: #eee;
		--btn-color: #000;
		--wp--preset--color--tul: #9890d0;
		--wp--preset--color--fs: #888b95;
		--wp--preset--color--ft: #cc9363;
		--wp--preset--color--fp: #0076d5;
		--wp--preset--color--ef: #65a812;
		--wp--preset--color--fua: #00b377;
		--wp--preset--color--fm: #ea7603;
		--wp--preset--color--fzs: #00b0be;
		--wp--preset--color--cxi: #fa0021;
	}
	
	header {
		background-color: #433684;
	}

	.colophon,
	.breadcrumbs {
		background-color: #111;
	}

	.clanek,
	.facebook {
		background-color: #202020;
	}

	a,
	.clanek a {
		color: #eee;
	}

	.hdr-icon img,
	.homeicon,
	.foot-logo img {
		filter: grayscale(1) brightness(0) invert(0.8);
	}

	.foot-logo:hover *,
	.foot-logo:focus *,
	.site-branding a:hover *,
	.site-branding a:focus *,
	.hdr-icon:hover *,
	.hdr-icon:focus * {
		filter: grayscale(1) brightness(0) invert(0.95);
	}
	
	.projekt-info[open] {
		background-color: #222;
	}
	
	summary,
	.menu-secondary-container,
	.bg-tul-light,
	.bg-fs-light,
	.bg-ft-light,
	.bg-fp-light,
	.bg-ef-light,
	.bg-fua-light,
	.bg-fm-light,
	.bg-fzs-light,
	.bg-cxi-light {
		background-color: transparent;
	}
}

/*--------------------------------------------------------------
## Print
--------------------------------------------------------------*/
@media print {
	:root {
		font-size: 12pt;
	}
	
	header,
	.menu-secondary-container,
	.sidebar,
	.site-footer,
	.colophon {
		display: none;
	}
	
	.breadcrumbs {
		margin-top: 0;
		opacity: 0.5;
	}
	
	.entry-title {
		margin-top: 0;
	}
	
	article.page, article.post {
		display: block;
	}
	
	h1, h2, h3, h4, h5, h6 {
		break-after: avoid;
	}
	
	body::before {
		content: "Technická univerzita v Liberci";
		font-weight: bold;
		font-size: 1.25rem;
		color: #5948ad;
		margin-left: 0.5rem;
	}
	
	* {
    	-webkit-print-color-adjust: exact;
    	color-adjust: exact;
	}
}
