/*!
Theme Name: Velký mlýn
Theme URI: https://velkymlyn.cz/
Author: Honza Kopta
Author URI: https://www.honzakopta.cz
Description: Custom theme for the Velký mlýn cultural centre and library in Prague-Libeň.
Version: 1.7.1
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velkymlyn
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.

Velký mlýn is based on Underscores https://underscores.me/, (C) 2012-2020 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/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

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

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

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

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

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

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

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

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

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

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

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

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

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 0;
}

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

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

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

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

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

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* 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;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

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

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* 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;
}

.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: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

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

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

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

/*------ CUSTOM CSS ------*/

:root {
  --primary-color: #47687B;
  --light-color: #F2F6F8;
  --primary-font: "Inter", sans-serif;
  --black-color:#1e1e1e;
}

html {
	font-size: 18px;
}

* {
	font-family: var(--primary-font)!important;
}


p {
	margin-bottom: 0px;
}

.btn-primary {
	text-transform: uppercase;
	font-weight: 200;
	background-color:var(--primary-color);
	color:white!important;
	border-radius: 0!important;
	border:0!important;
	padding:7px 30px;
}

.btn-primary:hover {
	background-color:var(--light-color);
	color:var(--primary-color)!important;
}

.custom-container {
  max-width: 1600px; /* or whatever value you want */
}


#banner {
	.banner-wrapper {
		background-size: cover;
		min-height:370px;
		color:white;
		position:relative;
		background-position: center 35%;

		.label {
			font-weight:200;
			font-size: 1.6rem;
			text-transform: uppercase;
		}
		.name {
			font-weight: 600;
			font-size: 2.2rem;

		}
		.date {
			font-size: 1.8rem;
			font-weight:300;
			letter-spacing: 1px;

		}

	}
	.banner-wrapper::before {
		content:'';
		position:absolute;
		width:100%;
		height:100%;
		background-color: rgba(71, 104, 123,0.7);
		top:0;
		left:0;
		z-index:20;
	}
	.banner-wrapper * {
		z-index:30;
		position:relative;
	}
}

#basic-info .container{
	padding:0.5rem 2rem 1rem 2rem;
	background-color: var(--light-color);

	h1{
		font-size: 1.9rem;
		font-weight:200;
		color:var(--primary-color);
	}
	span{
		color:var(--primary-color);
		font-weight: 700;
		margin-bottom: 0.4rem;
		display: block;
	}
	p, a{
		color:var(--black-color);
		font-weight:300;
	}

}

footer #footer-contacts .container{
	padding:1.5rem 2rem 1rem 2rem;
	background-color: var(--light-color);
}

a:hover {
	text-decoration: none;
}

.event-card-list,
.tribe-events .tribe-events-calendar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 8px !important;
  margin: 0 !important;
}

.event-card-list > .event-card:last-child,
.tribe-events-calendar-list > .event-card:last-child {
  margin-bottom: 8px !important;
}

.event-date {
  text-align: left;
  padding-right: 1rem;
  padding-left: 1rem;

  .datum {
	font-weight: 500!important;
  }
}

.event-date__single-line {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	white-space: nowrap;
}

.event-date__weekdays {
	font-size: .85rem;
}

.event-date__range {
	display: grid;
	gap: .35rem;
	margin: .35rem 0;
}

.event-date__boundary {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	gap: .35rem;
	align-items: baseline;
}

.event-date__label {
	color: var(--primary-color);
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
}

.event-date__boundary time {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: .1rem .4rem;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.25;
}

.event-date__boundary-time {
	font-size: .8rem;
	font-weight: 400;
}

.event-date__all-day {
	margin-left: 1.85rem;
}

.event-image img {
  height: auto;
  border-radius: 4px;
}

.event-category {
  background-color: #406579;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}

.event-title a {
  font-size: 1.4rem;
  text-decoration: underline;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color:var(--black-color)!important;
display: block;
}


.event-title:hover a {
	text-decoration: none;
}

.event-description {
  font-size: 1rem;
  color: var(--black-color)!important;

}

.event-card.event-card--fully-occupied {
	padding: 8px !important;
	background-color: var(--light-color);
}

.event-card--fully-occupied > .row {
	width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.event-card--fully-occupied > .row > .event-date {
	padding-inline: 0;
}

.event-card--fully-occupied .event-card-heading {
	align-items: center;
}

.event-card--fully-occupied .event-card-heading .event-location {
	margin-left: auto;
	text-align: right;
}

.event-card--fully-occupied .event-title,
.event-card--fully-occupied .event-title a {
	margin: 0 !important;
}

.event-card--fully-occupied .event-date,
.event-card--fully-occupied .event-date * {
	color: var(--primary-color) !important;
}

.event-card--fully-occupied .event-content,
.event-card--fully-occupied .event-title a,
.event-card--fully-occupied .event-occupancy-note {
	color: var(--primary-color) !important;
	font-weight: 200 !important;
}

/* Keep the schedule intact; let the title column use the remaining space. */
.event-card > .row {
	display: grid;
	grid-template-columns: minmax(11rem, max-content) minmax(10rem, 24%) minmax(0, 1fr);
	align-items: center;
	column-gap: 1rem;
	width: 100%;
	padding: 0;
	margin: 0;
}

.event-card > .row > .event-date,
.event-card > .row > .event-image,
.event-card > .row > .event-occupancy-note,
.event-card > .row > .event-content {
	width: auto;
	min-width: 0;
	padding: 0;
	margin: 0;
}

.event-card > .row > .event-date {
	padding-inline: 0;
	white-space: nowrap;
}

.event-card .event-date__boundary time {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.event-card .event-title {
	min-width: 0;
	overflow-wrap: anywhere;
}

.event-card--fully-occupied .event-card-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.5rem 0.75rem;
}

.event-card--fully-occupied .event-location {
	max-width: 100%;
	overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
	.event-card > .row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}

	.event-card > .row > .event-date {
		width: max-content;
		max-width: 100%;
	}

	.event-card > .row > .event-content,
	.event-card > .row > .event-image,
	.event-card > .row > .event-occupancy-note {
		padding: 0 !important;
	}

	.event-card--fully-occupied .event-card-heading {
		grid-template-columns: minmax(0, 1fr);
	}

	.event-card--fully-occupied .event-card-heading .event-location {
		margin-left: 0;
		justify-self: start;
		text-align: left;
	}

	.event-card--fully-occupied .event-occupancy-note:empty {
		display: none;
	}
}

.event-date__single-line > time:first-child {
	font-weight: 500;
}

.event-occupancy-note {
	font-size: 1.1rem;
	line-height: 1.4;
}

.event-card-meta,
.event-card-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.75rem;
}

.event-location {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
	font-size: 0.9rem;
}

.event-location .bi {
	flex-shrink: 0;
}

.event-tag {
	background-color:var(--primary-color);
	color:white!important;
	font-size:0.75rem;
	font-weight: 200;
}

.folkova-mlynice{
	background-color: #E96B76;
}

.seniorska-setkavani-ve-mlyne {
	background-color:var(--primary-color)!important;
}

#program{

h2{
	font-size: 1.7rem;
	text-transform: uppercase;
	font-weight: normal;
	color:var(--primary-color);
			line-height:1.7rem;

}
.btn-program {
	font-weight: 600;
	font-size:1.6rem;
	color:var(--primary-color);
}

} 

.logo {
	max-height:75px;
	padding-top:0.5rem;
	padding-bottom:0.2rem;
}


/* SLICK ****/

.slick-dotted.slick-slider {
	margin-bottom:0px;
}

.slick-dots {
	bottom: 20px;
}

.slick-dots li button:before {
	font-size:18px;
	color: #f0f2f3!important;
}


.site-header {
    padding: 10px 20px 15px 20px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.main-navigation #primary-menu {
    display: flex;
}

.main-navigation #primary-menu > li {
    margin-right: 40px; /* default spacing */
}

.main-navigation #primary-menu > li:nth-last-child(-n+2) {
    margin-right: 20px; /* smaller spacing for last two */
}

.main-navigation #primary-menu > li:last-child {
    margin-right: 0; /* remove margin from very last */
}

.main-navigation a {
    color: #849AA4; /* adjust to match your screenshot */
    font-weight: 500;
    text-decoration: none;
}

.main-navigation {
	width:max-content;
}

.main-navigation a:hover {
    color: var(--primary-color); /* hover color */
}

.header-social a {
    font-size: 1.2rem;
    color: #5f7b85;
}

.header-social a:hover {
    color: #004b60;
}

#omlyne {
	margin-top: 7rem;
	.text {
		background-color: var(--primary-color);
		color:white;
		padding:5rem;
		text-align: justify;
		font-weight: 300;
		font-size:1.1rem;
		span {
			text-decoration: underline;
		}
	}
}

/* Curated Gutenberg homepage. */
.homepage-blocks > .wp-block-group {
	margin-right: auto;
	margin-left: auto;
}

.homepage-blocks .homepage-section__inner,
.homepage-blocks #banner,
.homepage-blocks #omlyne,
.homepage-blocks #insta {
	max-width: 1600px;
}

.homepage-blocks #basic-info .homepage-section__inner {
	padding: .5rem 2rem 1rem;
	background-color: var(--light-color);
}

.homepage-blocks #basic-info h1 {
	margin-bottom: 1.5rem;
}

.homepage-blocks #basic-info .homepage-basic-grid {
	display: grid;
	grid-template-columns: 3fr 4fr 3fr;
	gap: 2rem;
	max-width: 1100px;
	margin: 0 auto;
}

.homepage-blocks #basic-info .nadpis {
	margin-bottom: .4rem !important;
	color: var(--primary-color);
	font-weight: 500;
}

.homepage-blocks #program {
	max-width: 1200px;
	padding: 3rem 1rem 0;
}

.homepage-blocks #program > h2 {
	margin-bottom: 1.5rem;
}

.homepage-blocks #program .wp-block-buttons {
	margin-top: 3rem;
}

.homepage-blocks #program .wp-block-button__link {
	border: 0;
	color: var(--primary-color);
	font-size: 1.6rem;
	font-weight: 600;
	text-decoration: none;
}

.homepage-blocks #omlyne .homepage-about-grid {
	gap: 0;
}

.homepage-blocks #omlyne .homepage-about-grid > .wp-block-column {
	box-sizing: border-box;
	flex: 0 0 50%;
	width: 50%;
}

.homepage-blocks #omlyne .homepage-about-grid > .wp-block-column:first-child {
	padding-right: 12px;
	padding-left: 12px;
}

.homepage-blocks #omlyne .homepage-about-image,
.homepage-blocks #omlyne .homepage-about-image img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.homepage-blocks #omlyne .homepage-about-copy {
	padding: 5rem;
	background-color: var(--primary-color);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 300;
	text-align: justify;
}

.homepage-blocks #omlyne .homepage-about-copy span {
	text-decoration: underline;
}

.homepage-blocks #news {
	max-width: 960px;
	padding-right: 1rem;
	padding-left: 1rem;
	text-align: center;
}

.homepage-blocks #news h2 {
	color: var(--primary-color);
	font-size: 1.6rem;
	font-weight: 500;
}

.homepage-blocks #insta {
	padding: 0 1rem 3rem;
}

@media only screen and (max-width: 781px) {
	.homepage-blocks #basic-info .homepage-basic-grid {
		grid-template-columns: 1fr;
	}

	.homepage-blocks #omlyne .homepage-about-copy {
		padding: 2rem;
		font-size: 1rem;
	}

	.homepage-blocks #omlyne .homepage-about-grid > .wp-block-column {
		flex-basis: 100%;
		width: 100%;
	}
}
@media only screen and (max-width: 768px) {
    #omlyne .text {
        padding:2rem;
        font-size:1rem;
    }
}

#news {
	margin-top:5rem;
	margin-bottom:7rem;
	p {
		font-weight:200;
		font-size:1.6rem!important;
		color:var(--primary-color);
		span {
			text-decoration: underline;
		}	
		strong{
			font-weight:500;

		}	
	}
	.prihlas{
		font-weight:400;
			
		}
}

#partners {
	padding-top:2rem;
	padding-bottom:2rem;
}

p{
    margin-bottom:15px!important;
}
/* DETAIL AKCE */

#tribe-events-pg-template {
	max-width: unset!important;
	padding:0;
}

.detail-akce {
	.datum, h1{
		color:var(--primary-color);
	}

	.datum {
		font-size: 1.3rem;
	}

	h1 {
		text-decoration: underline;
		font-size:2.3rem;
		margin-top:0.5rem;
		margin-bottom:2rem;
	}

	.event-tag {
		margin-left:10px;
		position:relative;
		top:-5px;
	}

	h5 {
		margin-bottom:20px;
				line-height:1.7rem;

	}

	p{
		margin-bottom:20px;
		font-weight: 300;
		line-height:1.9rem;
		font-size: 1.1rem;

		strong {
			font-weight:500;
		}
	}
	.banner-wrapper{
			background-size: cover;
		min-height:350px;
		color:white;
		position:relative;
		background-position: center center;
	}

	.detail-info {
		background-color:var(--primary-color);
		color:white;
		padding:2rem 2.5rem 2.5rem 2.5rem;

		p {
			border-bottom:1px solid #efefef78;
			margin-bottom:0;
			padding-bottom:8px;
			padding-top:8px;
			font-size:1rem;
			line-height: 1.5rem;
			display:flex;
		}
		p:last-of-type{
			border-bottom:0px;
		}
		
		strong {
			font-weight:500;
			margin-right:auto;

		}
		.btn {
			background-color:#E96B76;
			color:white;
		}
		.btn:hover {
			background-color:rgb(216, 137, 144);
			color:white!important;
		}
	}

	.event-occupancy-full {
		font-weight: 700;
	}

	.event-occupancy-note-detail span {
		text-align: right;
	}


}

.uvod:before {
	content: '';
	background-color:var(--light-color);
	position:absolute;
	width:106%;
	top:-22%;
	left:-3%;
	height:400px;
	z-index: -1;

}
.uvod {
	position:relative;
	padding-left:3rem;
}
.uvod * {
	z-index:5;
}


.entry-header {
    background-image: url('image/ptb.jpeg');
    background-size:cover;

    background-position: center center;
    min-height: 250px;
    position:relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-header::before {
    content:'';
    position:absolute;
    width:100%;
    height:100%;
    background-color: rgba(71, 104, 123,0.65);
    top:0;
    left:0;
    z-index:20;
}

.entry-header h1 {
    color: white;
    font-size: 2.5rem;
    position:relative;
    z-index:30;
    text-align: center;
    text-transform: uppercase;
    display:flex;
    align-items: center;
    justify-content: center;
    height: 100%;}

.velkymlyn-page-hero--slider {
	padding-right: 0;
	padding-left: 0;
}

.entry-header--plain {
	min-height: auto;
	padding: 2rem 1rem 1rem;
	background-image: none !important;
}

.entry-header--plain::before {
	display: none;
}

.entry-header--plain h1 {
	color: var(--primary-color);
}

.bi-list{
    font-size:1.5rem!important;
    color:var(--primary-color);
}

.offcanvas-body{

    ul{
        margin-left:1rem;
        list-style:none;
    
        li{
            padding-top:1rem;
            padding-bottom:1rem;
            border-bottom:1px solid #efefef;

            a{
                color:#849AA4!important;
                font-weight: 500;
            }
            a:hover{
                color:var(--primary-color)!important;
            }
        }

        li:nth-child(8),li:last-child{
            border-bottom:0px;
            display:inline-block;
            margin-right:10px;
        }
    
    }   
}

.events-filter {
	width: 100%;
	margin: .75rem 0 2rem;
	margin-bottom: 1rem !important;
	border: 1px solid #d5d9dc;
	background: #fff;
}

.tribe-events .tribe-events-calendar-month {
	background-color: var(--light-color);
}

.tribe-events .tribe-events-calendar-month__header-column-title {
	padding: 1rem 1rem 0 1rem;
	font-weight: 700;
}

.events-filter__summary {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.25rem;
	padding: .75rem 1rem !important;
	color: var(--primary-color);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.events-filter__summary::-webkit-details-marker {
	display: none;
}

.events-filter__summary:hover {
	background: var(--light-color);
}

.events-filter__summary:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: -2px;
}

.events-filter__summary-meta {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
}

.events-filter__count {
	padding: .15rem .55rem !important;
	border-radius: 999px;
	background: var(--primary-color);
	color: #fff;
	font-size: .75rem;
	font-weight: 500;
}

.events-filter__chevron--open,
.events-filter__panel[open] .events-filter__chevron--closed {
	display: none;
}

.events-filter__panel[open] .events-filter__chevron--open {
	display: inline-block;
}

.events-filter__form {
	padding: 1rem !important;
	border-top: 1px solid #d5d9dc !important;
}

.events-filter__form fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.events-filter__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: .5rem;
}

.events-filter__option {
	display: flex;
	align-items: center;
	gap: .55rem;
	min-height: 2.5rem;
	margin: 0 !important;
	padding: .45rem .65rem !important;
	border: 1px solid #d5d9dc !important;
	background: #fff !important;
	color: var(--black-color) !important;
	font-size: .85rem;
	line-height: 1.25;
	cursor: pointer;
}

.events-filter__option:hover {
	border-color: var(--primary-color);
	background: var(--light-color);
}

.events-filter__option--all {
	font-weight: 600;
	text-transform: uppercase;
}

.events-filter__option:has(input:checked) {
	border-color: var(--primary-color);
	background: var(--light-color);
	color: var(--primary-color);
	font-weight: 600;
}

.events-filter__option input {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--primary-color);
}

.events-filter__option:focus-within {
	outline: 2px solid var(--primary-color);
	outline-offset: 1px;
}

.events-filter__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	margin-top: 1rem !important;
}

.tribe-events .tribe-events-c-search__button,
.tribe-events .events-filter__submit {
	border-color: var(--primary-color) !important;
	background-color: var(--primary-color) !important;
	color: #fff !important;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .events-filter__submit:hover {
	border-color: color-mix(in srgb, var(--primary-color) 82%, #000) !important;
	background-color: color-mix(in srgb, var(--primary-color) 82%, #000) !important;
}

.tribe-events .tribe-events-c-search__button:active,
.tribe-events .events-filter__submit:active {
	border-color: color-mix(in srgb, var(--primary-color) 68%, #000) !important;
	background-color: color-mix(in srgb, var(--primary-color) 68%, #000) !important;
}

.tribe-events .tribe-events-c-search__button:focus-visible,
.tribe-events .events-filter__submit:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
	box-shadow: 0 0 0 3px var(--primary-color);
}

.tribe-events .tribe-events-c-search__button:disabled,
.tribe-events .events-filter__submit:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.events-filter__clear {
	color: var(--primary-color) !important;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

@media screen and (max-width: 575px) {
	.events-filter__options {
		grid-template-columns: 1fr;
	}
}

.tribe-events-calendar-list > h2:not(:first-of-type) {
    margin-top: 2rem;
}

.tribe-events-calendar-list > .event-card:has(+ h2:not(:first-of-type)) {
    border-bottom: none !important;
}

.sub-menu {
	background-color: white;
}

.sub-menu > li {
	padding: 3px 6px;
}

/*
 * Keep desktop dropdowns flush with their parent item. A top offset greater
 * than 100% creates a dead zone that closes the menu while the pointer crosses
 * from the parent link to its submenu.
 */
@media screen and (min-width: 992px) {
	.main-navigation #primary-menu .sub-menu {
		top: 100%;
		flex-direction: column;
	}

	.main-navigation #primary-menu li:focus-within > .sub-menu {
		left: auto;
	}
}

/* Match the header's Bootstrap lg / hamburger-menu breakpoint. */
.detail-akce .banner-wrapper.event-detail-banner {
	min-height: 0;
}

.event-detail-image,
.event-detail-image__img {
	display: block;
	width: 100%;
}

.event-detail-image__img {
	height: auto;
}

@media (min-width: 992px) {
	.detail-akce .banner-wrapper.event-detail-banner {
		min-height: 350px;
		background-image: var(--event-detail-background);
	}

	.event-detail-image {
		display: none;
	}
}
