/*
 Theme Name:   Stavařská rodina
 Description:  Stavařská rodina - UI by @NAK
 Author:       @NAK
 Version:      1.0.0
 License:      Commercial
 Text Domain:  stavarskarodina
*/

/** OBSAH
 *  0 - VARIABLES
 * 	1 - TYPOGRAPHY
 * 	2 - GRID
 * 	3 - GENERAL PARTS
 * 	4 - TEMPLATE PARTS
 * 	5 - MEDIA
 *  6 - ANIMACE
 */

/* 0 - VARIABLES */

:root {
	/* Hlavni barvy */
	--red: #FFBABA;
    --green: #9CFFA6;
	--lile: #EAB0FE;
	--orange: #FFD9A6;
	--blue: #007AFF;
	--grey: #E2E7F0;
	--white: #FFFFFF;
	/* Base */
	--base-100: #F7F9FC;
	--base-200: #EDF0F7;
	/* Backdrop */
	--background: #FBF9F7;
	--highlight: #F3EBE4;
	/* Typografie */
    --heading: #1A202C;
    --text: #717D96;	
	/* Grid */
	--grid-sm: 1213px;
	--grid-md: 1528px;
	--grid-lg: 1706px;
	/* Efekty */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--shadow: 0px 1px 3px 0px #2D364821;
	--shadow-hover: 0px 4px 10px 0px #2D364840;
}

:focus, :focus-within {
	outline-color: var(--lile);
}
::selection {
    background: var(--highlight);
}
::placeholder {
	color: var(--text);
}

/* HTML */
html {
	-webkit-scroll-behavior: smooth;
    scroll-behavior: smooth;
	font-size: 16px;
	background-color: var(--background);
}
html #wpadminbar {
	position: fixed!important;
}
.screen-reader-text {
	display: none!important;
}

/* 1 - TYPOGRAPHY */

/* Inter */
@font-face {
    font-family: Inter;
	font-weight: 100 900;
	font-stretch: 75% 125%;
	font-display: swap;
    src: url(assets/fonts/Inter.ttf) format("truetype");  
}

/* Text */
body {
	margin: 0;
    font-family: Inter, sans-serif;
	font-size: 1.2rem;
	line-height: 1.5;	
    font-weight: 400;
	color: var(--text);
}
input, textarea, select, button, .gm-style {
	font-family: Inter, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	line-height: 1.3;
    font-weight: 700;
	color: var(--heading);
}
h1 {
    margin-bottom: 20px;
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	line-height: 1;
	letter-spacing: calc(-0.04 * 1em);
}
h1.hero {
	font-size: clamp(2.75rem, 8vw, 6rem);
}
h2, #user h1 {
    margin-bottom: 16px;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	letter-spacing: calc(-0.04 * 1em);
}
#user h1 {
	margin-bottom: 40px;
}
h3 {
    margin-bottom: 8px;
	font-size: 1.375rem;
}
h4 {
	margin-bottom: 6px;
	font-size: 1.25rem;
}
h5 {
	margin-bottom: 4px;
	font-size: 1.125rem;
}
h6 {
	margin-bottom: 2px;
	font-size: 1rem;
}
p {
	margin: 0;
}
b {
	font-weight: 400;
	color: var(--heading);
}
strong {
	font-weight: 600;
}
small, label, .copyright, .breadcrumb, .tag {
	font-size: 0.875rem;
	line-height: 1.5;
	font-weight: 400;
}
label {
	margin-bottom: 4px;
	display: block;
	color: var(--heading);
}
a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s linear;
}

/* Tag */
.tagy {
	flex-wrap: wrap;
	gap: 8px;
}
.tagy > small {
	padding: 4px 8px;
	display: inline-block;
	background-color: var(--base-200);
	color: var(--heading);
	border-radius: var(--radius-sm);
}

/* Štítky */
.stitky {
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 8px;
}
.stitky > small {
	padding: 4px 8px;
	display: inline-block;
	background-color: var(--grey);
	color: var(--heading);
	border-radius: 4px;
}

/* Form */
.btn, button, input, textarea, select, .select2-selection--single, .wp-login-register {
	-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
	display: inline-flex;
	font-size: 1rem;
	line-height: 1.6;
	background-clip: padding-box;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
}
button {
	background-color: transparent;
}
input, textarea, select, .select2-selection--single {
	width: calc(100% - 58px);
	padding: 12px 12px 12px 46px;
	background-color: var(--white);
}
select, .select2-selection--single {
	width: 100%;
	min-height: 49px;
}

/* Btn */
.btn, input[type="button"], input[type="submit"], button[type="submit"], .wp-login-register {
	width: auto;
	padding: 12px 16px;
	font-weight: 600;
	background-color: var(--grey);
	color: var(--heading);
	opacity: 1;
	transition: opacity 0.2s linear;
}
.btn.warning {
	background-color: var(--red);
}
input[type="submit"], button[type="submit"] {
	justify-content: center;
	background-color: var(--green);
}
.btn:hover, input[type="button"]:hover, input[type="submit"]:hover, button[type="submit"]:hover, .wp-login-register:hover {
	opacity: 0.6;
}
.btn svg {
	width: 24px;
	height: 24px;
	margin-right: 8px;
	display: block;
	object-fit: contain;
}

/* Checkbox */
input[type="checkbox"], input[type="radio"], .select2-dropdown li {
	display: flex;
	flex-direction: row;
	align-items: center;
	color: var(--heading);
}
input[type="checkbox"], input[type="radio"], .select2-dropdown [aria-multiselectable="true"] li:before {
	content: "";
	width: 20px;
	height: 20px;
	margin-right: 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	color: var(--heading);
	border: 1px solid var(--heading);
	border-radius: 4px;
}
input[type="checkbox"], input[type="radio"], .select2-dropdown [aria-multiselectable="true"] li:before {
	min-width: 20px;
}
input[type="checkbox"]:checked, .select2-dropdown [aria-multiselectable="true"] li.select2-results__option--selected:before {
	content: "✓";
	accent-color: var(--lile);
	background-color: var(--lile);
}
input[type="checkbox"]:checked:before {
	content: "✓";
	position: absolute;
	left: 2px;
	z-index: 2;
}
.select2-dropdown li button {
	display: none;
}
.select2-dropdown .select2-results {
	width: 100%;
}

/* Date */
input[type="text"].daterange-input {
	background: var(--base-100) url('./assets/mediapicker/icons/calendar.svg') no-repeat 12px center;
}
.flatpickr-calendar {
	--flat-day: 36px;
	margin-top: 8px;
	padding: 32px 0;
	font-size: 1rem;
	border: 1px solid var(--grey);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}
.flatpickr-calendar:before, .flatpickr-calendar:after {
	display: none;
}
.flatpickr-rContainer {
	padding-top: 20px;
}
.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month {
	top: 28px;
	left: calc(100% - 60px);
}
.flatpickr-months .flatpickr-next-month.flatpickr-next-month {
	top: 28px;
}
.flatpickr-current-month {
	left: 16px;
	text-align: left;
}
.flatpickr-current-month span.cur-month,
.flatpickr-current-month input.cur-year {
	font-size: 1rem;
	font-weight: 600;
	color: var(--heading);
	pointer-events: none;
}
.flatpickr-weekdaycontainer {
	margin-left: 16px;
}
.dayContainer {
    width: calc((7 * var(--flat-day)) + 32px);
    min-width: calc((7 * var(--flat-day)) + 32px);
    max-width: calc((7 * var(--flat-day)) + 32px);
	margin-top: 20px;
	padding: 0 16px;
}
.dayContainer + .dayContainer {
	-webkit-box-shadow: none;
	box-shadow: none;
}
span.flatpickr-weekday, .flatpickr-day {
	width: var(--flat-day);
	max-width: var(--flat-day);
	height: var(--flat-day);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 1rem;
	font-weight: 400;
	background-color: transparent!important;
	color: var(--text)!important;
	border: none!important;
	-webkit-box-shadow: none!important;
    box-shadow: none!important;
}
.flatpickr-day:not(.flatpickr-disabled):not(.weekend-day) {
	color: var(--heading)!important;
}
.flatpickr-day.flatpickr-disabled {
	opacity: 0.3;
	pointer-events: none;
}
.flatpickr-day.selected {
	font-weight: 600;
	color: var(--heading);
}
.flatpickr-day:before {
	content: "";
	width: 28px;
	height: 28px;
	display: block;
	position: absolute;
	border-radius: 100%;
	z-index: -1;
}
.flatpickr-day:hover:before {
	background-color: var(--grey);
}
.flatpickr-day.today:before {
	border: 2px solid var(--lile);
}
.flatpickr-day.selected:before {
	background-color: var(--lile);
}
.flatpickr-day.selected, .flatpickr-day.inRange {
	background-color: #F3E7F7;
}
.flatpickr-day.selected:after,
.flatpickr-day.inRange:after {
	content: "";
	width: var(--flat-day);
	height: calc(var(--flat-day) + 1px);
	display: block;
	position: absolute;
	background-color: #F3E7F7;
	z-index: -2;
}
.flatpickr-day.startRange:after {
	border-radius: 18px 0 0 18px;
}
.flatpickr-day.endRange:after {
	border-radius: 0 18px 18px 0;
}
.flatpickr-day.startRange.endRange:after {
	display: none;
}

/* Select */
select, .select2-container .select2-search--inline .select2-search__field {
	width: 100%!important;
	height: 48px;
	margin-top: 0;
	margin-left: 0;
	padding: 11px 52px 11px 48px;
	white-space: nowrap;
}
.select2:after, #registerform .typ:after {
	content: "";
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
	bottom: 12px;
	right: 12px;
    background-image: url(./assets/mediapicker/icons/arrow-down.svg);
    pointer-events: none;
}
.select2-container {
	min-width: 100%;
}
.select2-container--focus:after {
	transform: rotate(180deg);
}
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container .select2-selection--multiple .select2-selection__rendered {
	max-width: calc(100% - 100px);
	margin: 12px 52px 12px 48px;
	display: flex;
	flex-direction: row;
	gap: 8px;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container .select2-selection--multiple .select2-selection__rendered span {
	max-width: 85px;
	padding: 0;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.select2-container .select2-selection--multiple .select2-selection__rendered li:not(:first-child) span {
	max-width: 20px;
}
.select2 button {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
}
.select2-container .select2-selection--multiple .select2-selection__rendered button {
	display: none;
}
.select2 button > span {
	width: 24px;
	height: 24px;
	display: block;
	font-size: 2rem;
	line-height: 0.65;
	font-weight: 200;
	background-color: var(--base-100);
}
.select2-dropdown {
	margin-top: 40px;
	padding: 24px 16px;
	display: flex;
	flex-direction: row;
	gap: 16px;
	border: 1px solid var(--grey);
	border-radius: var(--radius-sm)!important;
	box-shadow: var(--shadow);
}
.select2-dropdown li {
	padding: 8px 12px;
	border-radius: var(--radius-sm);
}
.select2-dropdown .select2-results__option--highlighted {
	background-color: var(--lile);
}

/* Tags */
.selected-tags {
	max-width: var(--grid-lg);
	margin: 65px auto 0;
	gap: 8px;
}
.selected-tags > span {
	padding: 8px 16px;
	display: flex;
	flex-direction: row;
	align-items: center;
	background-color: var(--white);
	color: var(--heading);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}
.selected-tags > span button {
	width: 16px;
	height: 16px;
	margin-left: 8px;
	font-size: 1.25rem;
	line-height: 0.7;
	font-weight: 300;
}

/* Fav */
.fav {
	width: 36px;
	height: 34px;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 16px;
	right: 16px;
}
.fav.add {
	background: url('./assets/ui/fav-empty.svg') no-repeat center / contain;
}
.fav.add:hover, .fav.remove {
	background: url('./assets/ui/fav-filled.svg') no-repeat center / contain;
}
.fav.remove:hover {
	background: var(--red) url('./assets/mediapicker/ui/cancel.svg') no-repeat center / contain;
}

/* Icon */
.icon {
	width: 36px;
    height: 34px;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 16px;
    left: 16px;	
	border-radius: var(--radius-sm);
}
.zamek {
	background: var(--orange) url(./assets/mediapicker/icons/square-lock.svg) no-repeat center;
}
.prihlaseni {
	background: var(--background) url(./assets/mediapicker/icons/paint-brush.svg) no-repeat center;
}
.zamek + .prihlaseni {
	top: 56px;
}

/* Img */
img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* 2 - FLEXBOX GRID */

/* Section */
main {
	margin: 0 24px;
}
main > section {
	max-width: var(--grid-md);
	margin: 75px auto 0;
	gap: 34px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}
main > section:has(.ilustrace), main > section:has(.obrazek) {
	align-items: center;
}
main > section.aligned {
	align-items: flex-start;
}
.search main > section {
	max-width: var(--grid-lg);
}
main > section > * {
	width: 100%;
	position: relative;
	z-index: 2;
}
main > section > div > div + div {
	margin-top: 48px;
}
hr {
	max-width: var(--grid-md);
	margin: 64px auto;
	color: transparent;
	border: none;
	border-top: 1px solid var(--grey);
}
hr + hr {
	display: none;
}

/* Flexbox */
.flex-col, .flex-grid {
	display: flex;
	flex-direction: column;
}
.flex-row {
	display: flex;
	flex-direction: row;
}
main .flex-grid {
	gap: 32px;
}
main .flex-grid > * {
	width: 100%;
}

/* 3 - GENERAL PARTS */

/* Alert */
.alert {
	padding: 24px;
	text-align: center;
	background-color: var(--red);
	color: var(--heading);
}

/* Toggle */
.toggle {
	width: 56px;
	min-width: 56px;
	height: 48px;
	border-radius: var(--radius-sm);
	cursor: pointer;
}
#users {
	background: var(--green) url(./assets/mediapicker/icons/symbol-heart.svg) no-repeat center;
}
#burger {
	background: var(--lile) url(./assets/mediapicker/ui/menu.svg) no-repeat center;
}
#filter {
	background: var(--base-100) url(./assets/mediapicker/ui/filter.svg) no-repeat center;
}
#prev {
	background: var(--green) url(./assets/mediapicker/icons/arrow-left.svg) no-repeat center;
}
#next {
	background: var(--green) url(./assets/mediapicker/icons/arrow-right.svg) no-repeat center;
}
.close {
	margin: 0 0 24px auto;
	background: var(--red) url(./assets/mediapicker/ui/cancel.svg) no-repeat center;
}
.edit {
	background: var(--green) url(./assets/mediapicker/icons/edit.svg) no-repeat center;
}
.save {
	background: var(--green) url(./assets/mediapicker/icons/symbol-check.svg) no-repeat center;
}
.trash {
	background: var(--red) url(./assets/mediapicker/ui/delete.svg) no-repeat center;
}

/* Link */
.link {
	font-weight: 600;
	text-decoration: none;
}

/* Logo */
.logo svg {
	width: clamp(148px, 10vw + 90px, 200px);
	height: auto;
	object-fit: contain;
}

/* Menu */
.menu, .sub-menu {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
}
.menu li {
	position: relative;
}
nav .menu a {
	white-space: nowrap;
}
.menu li:not(.current-menu-item) a:not(.btn):hover {
	color: var(--lile);
}
.sub-menu {
	display: none;
	position: absolute!important;
	z-index: 9;
}
.menu .menu-item-has-children:hover > .sub-menu {
	display: block;
}

/* Header */
header {
	padding: 44px 0 24px;
	border-bottom: 1px solid var(--grey);
}
header .flex-row {
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px;
}
header > .flex-row {
	max-width: var(--grid-lg);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
}
header > .flex-row nav {
	width: calc(100% - 48px);
	display: none;
	position: absolute;
	top: 150px;
	z-index: 9;
}
header nav .menu > li > a {
	color: var(--heading);
}
header .navs {
	padding-bottom: 16px;
}

/* Footer */
footer {
	padding: 62px 0 24px;
	border-top: 1px solid var(--grey);
}
footer b {
	margin-bottom: 36px;
	display: block;
}
footer .flex-grid {
	max-width: var(--grid-lg);
	margin: 0 auto;
	padding: 0 24px;
	justify-content: space-between;
	align-items: flex-start;
}
footer .logo {
	margin-bottom: 50px;
	display: block;
}
footer .menu {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
footer .partneri a {
	align-items: flex-start;
}
footer .partneri img {
	width: auto;
	max-height: 40px;
	margin-top: 8px;
	object-fit: contain;
}

/* Copyright */
.copyright {
	padding: 48px 0 24px;
	border-top: 1px solid var(--grey);
}
.copyright .flex-grid {
	max-width: var(--grid-lg);
	margin: 0 auto;
	padding: 0 24px;
	justify-content: space-between;
}

/* Socials */
.socials {
	gap: 21px;
}
.socials a {
	width: 44px;
	height: 44px;
	justify-content: center;
	align-items: center;
	background-color: var(--heading);
	border-radius: 6px;
}
.socials svg {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.socials svg path {
	stroke: var(--white);
}

/* Breadcrumb */
.breadcrumb {
	max-width: var(--grid-md);
	margin: 44px auto 0;
	align-items: center;
}
.breadcrumb a:hover {
	color: var(--lile);
}
.breadcrumb .sep {
	width: 14px;
	height: 14px;
	margin: 0 6px;
	display: inline-block;
	background:url(./assets/mediapicker/icons/arrow-right.svg) no-repeat center / contain;
}
.breadcrumb .breadcrumb-home {
	display: flex;
	flex-direction: row;
	align-items: center;
}
.breadcrumb .breadcrumb-home:before {
	content: "";
	width: 16px;
	height: 16px;
	margin-right: 8px;
	display: inline-block;
	background: url(./assets/mediapicker/ui/home.svg) no-repeat center / contain;
}
.breadcrumb .breadcrumb-last {
	color: var(--heading);
}

/* Pagination */
.nav-links {
	max-width: var(--grid-sm);
	margin: 75px auto 0;
	padding: 24px 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 8px;
	background-color: var(--highlight);
	border-radius: var(--radius-sm);
}
.nav-links > * {
	width: 36px;
	height: 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: var(--heading);
	transition: color 0.2s linear;
}
.nav-links > a:hover {
	color: var(--lile);
}
.nav-links > .current {
	background-color: var(--white);
	border-radius: 4px;
	box-shadow: var(--shadow);
}

/* Login */
.login {
	min-height: 100vh;
	margin: 0 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 0.75rem;
}
.login input + p {
	font-size: 0.75rem;
}
.login > * {
	width: 360px;
	max-width: 100%;
}
.login a {
	color: var(--blue);
}
.login a:hover {
	text-decoration: underline;
}
.login .link {
	margin-top: 4px;
	text-align: center;
}
.login .logo {
	margin-bottom: 16px;
}
.login .notice {
	margin: 16px 0;
}
.login .text {
	order: -2;
}
.login form {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
}
.login form > * {
	width: 100%;
	position: relative;
}
.login form > .custom-lost-password {
	color: var(--blue);
}
.login form > .sm, .login form > .forgetmenot, .login form > .custom-lost-password {
	width: calc(50% - 8px);
}
.login form input:not([type="submit"]), .login form select, .login form textarea {
	width: calc(100% - 24px);
	padding: 12px;
	background: #F2F2F2;
	border: 1px solid #E5E5E5;
}
.login form input[type="checkbox"] {
	width: 20px;
	min-width: 20px;
	padding: 0;
}
.login form input[type="submit"] {
	width: 100%;
	background-color: var(--green);
}
.login form .jmeno, .login form .prijmeni {
	order: -1;
}
.login .wp-login-lost-password, .login .wp-login-logo,
.login #rememberme:before, .login #backtoblog,
#registerform > p:first-child, .login #caps-warning,
.login-action-checkemail .partner-register {
	display: none;
}
.login #nav {
	font-size: 0;
	text-align: center;
}
.login #nav .wp-login-register {
	width: calc(100% - 32px);
	margin: 12px 0;
	justify-content: center;
	background-color: var(--lile);
	color: var(--heading);
}
.login #nav .wp-login-register:hover {
	text-decoration: none;
}
.login .forgetmenot {
	display: flex;
	flex-direction: row;
	position: relative;
}
.login .forgetmenot:before {
	content: "";
	width: 16px;
	height: 16px;
	display: block;
	position: absolute;
	top: 2px;
	left: 2px;
	background-color: var(--white);
	border-radius: 100%;
	box-shadow: var(--shadow);
	transition: left 0.25s linear;
	z-index: 2;
}
.login .forgetmenot:has(input:checked):before {
	left: 22px;
}
.login #rememberme {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	width: 40px;
	height: 20px;
	margin: 0 8px 0 0;
	padding: 0;
	border-radius: 36.5px;
	cursor: pointer;
}
.login #rememberme:checked {
	background-color: var(--green);
}
.login .submit {
	margin-bottom: 12px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--grey);
}
.login .wp-pwd {
	position: relative;
}
.login .wp-pwd button {
	width: 24px;
	height: 24px;
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent url(./assets/mediapicker/icons/symbol-eye.svg) no-repeat center;
}
.login #nsl-custom-login-form-main div {
	padding: 0;
}
.login #nsl-custom-login-form-main .nsl-container-buttons a {
	margin: 0 11px;
}
.login #nsl-custom-login-form-main .nsl-button-icon {
	margin: 0;
	padding: 14px 39px;
	border: 1px solid var(--grey);
	box-shadow: none;
}
.login #nsl-custom-login-form-main .nsl-button-icon svg {
	width: 26px;
	height: 26px;
}

/* Modal */
.modal {
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 999;
}
.modal > * {
	padding: 48px;
	max-width: var(--grid-sm);
	background-color: var(--highlight);
	border-radius: var(--radius-lg);
}
.modal img {
	max-width: 80vw;
	max-height: 80vh;
	object-fit: contain;
}
.modal nav {
	gap: 8px;
	position: absolute;
}

/* Archivy */
.blog h1, .archive h1 {
	margin-bottom: 60px;
}

/* 4 - TEMPLATE PARTS */

/* Align */
.left {
	margin-right: auto;
	justify-content: flex-start;
	text-align: left;
}
.center {
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
	text-align: center;
}
.right {
	margin-left: auto;
	justify-content: flex-end;
	text-align: right;
}

/* Akce */
.akce {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
	gap: 32px;	
}
.akce .box .flex-col {
	gap: 8px;
}

/* Box */
.box, .sub-menu {
	position: relative;
	background-color: var(--white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s linear, transform 0.2s linear;
}
a.box:hover {
	box-shadow: var(--shadow-hover);
	transform: translate( 0, -3px);
}
.box img:not(.ikona) {
	aspect-ratio: 16 / 9;
 	border-radius: var(--radius-md) var(--radius-md) 0 0;
	object-position: top left;
}
.box > div {
	padding: 16px;
	align-items: flex-start;
}

/* CTA */
.cta {
	width: calc(100% - 48px);
	max-width: var(--grid-sm);
	margin: 80px 24px 170px;
	padding: 48px 0 136px;
	justify-self: center;
	position: relative;
	text-align: center;
	background-color: var(--highlight);
	border-radius: var(--radius-md);
}
.cta > .flex-col {
	padding: 0 24px;
	justify-content: center;
	align-items: center;
}
.cta > .flex-col > * {
	max-width: 620px;
}
.cta .ilustrace {
	position: absolute;
	bottom: 0;
	transform: translate(0, 50%);
}
.cta .ilustrace svg {
	width: clamp(179px, 13vw + 130px, 311px);
}
.cta .formular form {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.cta .formular form input[type="email"] {
	background: var(--white) url('./assets/mediapicker/icons/mail-open.svg') no-repeat 12px center;
}

/* Dlazdice */
.dlazdice {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(311px, 1fr));
	gap: 52px;	
}
.dlazdice .box > div {
	padding: 35px 40px;
}

/* Featured */
.featured img {
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-lg);
}

/* Filtrace */
.filtrace {
	max-width: var(--grid-lg);
	margin: 32px auto 0;
	position: relative;
	z-index: 5;
}
.filtrace label {
	position: relative;
}
.filtrace > form {
	padding: 16px;
	align-items: flex-end;
	gap: 8px;
}
.filtrace > form > .filtr-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
	gap: 8px;
}
.filtrace > form > .filtr-grid > * {
	display: none;
}
.filtrace > form > .filtr-grid > *:first-child {
	display: block;
}
.filtrace textarea, .filtrace .select2-selection--single {
	background: var(--base-100);
}
.filtrace input[type="search"] {
	width: 100%;
	background: var(--base-100) url('./assets/mediapicker/ui/search.svg') no-repeat 12px center;
}
.filtrace input#datum {
	background: var(--base-100) url('./assets/mediapicker/icons/calendar.svg') no-repeat 12px center;
}
.filtrace input#vek {
	background: var(--base-100) url('./assets/mediapicker/icons/user-multiple.svg') no-repeat 12px center;
}
.filtrace input[type="number"] {
	appearance: none;
	width: 16px;
	padding: 0;
	text-align: center;
	background-color: transparent;
	border: none;
}
.filtrace > form > .filtr-grid > *.controls {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 8px;
}
.filtrace input[type="submit"], .cta input[type="submit"], .seznam button[type="submit"] {
	width: 48px;
	min-width: 48px;
	height: 48px;
	font-size: 0;
	background: var(--green) url('./assets/mediapicker/icons/arrow-right.svg') no-repeat center;
}

/* Filtrace - Range */
.range {
	width: 366px;
	max-width: 98vw;
	margin-top: 8px;
	padding: 16px;
	display: none;
	position: absolute;
	right: 0;
	border: 1px solid var(--grey);
	z-index: 5;
}
.range.open {
	display: block;
	-webkit-animation: fpFadeInDown 300ms cubic-bezier(.23, 1, .32, 1);
	animation: fpFadeInDown 300ms cubic-bezier(.23, 1, .32, 1);
}
.range input {
	font-size: inherit;
}
.range.box > div {
	padding: 0;
	position: relative;
}
.range .range-track {
	height: 2px;
	margin-top: 17px;
	background-color: var(--grey);
}
.range .range-track.selected {
	margin-top: -2px;
	position: absolute;
	background-color: var(--lile);
}
.range .range-handle {
	width: 20px;
	height: 20px;
	position: absolute;
	top: 30px;
	background-color: var(--lile);
	border-radius: 100%;
	box-shadow: var(--shadow);
	transform: translateX(-50%);
	cursor: pointer;
	z-index: 5;
}
.range .range-markers {
	margin-top: -6px;
	justify-content: space-between;
	pointer-events: none;
}
.range .range-markers > span {
	width: 1px;
	height: 12px;
	background-color: var(--grey);
}
.range .range-labels {
	margin-top: 12px;
	justify-content: space-between;
	align-items: center;
	color: var(--heading);
}
.range .range-labels > * {
	width: 16px;
	text-align: left;
}

/* Icon */
.informace li span {
	padding-left: 34px;
	position: relative;
}
.filtrace select + span:before, .informace li span:before {
	content: "";
	width: 24px;
	height: 24px;
	display: block;
	position: absolute;
	top: 12px;
	left: 12px;
}
.informace li span:before {
	top: 0;
	left: 0;
}
.misto > span:before {
	background-image: url(./assets/mediapicker/icons/maps.svg);
}
.datum > span:before {
	background-image: url(./assets/mediapicker/icons/calendar.svg);
}
.typ > span:before {
	background-image: url(./assets/mediapicker/icons/package-open.svg);
}
.forma > span:before {
	background-image: url(./assets/mediapicker/icons/office-task.svg);
}
.urceni > span:before {
	background-image: url(./assets/mediapicker/icons/game-target.svg);
}
.vek > span:before {
	background-image: url(./assets/mediapicker/icons/user-multiple.svg);
}
.poradatel > span:before {
	background-image: url(./assets/mediapicker/icons/building-city.svg);
}
.cena > span:before {
	background-image: url(./assets/mediapicker/icons/money-note.svg);
}
.frekvence > span:before {
	background-image: url(./assets/mediapicker/icons/symbol-time.svg);
}

/* Formular */
.formular form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.formular form input[type="submit"] {
	width: 100%;
	background-color: var(--green);
}
.formular .wpcf7-form-control-wrap {
	position: relative;
}
.formular .wpcf7-not-valid-tip {
	color: var(--red);
}
.formular .wpcf7-spinner {
	display: none;
}
.formular .wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 24px;
	text-align: center;
	background-color: var(--orange);
	color: var(--heading);
	border: none!important;
	border-radius: var(--radius-sm);
}
.formular .wpcf7 form.sent .wpcf7-response-output {
	background-color: var(--green);
}
.formular .wpcf7 form.failed .wpcf7-response-output {
	background-color: var(--red);
}
form#preference {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(398px, 1fr));
	gap: 30px;
}

/* Galerie */
.galerie {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(418px, 1fr));
	gap: 30px;
}
.galerie a {
	display: block;
	position: relative;
	line-height: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.galerie a:after {
	content: "";
	width: 0;
	height: 0;
	position: absolute;
	bottom: 0;
	right: 0;
	pointer-events: none;
	transition: width 0.2s linear, height 0.2s linear;
}
.galerie a:hover:after {
	width: 60px;
	height: 60px;
	background: url(./assets/mediapicker/ui/search.svg) no-repeat 12px center;
}
.galerie img {
	aspect-ratio: 16 / 9;
	opacity: 1;
	transform: scale(1.0);
	transition: opacity 0.2s linear, transform 0.2s linear;
}
.galerie a:hover img {
	opacity: 0.5;
	transform: scale(1.1);
}

/* Ikony */
.ikona {
	width: 76px;
	height: 76px;
	margin-bottom: 18px;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: var(--radius-sm);
}
.ikona svg {
	width: 55%;
	height: 55%;
	object-fit: contain;
}
.ikona svg * {
	stroke-width: 1;
}
.ikony .ikona {
	position: absolute;
}
.ikony .ikona:nth-of-type(1) {
	width: clamp(39px, 5vw, 96px);
	height: clamp(39px, 5vw, 96px);
	top: 30%;
	left: 0;
}
.ikony .ikona:nth-of-type(2) {
	width: clamp(44px, 6vw, 108px);
	height: clamp(44px, 6vw, 108px);
	top: 45%;
	right: 0;
}
.ikony .ikona:nth-of-type(3) {
	width: clamp(47px, 7vw, 114px);
	height: clamp(47px, 7vw, 114px);
	bottom: 0;
	left: 20%;
}

/* Ilustrace */
.ilustrace {
	position: relative;
}
.ilustrace > svg {
	width: 100%;
	height: auto;
}

/* Informace */
.informace {
	margin: 24px 0;
	padding: 24px 0;
	gap: 24px;
	border-top: 1px solid var(--grey);
	border-bottom: 1px solid var(--grey);
}
.informace li {
	justify-content: space-between;
}

/* Mapa */
.mapa {
	width: 100%;
	min-width: 300px;
	min-height: 424px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
}
*:not(.akce) + .mapa {
	margin-top: 48px;
}
main .mapa {
	min-height: 724px;
}
.mapa .gm-style-iw-chr {
	display: none;
}
.mapa .gm-style .gm-style-iw {
	margin-top: 29px;
	padding-left: 16px;
	font-size: 1rem;
	color: var(--heading);
	border: 1px solid var(--heading);
	border-radius: 99px;
	box-shadow: var(--shadow);
	transition: margin 0.2s linear;
}
.mapa .gm-style .gm-style-iw:hover {
	margin-top: 32px;
}
.mapa .gm-style .gm-style-iw-d a {
	max-width: 320px;
	padding-top: 10px;
	display: block;
	text-align: center;
}
.mapa .gm-style .gm-style-iw-d strong {
	font-weight: 400;
}
.mapa .gm-style .gm-style-iw-tc {
	z-index: -1;
}
.gm-style .gm-style-iw-tc::after {
	width: 50px;
	height: 24px;
	margin-top: 29px;
	top: -6px;
	left: -12.5px;
	box-shadow: var(--shadow);
	transition: background 0.2s linear;
}
.mapa .gm-style-iw:hover + .gm-style-iw-tc::after {
	background: var(--lile);
}
.mapa .gmnoprint > div {
	border-radius: 99px;
	box-shadow: var(--shadow);
}
.mapa .gmnoprint > div button {
	background-color: transparent!important;
}

/* Nadpis */
.nadpis {
	max-width: var(--grid-sm);
}

/* Info */
.response, .notice-error {
	max-width: var(--grid-md);
	margin: 48px auto;
	padding: 24px;
	text-align: center;
	color: var(--heading);
	border-radius: var(--radius-sm);
}
.response.info {
	background-color: var(--white);
}
.response.alert, .notice-error {
	background-color: var(--red);
}
.response.success {
	background-color: var(--green);
}
.notice-error {
	text-align: left;
}

/* Obrazek */
.obrazek {
	margin-bottom: 75px;
}
.obrazek.ikony {
	padding: 0 16px;
}
.obrazek > img, .obrazek > picture > img  {
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-lg);
}
.obrazek > .dekor > img {
	width: 234px;
	height: 234px;
	position: absolute;
	right: 37px;
	bottom: -37px;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-sm);
	outline: 6px solid var(--white);
}

/* Pes */
.pes {
	gap: 16px;
}
.pes input {
	background-color: var(--base-100);
}
.pes .box > .flex-row {
	justify-content: space-between;
	align-items: center;
}
.pes .heading {
	justify-content: flex-start;
	align-items: flex-start;	
	gap: 8px;
}
.pes .stitky {
	margin: 16px 0 0;
}
.pes .time {
	margin-left: 16px;
	padding: 4px 8px 4px 30px;
	white-space: nowrap;
	background: var(--green) url(./assets/mediapicker/icons/symbol-time.svg) no-repeat 8px center / 14px;
	color: var(--heading);
	border-radius: 4px;
}
#add_watchdog > .grid {
	margin-bottom: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(283px, 1fr));
	gap: 32px;		
}
#add_watchdog > .grid > div {
	position: relative;
}
#add_watchdog > .grid .controls {
	align-items: flex-end;
}
#add_watchdog .select2-container .select2-selection--single .select2-selection__rendered {
	max-width: 100%;
}

/* Plakát */
.plakat img {
	max-height: 70vh;
	object-fit: contain;
}

/* Pocitadlo */
@keyframes slide {
	0%   { width: 0; right: 10px; }
	1%  { width: 70px; right: 10px; }
	10%  { width: 70px; right: calc(100% - 16px); }
	90%  { width: 70px; right: calc(100% - 16px); }
	100% { width: 0; right: 10px; }
}
.pocitadlo {
	width: 74px;
	height: 53px;
	justify-content: flex-end;
	align-items: center;
	position: absolute;
	top: -30px;
	right: 24px;
	background: url('./assets/ui/frame.svg') no-repeat center / contain;
	color: var(--heading);
	border-radius: 17px 16px 15px 17px;
	box-shadow: 0px 0px 12px 0px #2D364840;
}
.pocitadlo:before, .pocitadlo:after {
	content: "";
	width: 3.4px;
	height: 37px;
	position: absolute;
	top: -28px;
	background: var(--heading);
	border-radius: 50px;
	z-index: 2;
}
.pocitadlo:before {
	left: 18px;
}
.pocitadlo:after {
	right: 18px;
}
.pocitadlo > strong {
	font-size: 1.75rem;
	font-weight: 800;
}
.pocitadlo > strong:before {
	content: "";
	width: 70px;
	height: 3.4px;
	position: absolute;
	top: 14px;
	left: 1.5px;
	background: var(--heading);
	z-index: 2;
}
.pocitadlo > span {
	width: 0;
	height: 26px;
	padding: 11px 28px 11px 4px;
	display: block;
	position: absolute;
	right: 10px;
	bottom: 2px;
	font-size: 0.75rem;
	line-height: 1;
	font-weight: 600;
	text-align: right;
	background: var(--lile);
	border-radius: 16px 0 0 16px;
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: right 0.4s ease-out;
	animation: slide 4s ease-out 5s 1;
	z-index: -2;
}
.pocitadlo:hover > span {
	width: 70px;
	right: calc(100% - 16px);
	box-shadow: var(--shadow-hover);
	animation: none;
}

/* Prispevky */	
.prispevky {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(383px, 1fr));
	gap: 32px;	
}
.prispevky .tag {
	padding: 0 6px;
	display: inline-block;
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--lile);
	color: var(--heading);
	border-radius: var(--radius-sm);
}
.prispevky .tag.diy {
	background: var(--orange);
}
.prispevky small {
	margin-bottom: 8px;
	display: block;
}
.prispevky strong {
	align-items: center;
	position: absolute;
	bottom: 24px;
}
.prispevky strong:after {
	content: "";
	width: 16px;
	height: 16px;
	margin-left: 8px;
	display: block;
	background-image: url(./assets/mediapicker/icons/book-open.svg);
	background-size: contain;
	opacity: 0.8;
}
.prispevky .flex-col {
	margin-bottom: 32px;
}

/* Profil */
.profil-heading {
	justify-content: space-between;
	align-items: center;
}
.profil-heading .btn {
	background: var(--lile);
}
.profil {
	max-width: var(--grid-md);
	margin: 0 auto;
	gap: 24px;
}
.profil .tlacitka {
	grid-column: 1 / -1;
}
.profil input:not([type="submit"]):not([type="checkbox"]), .profil textarea {
	width: calc(100% - 24px);
	padding: 12px;
	background: #F2F2F2;
	border: 1px solid #E5E5E5;
}
.profil .tabs > * {
	cursor: pointer;
}
.profil .tabs > .tab-active {
	background: var(--lile);
}
.profil .tab {
	display: none;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px;
}
.profil .tab.tab-active {
	display: flex;
}
.profil .tab > * {
	width: 100%;
	display: block;
}
.profil .tab > .half {
	width: calc(50% - 12px);
}

/* Seznam */
.seznam, 
.seznam > .box > .flex-row, 
.seznam > .box > .flex-row > .flex-row {
	justify-content: space-between;
    gap: 24px;
}
.seznam .fav {
    width: 26px;
    height: 24px;
	top: 26px;
	left: 72px;
}
.seznam picture, .seznam img {
	max-width: 76px;
}
.seznam button[type="submit"] {
	align-self: center;
}

/* Text */
.text {
	margin-bottom: 24px;
	letter-spacing: calc(-0.01 * 1em);
}
.text a {
	text-decoration: underline;
}
.text p + p {
	margin-top: 24px;
}
.text ul {
	padding-left: 18px;
}
.text li + li {
	margin-top: 6px;
} 

/* Titulek */
.titulek {
	font-size: 1.25rem;
	font-weight: bold;
	text-transform: uppercase;
}

/* Tlacitka */
.tlacitka {
	gap: 8px;
}

/* Video */
.video .embed-container {
	height: 0;
    padding-bottom: 56.25%;
    padding-top: 30px;
    position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
}
.video .embed-container iframe {
	height: calc(100% - 30px);
	width: 100%;
    position: absolute;
    top: 0;
    left: 0;
	border-radius: var(--radius-lg);
}

/* 5 - MEDIA */

@media (min-width: 768px) {
	.box > div, .box > form {
		padding: 24px;
	}
	#users {
		display: none;
	}
	header #buttons {
		display: flex;
		flex-direction: row;
		position: static;
	}
	#filter {
		display: none;
	}
	.filtrace > form > .filtr-grid > *,
	.filtrace > form input[type="submit"] {
		display: block;
	}
	.obrazek.ikony {
		padding: 0 32px;
	}
}

@media (min-width: 1024px) {
	main > section, .flex-grid {
		flex-direction: row;
		flex-wrap: nowrap;
	}
	section.sekce-2:nth-child(odd) > div:nth-child(1),
	section.sekce-2:nth-child(even) > div:nth-child(2) {
		width: 45%;
	}
	section.sekce-2:nth-child(odd) > div:nth-child(2),
	section.sekce-2:nth-child(even) > div:nth-child(1) {
		width: 55%;
	}
	.copyright {
		padding: 29px 0 28px; 
	}
	.copyright .flex-grid {
		align-items: center;
	}
	.login {
		width: 50vw;
		margin-left: 50%;
	}
	.login:before {
		content: "";
		width: 50vw;
		height: 100%;
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		background-size: cover;
		background-position: bottom;
	}
}

@media (min-width: 1360px) {
	.page h1 + .text {
		font-size: 1.25rem;
	}
	.select2-container .select2-selection--single .select2-selection__rendered,
	.select2-container .select2-selection--multiple .select2-selection__rendered span {
	max-width: 105px;
	}
	main > section {
		gap: 130px;
	}
	#burger {
		display: none;
	}
	#filter {
		display: none;
	}
	header .logo {
		margin-right: 30px;
	}
	header nav .menu {
		display: flex;
		flex-direction: row;
	}
	header nav.box {
		padding-bottom: 24px;
		display: block;
		position: static;
		background-color: transparent;
		box-shadow: none;
	}
	header nav.box > * {
		padding: 0;
	}
	header nav.box .menu a {
		padding: 8px 12px;
	}
	header nav.box .menu .current-menu-item a {
		background-color: var(--white);
		border-radius: 4px;
		box-shadow: var(--shadow);
	}
	.copyright .menu {
		flex-direction: row;
		align-items: center;
	}
	.copyright .menu li + li {
		margin-left: 12px;
		padding-left: 12px;
		border-left: 1px solid var(--grey);
	}
	.cta {
		margin: 168px auto;
		padding-top: 167px;
		padding-bottom: 183px;
	}
	.cta .ilustrace {
		right: 0;
		transform: translate(25%, 25%);
	}
	.filtrace > form > .filtr-grid {
		width: calc(100% - 64px);
		gap: 32px;
	}
	.filtrace > form > .filtr-grid > div {
		position: relative;
	}
	.filtrace > form > .filtr-grid > div.controls {
		position: absolute;
		right: 24px;
		bottom: 24px;
	}
	.filtrace > form > .filtr-grid > div + div:not(.controls):before {
		content: "";
		width: 0;
		height: 100%;
		position: absolute;
		bottom: 0;
		left: -16px;
		border-right: 1px solid var(--grey);
	}
	#menu-menu-1 {
		min-width: 570px;
	}
}

@media (min-width: 1700px) {
	header .logo {
		margin-right: 60px;
	}
}

/* 6 - ANIMATIONS */

/* Fade-in */
.fade {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Keyframes */
@keyframes pulse {
	from { transform: scale(1.05); }
	to   { transform: scale(1); }
}