/*
Theme Name: Petar Santini
Text Domain: petarsantini
Version: 1
Description: Our default theme for 2022
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-patterns, block-styles, wide-blocks, accessibility-ready
Author: luka
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ff-primary: "Montserrat", basic-sans, sans-serif;
	--clr-primary: #ee6352;
	--clr-body: #333;
	--clr-bg: #ddd;
	--spacer: 1rem;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
}
a:link,
a:visited,
a:active {
	color: #333;
}

.logo {
	/*margin: auto;*/
	padding-bottom: 3rem;
	width: 20%;
}
.mobile-menu-div {
	position: fixed;
	font: 1rem var(--ff-primary);
	background: rgba(0, 0, 0, 0.7);
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 10;
	height: 100%;
	color: #fff;
	opacity: 0;
	transition: opacity 0.3s linear;
	pointer-events: none;
}
.aktivan {
	opacity: 1;
	pointer-events: auto;
}
.mobile-logo {
	width: 70%;
	padding: 3rem 2rem;
}
.mobile-menu {
	flex: auto;
}
.mobile-menu * {
	color: #f1f1f1 !important;
}
.mobile-menu-nav {
	list-style: none;
	background: #000;
	position: fixed;
	width: 70%;
	bottom: 0;
	top: 0;
	left: -100%;
	transform: translate(-143%);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s linear;
}
.aktivannav {
	transform: translate(143%);
}
.mobile-menu a {
	padding: 1rem;
	display: block;
	letter-spacing: 1px;
	border-bottom: 1px #111 solid;
}
.mobile-menu .menu-item-has-children > a:after {
	content: "\f347";
	font-family: "Dashicons";
	padding-top: 0.4rem;
	justify-content: center;
	position: absolute;
	right: 1rem;
}
.mobile-menu .sub-menu {
	list-style: none;
	display: none;
}
.mobile-menu .aktivan-podmeni {
	background: #101010;
}
.mobile-menu .aktivan-podmeni .sub-menu {
	display: block;
}
.close {
	display: inline-block !important;
	position: absolute;
	right: 2rem;
	top: 1rem;
}
.close span {
	font-size: 2.6rem;
}
#cta-menu {
	display: none;
}
.hide {
	display: none !important;
}
section {
	font: 1rem var(--ff-primary), sans-serif;
}
.navigacija {
	display: flex;
	list-style: none;
	align-items: start;
	justify-content: center;
	font: 800 14px var(--ff-primary), sans-serif;
	color: #333;
}

.navigacija > li > a {
	display: block;
	padding: 1rem;
	margin: 3px;
	color: inherit;
	display: flex;
	align-items: flex-end;
}
.navigacija > li > a:hover {
	background: #efefef;
	border-radius: 0.2rem;
}
.navigacija .current-menu-item > a,
.navigacija .current-page-parent > a {
	background: #efefef;
}
.navigacija ul.sub-menu {
	display: none;
	color: inherit;
}
.navigacija .menu-item-has-children {
	position: relative;
	display: flex;
}
.navigacija .menu-item-has-children > a {
	position: relative;
}
.navigacija .menu-item-has-children > a:after {
	content: "\f347";
	font-family: "Dashicons";
	margin: 0rem 0 0 0.41rem;
}
.navigacija .menu-item-has-children:hover ul.sub-menu {
	display: block;
	position: absolute;
	list-style: none;
	background: #ddd;
	display: flex;
	flex-direction: column;
	top: 3rem;
	left: 0.2rem;
	z-index: 10;
}
.navigacija .menu-item-has-children .sub-menu li a {
	display: block;
	padding: 1rem 0.6rem;
	min-width: 8rem;
}
.main {
	max-width: 1440px;
	margin: 4rem auto;
	width: 100%;
}
h1 {
	font: 800 3rem var(--ff-primary), sans-serif;
	text-align: center;
	padding: 2rem 0;
}
.tekst {
	font: 1rem var(--ff-primary), sans-serif;
	color: #333;
	margin: 4rem;
	line-height: 1.6rem;
}
.tekst p {
	margin-bottom: 1.6rem;
}
.lista-galerija {
	list-style: none;
	font: 14px var(--ff-primary), sans-serif;
	display: flex;
	flex-wrap: wrap;
	gap: 4%;
}
.kartica {
	margin-top: 4%;
	width: 30%;
	/* height: 0; */
	position: relative;
	/* padding-bottom: 24%; */
}
.kartica a {
	position: relative;
	display: block;
	/* width: 100%; */
	/* height: 100%; */
}
.kartica img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.kartica a h2 {
	display: flex;
	opacity: 0;
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	justify-content: center;
	align-items: center;
	color: #efefef;
	background: rgba(0, 0, 0, 0.5);
	transition: opacity 0.2s linear;
	font-size: max(1vw, 14px);
}
.kartica a:hover h2 {
	opacity: 1;
}
.kartica:nth-child(3n + 2) {
	width: 20%;
}
.social {
	font: 1rem var(--ff-primary);
	text-align: center;
	padding: 2rem 0;
}
.social a {
	display: inline-block;
	border-radius: 3px;
	margin: 0.6rem;
	color: var(--clr-bg);
	background: var(--clr-body);
	padding: 0.3em;
}

#menu-footer {
	margin-bottom: 2rem;
}
.galerija {
	column-count: 3;
	column-gap: 2rem;
}
.galerija li {
	width: 100%;
	display: block;
	margin: 0 0 2rem;
	width: 100%;
}
.galerija li img {
	width: 100%;
	display: block;
}

.galerija-naslovnica {
	margin-top: 2rem;
	column-count: 5;
	column-gap: 0.6rem;
}
.galerija-naslovnica li {
	width: 100%;
	display: block;
	margin: 0 0 0.6rem;
}
.galerija-naslovnica li img {
	width: 100%;
	display: block;
}
.galerija-naslovnica figure {
	position: relative;
}
.galerija-naslovnica figcaption {
	position: absolute;
	opacity: 0;
	background: rgba(0, 0, 0, 0.5);
	left: 0;
	top: 0;
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: #f1f1f1;
	font-size: 1rem;
	font-weight: bold;
	transition: opacity 0.2s linear;
}
.galerija-naslovnica li:hover figcaption {
	opacity: 1;
}

.dark {
	padding: 3rem 0;
}
.about {
	width: 60%;
}
.about > div {
	display: flex;
	align-items: center;
}
.about figure {
	width: 30%;
	height: 0;
	background: #000;
	border-radius: 50%;
	overflow: hidden;
	padding-bottom: 30%;
	position: relative;
}
.about figure img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	position: absolute;
}
.about blockquote {
	width: 70%;
	font-size: 1.2rem;
	line-height: 1.6;
	padding: 1rem 2rem;
}

body.home {
	display: flex;
	flex-direction: column;
	height: 100vh;
	justify-content: space-between;
}

#homefront {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	z-index: -10;
}
#homefront img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (max-width: 640px) {
	header.main {
		margin: 1rem;
	}
	.tekst {
		margin: 1rem;
	}

	#cta-menu {
		display: block;
	}
	.logo {
		width: 100%;
	}
	.logo {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.logo img {
		display: block;
		width: 50%;
	}
	.navigacija {
		display: none;
	}
	.galerija-naslovnica {
		margin-top: 2rem;
		column-count: 2;
		column-gap: 0.5rem;
	}
	.about {
		width: 100%;
	}
	.about > div {
		display: flex;
		flex-direction: column;
	}
	.about blockquote {
		width: 90%;
		margin-top: 1rem;
	}
	.galerija {
		column-count: 3;
	}
	.galerija-naslovnica figcaption {
		font-size: 3vw;
	}

	.lista-galerija {
		flex-wrap: wrap;
	}
	.kartica {
		width: 100% !important;
		height: unset;
		position: relative;
		padding-bottom: unset;
	}
	.kartica a {
		position: relative;
		display: block;
		height: unset;
	}
	.kartica a h2 {
		display: block;
		opacity: 1;
		position: relative;
		color: #010101;
		background: unset;
		padding: 1rem;
		border-bottom: 1px #efefef solid;
		font-size: max(2vw, 22px);
		margin-bottom: 1rem;
	}
	.kartica a:hover {
		background: #efefef;
	}
}
