/*
Theme Name: Andrea Hylmarová V2
Theme URI: http://www.andreahylmarova.com
Author: Tomáš Potěšil
Author URI: http://www.potesil.com
Version: 1.0
*/

/*!
* Fonts
*/

@font-face {
	  font-family: "Figtree", sans-serif;
	  font-optical-sizing: auto;
	  font-weight: 400;
	  font-style: normal;
}

/*!
* Default
*/


:root {
	/* Collapsed fixed header: logo (~40px at 100px wide) + navbar padding (1.4rem × 2). */
	--site-header-height: 5.05rem;
}

html, body {
	font-size: 18px;
}

body {
	font-family: "Figtree";
	font-weight:  400;
	font-style:   normal;
	font-stretch: normal;
	color: #1d1d1b;
	padding-top: var(--site-header-height);
}

a {
	color: #1d1d1b;
	text-decoration: underline;
	transition: color .2s;
}

	a:hover {
		color: #cac4ba !important;
		text-decoration: none;
		transition: color .2s;
	}

@media (min-width: 1290px) {
	.container {
	    max-width: 1230px;
	}
}

h1 {
    font-size: 2.33rem;
}

	h1.page-title {
	    margin-bottom: 2rem;
	}

p {
    line-height: 26px;
}

article h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 2rem;
}

	article h2:first-child {
	    margin-top: 0;
	}

/*!
* Navbar
*/

header {
	z-index: 999;
	position: fixed;
	background: rgba(255, 255, 255, 0.7);
	width: 100%;
	left: 0;
	right: 0;
	top: 0;
}

.navbar {
	text-decoration: none;
	padding: 1.4rem 0;
	text-transform: lowercase;
}

.navbar-nav,
.navbar-nav > ul {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbar-nav > li,
.navbar-nav > ul > li,
.navbar-nav .nav-item {
	flex: 0 0 auto;
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navbar-nav .nav-link,
.navbar-nav a {
	display: block;
	width: 100%;
	padding: 0.5rem 0.85rem;
}

/* Match Bootstrap navbar-expand-lg: horizontal nav from lg up. */
@media (min-width: 992px) {
	.navbar-nav,
	.navbar-nav > ul {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-end;
		width: auto;
	}

	.navbar-nav > li,
	.navbar-nav > ul > li,
	.navbar-nav .nav-item {
		width: auto;
	}

	.navbar-nav .nav-link,
	.navbar-nav a {
		width: auto;
	}
}

.navbar-brand {
	font-size: 1rem;
	padding: 0;
	margin: 0;
	letter-spacing: 1px;
	border: 0;
}

	.navbar-brand:hover {
		border: 0;
	}

.navbar li a:hover {
		text-decoration: underline;
		color: #000 !important;
	}
	
.navbar li.active a {
	text-decoration: underline;
}

.navbar-brand img {
	width: 100px;
	height: auto;
	display: block;
}

.navbar a,
.socials-block a {
	text-decoration: none;
}

	.navbar a:hover,
	.socials-block a:hover {
		text-decoration: underline;
	}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/*!
* Slideshow
*/

.slide-meta {
	font-size: 0.77rem;
	margin-top: 0.63rem;
	margin-bottom: 0;
}

.slide-meta li:before {
	content: "●";
	margin-right: .5rem;
}

	.slide-meta li:first-child:before {
		content: none;
	}

/* Fullscreen slider — pull under the fixed header by its measured height */
.home-carousel {
	top: calc(-1 * var(--site-header-height));
	margin-bottom: 32px;
}
.home-carousel,
.home-carousel .carousel-inner,
.home-carousel .carousel-item {
	width: 100%;
	height: 101vh;
}

/* Ensure positioning context */
.home-carousel .carousel-item {
	position: relative;
	background-color: #000;
}

/* Fullscreen image cover */
.home-carousel .carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: centre;
	opacity: 0.8;
}

.home-carousel .a-img:hover,
.home-carousel .img:hover {
	opacity: 0.8 !important;
}

/* Centre title/meta vertically + horizontally */
.home-carousel .slide-meta {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: centre;
	colour: #fff;
	z-index: 20;
	font-size: 1.8rem; /* adjust as needed */
}

/* Make items stack (instead of inline) */
.home-carousel .slide-meta li {
	display: block;
	margin: 0.3rem 0;
}

/* White text + underline link */
.home-carousel .slide-meta a {
	color: #fff !important;
	text-decoration: none !important;
}

/* Smooth fade for home carousel */
.home .home-carousel.carousel-fade .carousel-item {
	opacity: 0;
	transition-property: opacity;
	transition-duration: 1s;          /* length of fade */
	transition-timing-function: ease-in-out;
}

/* The visible / incoming slide */
.home .home-carousel.carousel-fade .carousel-item.active,
.home .home-carousel.carousel-fade .carousel-item-next.carousel-item-left,
.home .home-carousel.carousel-fade .carousel-item-prev.carousel-item-right {
	opacity: 1;
}

/* Ensure sliding classes do not move the slides horizontally */
.home .home-carousel.carousel-fade .carousel-item-left,
.home .home-carousel.carousel-fade .carousel-item-right,
.home .home-carousel.carousel-fade .carousel-item-next,
.home .home-carousel.carousel-fade .carousel-item-prev {
	transform: translateX(0);
}

/* Optional: slightly slower auto-rotate if 2500ms feels too fast */
.home .home-carousel {
	/* data-interval="3500" in HTML might feel nicer */
}

/*!
* Front page block
*/

.front-block {
	margin-bottom: 4.72rem;
}

	.front-block h1 {
		font-size: 2.33rem;
		margin: 0;
	}

/*!
* Project slide
*/

.project-slide {
	max-width: 960px;
}

.page-template-default .project-slide {
	margin-top: 6.22rem;
}

/*!
* Projects
*/

.project {
	display: inline-block;
	margin: 0 0 2rem;
	width: 100%;
}

.project-thumbnail {
	position: relative;
}

.project-thumbnail span.title {
	opacity: 0;
	transition: all .3s ease-in-out;
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	font-size: 2.33rem;
	max-width: 90%; width: 100%;
	text-align: center;
	z-index: 1;
	text-decoration: none;
}

	.project-thumbnail:hover span.title {
		opacity: 1;
		transition: all .6s ease-in-out;
		transition-delay: .2s;
		line-height: 1;
	}

	.project-thumbnail span.title:hover {
		text-decoration: none;
	}

	.project-thumbnail em {
		font-style: normal;
		display: block;
	}

.project-thumbnail img,
.a-img,
a.chocolat-image img {
	transition: all .5s ease-in-out;
}

	.a-img:hover,
	a.chocolat-image:hover img {
		opacity: 0.7;
		transition: all .5s ease-in-out;
	}
	.project-thumbnail:hover img {
		opacity: 0.4;
	}

/*!
* Project detail
*/

h1.project-title {
	max-width: 360px;
	margin-bottom: 1.11rem;
	line-height: 1;
}

	h1.project-title span {
		display: block;
	}

	.project-gallery {
		max-width: 1000px;
		margin: 0 auto;
	}

	.project-gallery a {
		display: table;
		margin: 0 auto;
	}

	.project-gallery img {
		max-width: 100%; height: auto;
		margin: 40px auto 0 auto;
		display: block;
	}

		.project-gallery div {
			margin: 40px auto 0 auto;
		}

		.project-gallery div.vertical {
			margin: 40px 0 0 0;
		}

		@media (min-width: 768px) {
			.project-gallery div.vertical.col-md-5 {
			    -ms-flex: 0 0 46%;
			    flex: 0 0 46%;
			    max-width: 46%;
			}
			.project-gallery div.vertical.margin-left {
				margin-left: 8%;
			}
		}

		.project-gallery a:first-child img {
			margin-top: 0;
		}

.related-projects {
	margin-top: 12.11em;
}

	.related-projects-container div.related-box {
		margin: 0 0 2rem;
		padding-bottom: 1.11rem;
		font-size: 0.77rem;
		position: relative;
		display: inline-table;
	}

		.related-projects-container div.related-box a {
			text-decoration: none;
		}

		.related-projects-container div.related-box:hover a.more,
		.medium-box:hover a.more {
			position: absolute;
			bottom: 30px;
			transition: bottom .3s;
			text-decoration: underline;
		}

		.related-projects-container div.related-box img,
		.medium-box img {
			margin-bottom: 5px;
			opacity: 1;
			transition: opacity .3s;
		}

		.related-projects-container div.related-box:hover img,
		.medium-box:hover img {
			opacity: .2;
			transition: opacity .3s;
		}

		.related-projects-container div.related-box a.more,
		.medium-box a.more {
			margin-left: 10px;
			position: absolute;
			bottom: 0;
			transition: bottom .3s;
			display: block;
		}

		.related-projects-container div.related-box:hover a.more:before,
		.medium-box:hover a.more:before {
			content: "";
			width: 5px; height: 5px;
			border-radius: 5px;
			background-color: #000;
			display: inline-block;
			margin-right: .5rem;
			transition: all .2s;
		}

.related-projects span.title {
	font-size: 2.33rem;
	display: block;
	margin-bottom: 2rem;
}

/*!
* Page
*/

.article-row {
	margin-top: 3.61rem;
}

	.article-row:first-child {
		margin-top: 0;
	}

/*!
* Media
*/

.medium-box {
	font-size: 0.77rem;
	position: relative;
	padding-bottom: 1.11rem;
}

/*!
* Carousel
*/

.carousel-fade .carousel-item {
	opacity: 0;
	transition-duration: .6s;
	transition-property: opacity;
}

.carousel-fade  .carousel-item.active,
.carousel-fade  .carousel-item-next.carousel-item-left,
.carousel-fade  .carousel-item-prev.carousel-item-right {
	opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade  .active.carousel-item-right {
	opacity: 0;
}

.carousel-fade  .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade  .active.carousel-item-prev {
	transform: translateX(0);
	transform: translate3d(0, 0, 0);
}

.timer-container {
    position: absolute;
    right: 0;
    bottom: 0;
}

.wrapper {
	position: relative;
	background: #FFF;
}

.wrapper, .wrapper * {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.wrapper {
	width: 16px;
	height: 16px;
}

.wrapper .pie {
	width: 50%;
	height: 100%;
	transform-origin: 100% 50%;
	position: absolute;
	background: #cac4ba;
	border: 1px solid #cac4ba;
}

.wrapper .spinner {
	border-radius: 100% 0 0 100% / 50% 0 0 50%;
	z-index: 200;
	border-right: none;
	animation: rota 3s linear infinite;
}

.wrapper:hover .spinner,
.wrapper:hover .filler,
.wrapper:hover .mask {
	animation-play-state: running;
}

.wrapper .filler {
	border-radius: 0 100% 100% 0 / 0 50% 50% 0;
	left: 50%;
	opacity: 0;
	z-index: 100;
	animation: opa 2.5s steps(1, end) infinite reverse;
	border-left: none;
}

.wrapper .mask {
	width: 50%;
	height: 100%;
	position: absolute;
	background: inherit;
	opacity: 1;
	z-index: 300;
	animation: opa 2.5s steps(1, end) infinite;
}

@keyframes rota {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes opa {
	0% {
		opacity: 1;
	}
	50%, 100% {
		opacity: 0;
	}
}

/*!
* Footer
*/

footer {
	margin-top: 9.16rem;
	margin-bottom: 1rem;
	font-size: 0.77rem;
}

	span.separator {
		margin-left: 10px;
		margin-right: 10px;
	}

	.socials-block {
		text-align: center;
		line-height: 1;
		margin-bottom: 3.05rem;
		font-size: 1rem;
	}

	.socials-block span.title {
		font-size: 2.33rem;
		display: block;
		margin-bottom: 1.88rem;
	}

	.socials-block .list-inline-item:not(:last-child) {
	    margin-right: 1.15rem;
	}
	
.slideshow-home-new {
		position: relative;
		width: 100%;
		height: 80vh;
		overflow: hidden;
		margin-bottom: 32px;
	}
	
	/* Slides */
	.slideshow-home-new .slide {
		position: absolute;
		inset: 0;
		display: none;
	}
	
	.slideshow-home-new .slide.is-active {
		display: block;
	}
	
	.slideshow-home-new img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	
	/* Overlay */
	.slideshow-home-new .slide-overlay {
		position: absolute;
		inset: 0;
		background: rgba(0,0,0,0.30);
		z-index: 1;
	}
	
	/* Title */
	.slideshow-home-new .slide-title {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		margin: 0;
		color: #fff;
		z-index: 2;
		text-align: centre;
	}
	
	.scroll-indicator {
		position: absolute;
		left: 50%;
		bottom: 32px;
		transform: translateX(-50%);
		z-index: 2;
	}
	
	.scroll-indicator span {
		display: block;
		width: 14px;
		height: 14px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg);
		animation: arrowDown 1.8s infinite;
	}
	
	@keyframes arrowDown {
		0% {
			transform: rotate(45deg) translate(0, 0);
			opacity: 0.3;
		}
		50% {
			transform: rotate(45deg) translate(6px, 6px);
			opacity: 1;
		}
		100% {
			transform: rotate(45deg) translate(0, 0);
			opacity: 0.3;
		}
	}
	