:root::-webkit-scrollbar{
  display: none;
}

:root {
  --padding-content: 6vw;
  --padding-page: 6vw;
    scrollbar-width: none;
  -ms-overflow-style: none;
  
}

* {
    padding: 0;
    margin: 0;
    background: transparent;
    font-family: "Roboto", sans-serif;
}

body {
	background-image: url("../img/Obraz1a.jpg");
	background-repeat: no-repeat;
    background-position: top right;
    background-size: cover;
    background-attachment: fixed;
}

.icon_home {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
}

.icon_close {
    font-size: clamp(2rem, 2.0vw, 3.0rem) !important;
}

.icon_nav {
    font-size: clamp(5.0rem, 2.0vw, 8.0rem) !important;
	cursor: pointer;
}

.page {
	min-height: 101%;
	padding: 0 var(--padding-page);
}

blockquote {
	border-left: 2px solid #ccc;
    margin-left: 1.5rem;
    padding-left: 1rem;
	font-style: italic;
}

#header {
    --_animationStarts: 80px;
    --_animationDistance: 30px;
    position: absolute;
    top: 0rem;
	height: 5rem;
    right: var(--padding-page);
    float: right;
    z-index: 6;
    font-size: clamp(2rem, 2.5vw, 3rem);
    /*animation: stickyHeader linear forwards;
    animation-timeline: view();
    animation-range-start: calc(100vh + var(--_animationStarts));
    animation-range-end: calc(100vh + var(--_animationStarts) + var(--_animationDistance));*/
}

.page:has(content:empty) #header {
	top: 60dvh;
}

#header h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: white;
    text-align: right;
    padding: 0.5rem;
    font-size: unset;
}

@keyframes stickyHeader {
    0%, 100% {
        top: 0rem;
        
    }
    100% {
        top: -10rem;
    }   
}

#horizmenu {
    --_animationStarts: 12px;
    --_animationDistance: 80px;
    --_backgroundColorStart: hsl(0 50% 90% / 0);
    --_backgroundColorEnd: hsl(0 0% 0% / .8);
    display: flex;
    position: sticky;
    width: calc(100% - 1rem);
    top: 5rem;
	margin-top: 5rem;
	padding-left: 1rem;
    margin: 0;
    overflow: hidden;
    background-color: var(--_backgroundColorStart);
    z-index: 5;
    animation: stickyHorizmenu linear forwards;
	-moz-animation: unset;
    animation-timeline: view();
    animation-range-start: calc(100vh + var(--_animationStarts));
    animation-range-end: calc(100vh + var(--_animationStarts) + var(--_animationDistance));
}

html:not([data-scroll='0']) #horizmenu {
	top: 0rem;
	background-color: var(--_backgroundColorEnd);
	backdrop-filter: blur(0.15rem);
}
/*
@-webkit-keyframes stickyHorizmenu {
    0%, 100% {
        top: 5rem;
    }
    100% {
        top: 0rem;
        background-color: var(--_backgroundColorEnd);
        -webkit-backdrop-filter: blur(0.15rem);
    }
}

@-moz-keyframes stickyHorizmenu {
    0%, 100% {
        top: 5rem;
    }
    100% {
        top: 0rem;
        background-color: var(--_backgroundColorEnd);
        -moz-backdrop-filter: blur(0.15rem);
    }
}
*/
@keyframes stickyHorizmenu {
    0%, 100% {
        top: 5rem;
    }
    100% {
        top: 0rem;
        background-color: var(--_backgroundColorEnd);
        backdrop-filter: blur(0.15rem);
    }
}

#horizmenu li {
    list-style: none;
    float: left;
}

#horizmenu li a {
    display: block;
    color: white;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-size: clamp(0.8rem, 2.5vw, 1.4rem);
  }


#horizmenu li a:hover {
    background-color: #111111;
  }



left {
    background-color: rgba(255,255,255,0%);
	margin: 0;
    width: 25vw;
	z-index: 2;
}

left figure {
    width: 15vw;
}

left figure, leftmobile figure {
    padding:1rem;
    background-color: rgba(255,255,255,100%);
}

left figcaption, leftmobile figcaption {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    background-color: rgba(255,255,255,90%);
    padding: .4rem;
}

left img, leftmobile img {
    width: 100%;
}

content figure {
    display: block;
	text-align: center;
}


content figure img{
    max-height: 50vh;
	max-width: 100%;
} 

.img_left, .img_right, .img_center{
    padding: 2rem;
} 

.img_left {
	padding-left: unset;
}

.img_right {
	padding-right: unset;
}

.img_under {
	position: absolute;
	opacity: 0.2;
	z-index: -1;
	margin-left: calc(var(--padding-content) * -1);
	padding-right: var(--padding-page);
}

.img_under img {
	object-fit: cover;
}

/* .kafle {
	padding:1rem;
}

.kafel {
	display:flex;
    text-decoration: none;
	align-items: stretch;
	justify-content: space-between;
    flex-wrap: wrap;
    border-top:1px red solid;
    width: 20vw;
}


.kafel img {
	max-width: 150px;
    padding: 1vw;
} */

.kafle {
    display:flex;
    flex-wrap: wrap;
    /* justify-content: space-evenly; */
    align-items: flex-start;
    gap: 0.5rem;
	width: min-content;
}

.kafel {
	display: flex;
    text-decoration: none;  
    border-top: unset;
    width:16rem;
    aspect-ratio: 1/1;
    /* border: 1px solid rgba(55,55,55,0%); */  
    padding: 1rem;
    transition: all ease 0.2s;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #888;
    background-blend-mode:overlay;
	align-items: end;
}

.kafel * {
    color: rgb(255, 255, 255);
    font-weight: bolder;
    text-shadow: 0cap 0px 4px rgb(0, 0, 0);
}


.kafel:hover, .current {
    background-color: rgba(155,155,155,80%);
    box-shadow: 4px 4px 20px 4px rgba(33, 33, 33, .5);
  }
  


left .linki {
	text-decoration: none;
    list-style: none;
}

left:empty {
    display: none;
}

left:empty ~ content {
    width: 62rem !important;
    top: 0rem !important;
}

.kafle a {
    text-decoration: none;
}

container {
    display: flex;
	padding-top: 5rem;
}

content {
	background: white;
    padding: 4rem var(--padding-content);	
	z-index: 1;
}

content p {
	line-height: 1.4rem;
	text-align: justify;
}

p {
  text-indent: 1.5em;
}

blockquote *, .lightbox_opisy * {
	text-indent: unset;
}

content:has(.kafle) {
    background: transparent;
}

content > img {
    min-width: 20vw;
	padding:2rem;
}

content:empty {
	display: none;
}

container:has(content:empty) .kafle {
	gap: 1rem 1rem;
}

container:has(content:empty) .kafel {
	width: 20vw;
    max-height: calc(40vh - 6rem);
    aspect-ratio: 6 / 2;
    background-position: 100% 30%;
}

container:has(content:empty) left {
	width: 50vw;
}

footer {
	display: block;
	position:fixed;
	bottom: 0;
	right: 0;
	padding: 1rem;
	text-align: right;
	font-weight: 300;
	color: wheat;
}

galeria {
	display:flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	gap: 2rem 1rem;
}

galeria figure img {
	min-width: 110px;
	width: 36vw;
	max-width: 200px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

figure .zaginiony, .lightbox_img .zaginiony {
	position: absolute;
	display: flex;
	width: 36vw;
	aspect-ratio: 1 / 1;
	max-width: 200px;
    flex-direction: column;
    justify-content: center;
	align-items: center;
	color: black;
	gap: 1rem;
}

.lightbox_img .zaginiony {
	min-width: 40vw;
	max-height: 70vh;
	max-width: 80vw;
}

galeria figcaption {
	display: none !important;
}

figure figcaption {
	display: block;
	text-align: center;
	padding: 0.6rem;
	max-width: 70%;
	margin:0 auto;
}

galeria br {
	display: none;
}

leftmobile {
    display: none;
}

@media screen and (max-width: 960px) {
    left {
        display: none;
    }
	
	.kafle a[href$="=01"] .kafel {
		background-image: url("../txt/01a.jpg") !important;
	} 
	
	container {
		background: white;
		padding: 2rem;
	}

	content {
		background: unset;
		padding: unset;
	}
	
	container:has(content:empty) {
		display: none;
	}

	.img_under {
		position: unset;
		opacity: 1;
	}
    
	body {
		background-image: url("../img/Obraz1.jpg");
		background-position: top left;
		background-size: cover;
		background-attachment: fixed;
	}
	.page {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		min-height: 100%;
		padding:0;
	}
	
	header {
		-webkit-box-ordinal-group: 2;
	}
	
	#horizmenu {-webkit-box-ordinal-group: 3;}
	container {-webkit-box-ordinal-group: 5; background: white;}
	leftmobile {-webkit-box-ordinal-group: 4; padding: 1rem;padding-top: 5rem;}
	footer {-webkit-box-ordinal-group: 6;position: fixed;}
	
    leftmobile, #horizmenu, container, footer {
        display: block;
    }
	
	.kafle {
		justify-content: left;
		gap: 0.5rem;	
		flex-direction: column;
	}
	
	.current {
		border: 4px solid white;
	}
	
	.kafel {
		width: 40vw;
        max-height: calc(10dvh - 2rem);
		font-size: small;
		background-color: unset;
	}
	
	/*
	.page:has(content:empty) leftmobile .kafel {
		width: 40vw;
		aspect-ratio: 3/1;
		background-size: cover;
		background-position: 100% 20%;
	}
	*/
	.page:has(content:empty) leftmobile .kafel {
		width: 30vw;
        max-height: calc(14dvh - 2rem);
        background-size: cover;
        background-position: 100% 20%;
	}
	
    content > figure {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

	
	.lightbox .lightbox_inner
	{
		padding: 1rem !important;
	}
	
	.lightbox_left {
		visibility: hidden;
	}

	.lightbox_right {
		visibility: hidden;
	}
	
	
	.kafel:hover, .current {
		transform: unset;
		background-color: rgba(155,155,155,50%);
		box-shadow: 0 5px 10px 0px rgba(33,33,33,.2); 
	}

	
}

@media screen and (max-width: 600px) {
	.page:has(content:empty) #header {
		top: 1rem !important;
	}
}
