@font-face {
font-family: 'AvenirNext';
font-style: normal;
font-weight: 400;
src: local('Avenir Next LT Pro Condensed'), url('../fonts/AvenirNextLTPro-Cn.woff') format('woff');
}


@font-face {
font-family: 'AvenirNext';
font-style: normal;
font-weight: 600;
src: local('Avenir Next LT Pro Medium'), url('../fonts/AvenirNextLTPro-MediumCn.woff') format('woff');
}


@font-face {
font-family: 'AvenirNext';
font-style: normal;
font-weight: 800;
src: local('Avenir Next LT Pro Bold Condensed'), url('../fonts/AvenirNextLTPro-BoldCn.woff') format('woff');
}

* {
	box-sizing: border-box;
}

@supports not (display: grid) {
    body::before {
        content: 'Váš prohlížeč nepodporuje technologie použité na této stránce. Ta se proto nemusí zobrazit správně. Prosíme použijte jiný.';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 20px;
        background-color: red;
        color: black;
        margin: 0;
        text-align: center;
    }
}

body {
	width: 100%;
	min-height: 100vh;
	font-family: 'AvenirNext', sans-serif;
	color: #fff;
	margin: 0;
	padding: 0 0 0 20em;
	display: flex;
  flex-direction: row;
	align-items: center;
  background: linear-gradient(#111,#222);
}


div.sidebar {
    width: 20em;
    background: linear-gradient(#000, #111);
    padding: 2em 3em;
    display: flex;
		justify-content: space-between;
		flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
		overflow-x: auto;
}

div.header {
    display: none;
}

.logo {
	padding: 0 2em;
}

.logo > img {
    max-width: 10em;
}

nav {
	padding: 1em 0;
}

ul {
	padding: 0;
	list-style: none;
}

nav > ul > li {
    border-left: 5px solid transparent;
    padding-left: 10px;
}

nav > ul > li.active {
    border-left-color: #ab8351;
}

nav > ul > li > a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.75em;
    transition: padding-left 0.1s linear;
}

nav > ul > li.active > a {
    font-weight: 600;
}

nav > ul > li > a:hover {
    padding-left: 5px;
}

div.slogan > div {
    font-size: 2em;
    color: #ab8351;
    margin-bottom: -0.45em;
		text-transform: uppercase;
		/* text-shadow: 2px 2px 0px #000; */
		transition: all 0.4s;
		opacity: 1;
}

div.slogan > div.out {
    opacity: 0;
}

div.content {
		width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

div.content .bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.45;
    transition: opacity 1s linear;
		animation: slowlycomein 10s ease-in-out infinite alternate;
}

div.content .bg.out {
    opacity: 0;
}

@keyframes slowlycomein {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.05);
	}
}

div.left, div.right {
    width: 50%;
    padding: 2em;
}

h1, h2 {
    text-transform: uppercase;
    margin-bottom: 0;
}

h1 {
    color: #ab8351;
    font-size: 3.25em;
}

p.subtitle {
    font-size: 2em;
    text-align: left;
}

h2 {
    font-size: 2em;
}

p {
    margin-top: 0;
    font-size: 1.5em;
    /* text-align: justify; */
}

p > a {
	color: #fff;
	text-decoration: none;
	transition: color 0.12s;
}

p > a:hover {
	color: #ab8351;
}

a.web {
	color: #fff;
	font-size: 1.25em;
	text-decoration: none;
	transition: color 0.12s;
}

a.web::before {
	content: 'WEB: ';
	font-size: 1em;
	font-weight: 800;
	color: #fff;
	transition: color 0.12s;
}

a.web:hover::before {
	color: #fff;
}

a.web:hover {
	text-shadow: 0 0 0.75em #ab8351;
}



.swap {
    transform: scale(1);
    opacity: 1;
    transition: all 1s;
}

.swap.out {
    transform: scale(1.2);
    opacity: 0;
}


div.image-holder {
    width: 100%;
    perspective: 1000px;
}

div.image-holder > img {
    width: 90%;
    height: 90%;
		transform-origin: center center;
    transform: rotateY(-20deg);
    opacity: 1;
    border: 1em solid #ab8351;
    border-radius: 1.5em;
    transition: all 1s;
		cursor: pointer;
}

div.image-holder > img.out {
    transform: rotateY(-60deg);
    opacity: 0;
}

div.image-holder > .gallery-arrow {
		position: absolute;
		top: -15%;
		left: -15%;
		width: 30%;
		height: 30%;
		background-image: url('../assets/gallery-arrow.png');
		background-position: bottom right;
		background-size: contain;
		background-repeat: no-repeat;
		transition: all 0.5s;
}

img:hover + .gallery-arrow {
	transform-origin: bottom right;
	transform: translateX(10px) rotateZ(-15deg);
}

div.image-holder > .gallery-arrow.out {
	transform: translateY(-30vw);
	opacity: 0;
}

@media (max-width: 1023px) {
	div.content {
		flex-direction: column;
	}

	div.left, div.right {
		width: 100%;
		padding: 2em;
	}

	div.image-holder > img {
		border-width: 0.5em;
		width: 100%;
		transform: rotateY(0) scale(1);
	}

	div.image-holder > .gallery-arrow {
			top: -20%;
			left: 0;
	}
}

div.loader {
    position: fixed;
    top: 0;
    left: 0;
		right: 0;
		bottom: 0;
    transition: all 0.5s;
		background-color: rgba(0,0,0,0.9);
}

div.loader::before {
	content: '';
	position: absolute;
	top: calc(50% - 2.5em);
	left: calc(50% - 2.5em);
	width: 3em;
	height: 3em;
	border-radius: 3em;
	animation: spin 2s linear infinite;
	border: 1em solid #dddddd;
	border-top-color: #ab8351;
	border-bottom-color: #ab8351;
}

div.loader::after {
	content: 'Načítání';
	position: absolute;
	width: 100%;
	top: calc(50% + 5em);
	text-align: center;
	color: #999;
	animation: loading 1.5s infinite;
}

@keyframes loading {
	0% {
		content: 'Načítání';
	}
	25% {
		content: 'Načítání.';
	}
	50% {
		content: 'Načítání..';
	}
	75% {
		content: 'Načítání...';
	}
}

div.loader.out {
    transform: translateY(-100vh);
    opacity: 0;
}

@keyframes spin {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

/* w3schools menu bar */


.menu-toggle {
    display: inline-block;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 2.5em;
    height: 0.375em;
    background-color: #ab8351;
    margin: 0.375em 0;
    transition: 0.4s;
		transform-origin: center center;
}

/* Rotate first bar */
.in .bar1 {
    -webkit-transform: translateY(0.75em) rotate(-45deg);
    transform: translateY(0.75em) rotate(-45deg);
}

/* Fade out the second bar */
.in .bar2 {
    opacity: 0;
}

/* Rotate last bar */
.in .bar3 {
	-webkit-transform: translateY(-0.75em) rotate(45deg);
	transform: translateY(-0.75em) rotate(45deg);
}

@media (max-width: 1439px) {
	body {
		padding: 0;
	}

	div.sidebar {
		left: 100%;
		transition: transform 0.5s;
		z-index: 1;
	}

	div.sidebar.in {
		-webkit-transform: translateX(-20em);
		transform: translateX(-20em);
	}

	div.header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 2.625em;
		display: flex;
		justify-content: space-between;
		background: linear-gradient(rgba(0,0,0,0.8), rgba(16,16,16,0.8));
		padding: 0 0.5em;
		z-index: 2;
	}

	div.brand span {
		text-transform: uppercase;
		font-size: 2em;
	}

	div.brand span:nth-child(1) {
		font-weight: 400;
	}

	div.brand span:nth-child(2) {
		font-weight: 600;
	}

	div.brand span:nth-child(3) {
		font-weight: 800;
	}

	div.brand span:nth-child(4) {
		font-weight: 400;
		color: #ab8351;
		margin-left: 0.5em
	}

	.logo, .slogan {
		display: none;
	}

	.loader {
		position: fixed;
		top: 50%;
	}

}

@media (max-width: 444px) {
	div.brand span:nth-child(4) {
		display: none;
	}
}



/* modal gallery */

.gallery-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top left, rgba(171,131,81,0.9),rgba(65,45,25,0.9));
	z-index: 3;
	transition: all 0.3s;
}

.gallery-modal.out {
	transform: translateY(100%);
}

.photo-frame {
	padding: 1em;
	height: 100%;
	overflow: hidden;
	text-align: center;
	box-sizing: border-box;
}

.img {
	height: 100%;
	width: 25%;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	float: left;
}

.photos {
	height: 100%;
	transition: margin 0.3s ease;
}

.thumbnails {
	display: none;
	padding: 1em;
	height: 20%;
	overflow-y: scroll;
	text-align: center;
	width: auto;
}

.thumbnail {
	height: 100%;
	cursor: pointer;
	opacity: 0.8;
}

.thumbnail:hover {
	opacity: 1;
}

.gallery-modal .close {
	width: 4em;
	height: 4em;
	position: absolute;
	top: 1em;
	right: 1em;
	cursor: pointer;
	z-index: 3;
	padding: 0.5em;
	background-color: #ab8351;
	border-radius: 2em;
}

.gallery-modal > .close::after, .gallery-modal > .close::before  {
	content: '';
	position: absolute;
	top: 0.5em;
	left: 0.5em;
	height: 0.5em;
	width: 3em ;
	background-color: #333;
}

.gallery-modal > .close::after {
	transform: translateY(1.4em) rotate(-45deg);
}

.gallery-modal > .close::before {
	transform: translateY(1.4em) rotate(45deg);
}

.gallery-modal .prev, .gallery-modal .next {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 5em;
	cursor: pointer;
}

.gallery-modal .prev {
	left: 0;
}

.gallery-modal .prev:hover {
	background-image: linear-gradient(to left, rgba(0,0,0,0),rgba(0,0,0,0.4));
}

.gallery-modal .next {
	right: 0;
}

.gallery-modal .next:hover {
	background-image: linear-gradient(to right, rgba(0,0,0,0),rgba(0,0,0,0.4));
}

.gallery-modal .prev::after, .gallery-modal .next::after {
	position: absolute;
	top: calc(50% - 1em);
	font-size: 2em;
}

.gallery-modal .prev::after {
	content: '\25c0';
	left: 2em;
}

.gallery-modal .next::after {
	content: '\25b6';
	right: 2em;
}

@media (max-width: 1023px) {
	.gallery-modal .prev::after {
		left: 0.5em;
	}
	.gallery-modal .next::after  {
		right: 0.5em;
	}
}
