/*
Theme Name: Almigor Portfolio
Author: Darko
Author URI: 
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: almigor-portfolio
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
	font-size: 16px;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

h1 ,h2 ,h3 ,h4 ,h5 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	margin-top: 0;
}

h2 {
	font-size: 26px;
}

html,
body {
	height: 100%;
	overflow-x: clip;
}

body {	
	font-size: 14px;
	color: #000;
	margin: 0;
	padding: 0;
	overflow-x: clip;
}

body.home.blog {
	background-color: #FFFFFF;
}

.pum-theme-almigor .pum-content + .pum-close {
	display: none;
}

.pum-theme-almigor .pum-container {
	width: 600px !important;
	min-height: 400px;
	margin-left: -300px !important;
	background-image: url(./assets/images/popup-bg.svg);
  	background-repeat: no-repeat;
	background-size: contain;
}

.pum-theme-almigor .pum-content {
	font-family: 'Consola', Helvetica, Arial, sans-serif !important;
	font-size: 20px;
	padding-top: 30%;
  	padding-left: 35%;
  	padding-right: 5%;
}

.pum-theme-almigor .pum-content p {
   margin: 0 0 18px;
}

.pum-theme-almigor .pum-content p:last-child {
	margin: 0;
}

.pum-theme-almigor .pum-form {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin: 0;
}

.pum-theme-almigor .almigor-close-popup  {
	position: absolute;
	width: 30px;
	height: 30px;
	right: 5%;
	top: 42%;
	display: flex;
  	align-items: center;
  	justify-content: center;
}

.pum-theme-almigor .almigor-close-popup img {
	width: 20px;
	height: 20px;
}

.pum-theme-almigor .pum-form__field {
	display: inline-flex;
  	flex-shrink: 1;
  	flex-grow: 1;
	margin-bottom: 0;
}

.pum-theme-almigor .pum-form--style-default input:focus {
	outline: none;
	box-shadow: none;
}

.pum-theme-almigor .pum-form--style-default input[type="email"] {
	color: #ffffff;
	font-size: 16px;
	background-color: #3b3b3b;
  	border: 2px solid #ffe657;
	width: 100%;
	height: 41px;
  	line-height: 1;
	margin-bottom: 0;
}

.pum-theme-almigor .pum-form--style-default input[type="email"]::placeholder {
	color: #ffffff;
	opacity: 1;
	font-style: italic;
}

.pum-theme-almigor .pum-form--style-default button {
	font-family: 'Consola', Helvetica, Arial, sans-serif;
	text-transform: uppercase;
  	font-size: 20px;
  	margin: 0;
  	padding: 8px 5px;
  	cursor: pointer;
  	border-radius: 0;
  	border: none;
  	background-color: #ffe657;
  	width: 100%;
  	line-height: 1;
  	height: 41px;
}

@media only screen and (orientation:landscape) {
	#rotate-notification { display : none; }
	#enter-fullscreen { display: block; }
}

@media only screen and (orientation:portrait) {
	#rotate-notification { display : block; }
	#enter-fullscreen { display: none; }
}

#enter-fullscreen {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 500;
	background-color: rgba(0, 0, 0, .65);
	padding: 20px;
	color: #FFE657;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	text-align: center;
	width: 250px;
	margin-left: -45px;
	line-height: 1.3;
	border-radius: 10px;
	margin-top: -40px;
}

:fullscreen #enter-fullscreen {
	display: none;
}

:-webkit-full-screen #enter-fullscreen {
	display: none; /* Safari */
}

@media (max-width: 992px) {
	#enter-fullscreen {
		display: block;
	}
}

.animation {
	position: fixed;
	width: 100%;
	height: 100%;
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.animation svg {
	width: 200px;
	max-width: 90%;
}

@keyframes rotate_device {
	0% {
		transform: rotate(0);
		transform-origin: center;
		opacity: 1;
	}

	70% {
		transform: rotate(90deg);
		transform-origin: center;
		opacity: 1;
	}
	100% {
		transform: rotate(90deg);
		transform-origin: center;
		opacity: 0;
	}
}

.phone-rotate-horizontal {
	animation: rotate_device 2s ease 0s infinite normal none;
}

body.home.blog .wp-site-blocks {
	position: relative;
  	width: 100%;
  	height: 100%;
	overflow-x: clip;
	margin-top: 0;
}

.text-large {
	font-family: 'Consola', Helvetica, Arial, sans-serif;
	font-size: clamp(1.125rem, 3.906vw + -0.75rem, 2.375rem);
	line-height: 184%;
	text-align: center;
	margin: 0 auto;
	display: block;
	max-width: 780px;
}

.swiper {
	width: 100%;
	height: 100%;
}

.swiper-scrollbar.swiper-scrollbar-vertical, 
.swiper-vertical > .swiper-scrollbar {
	position: absolute;
	left: auto;
	right: 0;
	top: 0;
	z-index: 100;
	width: 10px;
	padding: 0 4px;
	border-radius: 0;
	background: #e0e0e0;
}

.swiper-scrollbar-drag {
	background: #b3b3b3;
	top: 10px;
	max-height: calc(100% - 15px);
}

.swiper-vertical > .swiper-scrollbar.swiper-scrollbar-lock {
	display: block !important;
}

.swiper-vertical > .swiper-scrollbar.swiper-scrollbar-lock .swiper-scrollbar-drag {
	max-height: 60px;
}

.swiper.site-content {
	z-index: auto !important;
	width: calc(100% + 30px);
}

.swiper.site-content.swiper-ios {
	width: 100%;
}

.swiper-slide {
	font-size: 16px;
	height: auto;
	-webkit-box-sizing: border-box;
	box-sizing: content-box;
	padding: 0px;
}

.swiper-wrapper.page-swiper {
	will-change: width;
	height: 100%;
	width: 100% !important;
	transform: none !important;
	transition: none;
	margin-left: -30px;
}

.swiper-wrapper.page-swiper >.swiper-slide {
	width: 35px !important;
	height: 100%;
	transition: none;
}

.swiper-wrapper.page-swiper >.swiper-slide-active {
	width: calc(100% - 208px) !important;
	transform: none;
}

.swiper-backface-hidden .swiper-slide {
	transform: none !important;
}

.swiper-wrapper.page-swiper > .swiper-slide .swiper.potrfolio-page,
.swiper-wrapper.page-swiper > .swiper-slide .about-section,
.swiper-wrapper.page-swiper > .swiper-slide .links-content {
	height: 0;
	opacity: 0;
	pointer-events: none;
	transition: height .2s ease, opacity .2s ease;
}

.swiper-wrapper.page-swiper > .swiper-slide.swiper-slide-active .swiper.potrfolio-page,
.swiper-wrapper.page-swiper > .swiper-slide.swiper-slide-active .about-section,
.swiper-wrapper.page-swiper > .swiper-slide.swiper-slide-active .links-content {
	height: auto;
	opacity: 1;
	pointer-events: auto;
	transition: height .2s ease, opacity .2s ease;
}

.swiper-wrapper.page-swiper > .swiper-slide.swiper-slide-active .page-window-head,
.swiper-wrapper.page-swiper > .swiper-slide.swiper-slide-active .page-window-bottom {
	opacity: 1;
	transition: opacity .2s ease;
}

.swiper-wrapper.page-swiper > .swiper-slide .page-window-head,
.swiper-wrapper.page-swiper > .swiper-slide .page-window-bottom {
	opacity: 0;
	transition: opacity .2s ease;
}

span.highlight,
.wp-block-heading mark,
#portfolio .alm-about-project,
#links .links-content .highlight {
	position: relative;
  	padding: 0 .8em 0 .5em;
  	border-radius: 100px;
  	display: inline-flex;
  	flex-direction: row;
  	align-items: center;
	line-height: 150%;
}

span.highlight a {
	text-decoration: none;
}

.wp-block-heading mark {
	line-height: 100%;
	padding: .25em 1em .25em .5em;
	font-size: 85%;
}

span.highlight:before,
.wp-block-heading mark:before,
#portfolio .alm-about-project:before,
#links .links-content .highlight:before {
	content: '';
	width: .7em;
	height: .7em;
	aspect-ratio: 1/1;
	background-color: #FFFFFF;
	border-radius: 100px;
	margin-right: .25em;
}

#about .page-content span.highlight:before {
	width: .62em;
	height: .62em;
}

#links .links-content .highlight:before {
	background-color: #FFBAC3;
}

span.highlight.white {
	background-color: #FFFFFF;
}

span.highlight.light-green {
	background-color: #36E085;
}

span.highlight.light-blue {
	background-color: #91D8EC;
}

span.highlight.pastel-orange {
	background-color: #FF8838;
}

span.highlight.light-pink {
	background-color: #FFBAC3;
}

span.highlight.yellow,
#portfolio .alm-about-project {
	background-color: #FFE657;
}

#about {
	display: flex;
	flex-direction: column;
	background-color: #FFE657;
	max-width: 100%;
	color: #000;
}

#about .swiper.potrfolio-page span.highlight {
	font-size: 85%;
}

#about:after,
#experience:after,
#references:after,
#portfolio:after,
#links:after {
	content: '';
	position: absolute;
	height: 100%;
	width: 35px;
	top: 0;
	left: -33px;
	background-color: inherit;
	display: block;
	border-top-left-radius: 20px;
	transition: all .2s ease-in-out;
}

.page-nav {
	font-family: 'consola', Helvetica, Arial, sans-serif;
	position: absolute;
	left: -33px;
	color: #000;
	bottom: 0px;
	width: 46px;
	height: calc(100% - 150px);
	background-color: transparent;	
	text-decoration: none;
	display: flex;
	align-items: center;
	transition: all .2s ease-in-out;
	padding-top: 150px;
}

#about:after{
	z-index: 115;
}

#experience:after {
	z-index: 113;
}

#references:after {
	z-index: 111;
}

#portfolio:after {
	z-index: 109;
}

#links:after {
	z-index: 107;
}

#about .page-nav {
	z-index: 116;
}
#experience .page-nav {
	z-index: 114;
}

#references .page-nav {
	z-index: 112;
}

#portfolio .page-nav {
	z-index: 110;
}

#links .page-nav {
	z-index: 108;
}

.swiper-slide-active .page-nav {
	z-index: 201 !important;
}

#about:not(.swiper-slide-active):hover:after {
	z-index: 115;
}

#experience:not(.swiper-slide-active):hover:after {
	z-index: 113;
}

#references:not(.swiper-slide-active):hover:after {
	z-index: 111;
}

#portfolio:not(.swiper-slide-active):hover:after{
	z-index: 109;
}

#links:not(.swiper-slide-active):hover:after {
	z-index: 107;
}

#about:not(.swiper-slide-active):hover:after,
#experience:not(.swiper-slide-active):hover:after,
#references:not(.swiper-slide-active):hover:after,
#portfolio:not(.swiper-slide-active):hover:after,
#links:not(.swiper-slide-active):hover:after {
	width: 48px;
	left: -46px;
	transition: all .2s ease-in-out;
}

#about:not(.swiper-slide-active):hover .page-nav,
#experience:not(.swiper-slide-active):hover .page-nav,
#references:not(.swiper-slide-active):hover .page-nav,
#portfolio:not(.swiper-slide-active):hover .page-nav,
#links:not(.swiper-slide-active):hover .page-nav {
	left: -46px;
	transition: all .2s ease-in-out;
}

#about:not(.swiper-slide-active):hover .page-nav:after,
#experience:not(.swiper-slide-active):hover .page-nav:after,
#references:not(.swiper-slide-active):hover .page-nav:after,
#portfolio:not(.swiper-slide-active):hover .page-nav:after,
#links:not(.swiper-slide-active):hover .page-nav:after {
	background-color: #000;
}

#experience {
	display: flex;
	flex-direction: column;
	background-color: #91D8EC;
}

#references {
	display: flex;
	flex-direction: column;
	background-color: #ff8838;
}

#portfolio {
	display: flex;
	flex-direction: column;
	background-color: #36e085;
}

#links {
	display: flex;
	flex-direction: column;
	background-color: #ffbac3;
}

#about .swiper,
#experience .swiper,
#references .swiper,
#portfolio .swiper,
#shop .swiper,
#links .swiper {
	width: calc(100% - 180px);
	max-width: 1200px;
	height: calc(70vh - 30px);
	padding: 20px 40px;
	background-color: #f4f8fc;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	z-index: auto;
}

#portfolio .swiper {
	background-color: #FFFFFF;
}

#about .inner {
	justify-content: flex-start;
	padding-top: 10vh;
}

#about .swiper.potrfolio-page {
	height: auto;
	min-height: 50vh;
}
#about .page-content {
	display: flex;
  	-moz-box-orient: vertical;
  	-moz-box-direction: normal;
  	flex-direction: column;
  	-moz-box-align: center;
  	align-items: center;
  	-moz-box-pack: center;
  	justify-content: center;
}

#about.swiper-slide-active .inner,
#links.swiper-slide-active .inner {
	overflow-y: auto;
	overflow-x: hidden;
}

.about-section {
	display: flex;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	width: calc(100% - 100px);
	max-width: 1280px;
	height: auto;
	padding: 20px 0 0;
	flex-direction: row;
	align-items: center;
	z-index: 110;
}

.about-section header {
	padding-top: 20px;
	margin-bottom: 15px;
}

.about-section h2 {
	display: inline;
	margin: 0 15px 0 0;
}

.about-section h2 span.highlight {
	vertical-align: baseline;
}

.about-section h2 span.highlight:before {
	background-color: #FFE657;
}

.about-section p {
	margin: 0;
	text-align: justify;
}

.profile-image {
	position: relative;
	display: block;
	min-width: 30%;
	padding-left: 20px;
	text-align: right;
}

.profile-image img {
	width: 244px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 500px;
	margin: -180px 18% 0 0;
}

.inner {
	position: relative;
	display: flex;
	height: 100%;
	padding-right: 35px;
	flex-direction: column;
	justify-content: center;
}

.swiper-wrapper.page-swiper > .swiper-slide.swiper-slide-active .page-nav .lt-circle {
	z-index: 101;
}

.swiper-wrapper.page-swiper > .swiper-slide .page-nav:after {
	content:'';
	height: 100%;
	width: 1px;
	position: absolute;
	top: 70px;
	right: 12px;
	background-color: transparent;
}

.swiper-wrapper.page-swiper > .swiper-slide.swiper-slide-active .page-nav:after {
	background-color: #000;
}

.page-nav span {
	font-size: 20px;
	line-height: 20px;
	margin-left: 5px;
	text-transform: uppercase;
	-webkit-transform: rotate(270deg);
	transform: rotate(270deg);
	-webkit-transform-origin: 0 0;
	transform-origin: 0 0;
}

.page-nav .nav-title {
	position: relative;
	display: block;
	width: auto;
	margin-top: -10px;
}

.page-nav .nav-pagination {
	position: absolute;
	top: 140px;
	left: 3px;
}

.page-nav .nav-pagination:after {
	content: url(./assets/images/nav-arrow.svg);
	display: block;
	width: 9px;
  	left: 50px;
  	position: absolute;
  	top: 0px;
	-webkit-transform: rotate(270deg);
  	transform: rotate(270deg);
}

.swiper-slide-active .page-nav .nav-pagination:after {
	-webkit-transform: rotate(90deg);
  	transform: rotate(90deg);
}

#shop {
	background-color: #FFFFFF;
}

#shop .swiper {
	background-color: #666666;
	text-align: center;
	color: #FFFFFF:
}

#shop .page-content {
	display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

#shop .page-content h1 {
	font-size: 94px;
	font-size: clamp(2.625rem, 8.638vw + -1.035rem, 5.875rem);
	line-height: clamp(3.938rem, 9.834vw + -0.23rem, 7.638rem);
	margin-bottom: 30px;
	letter-spacing: 2px;
	color: #FFFFFF;
	position: relative;
}

#shop .page-content h1:after {
	content: '';
	position: absolute;
	width: 314px;
	height: 2px;
	left: 50%;
	bottom: -10px;
	background-color: #191919;
	margin-left: -157px;
}

#shop .page-content p {
	color: #e0e0e0;
	font-size: 18px;
	margin-top: 0;
}

#shop .page-window-bottom {
	background-color: #666666;
}

#shop .page-content img {
	width: 480px;
	max-width: 90%;
}

@media (max-height: 387px) {
	.page-nav .nav-pagination {
		top: 100px;
	}
	.page-nav .nav-pagination:after {
		left: 40px;
	}
	.page-nav .nav-title {
		margin-top: 80px;
	}
}

.page-nav .lt-circle {
	position: absolute;
	top: 35px;
	height: 17px;
	width: 17px;
	left: 20px;
	display: block;
	line-height: 17px;
}

#about .page-nav .lt-circle {
	fill: #91D8EC;
}

#experience .page-nav .lt-circle {
	fill: #FF8838;
}

#references .page-nav .lt-circle {
	fill: #36E085;
}

#portfolio .page-nav .lt-circle {
	fill: #FFBAC3;
}

#links .page-nav .lt-circle {
	fill: #FFFFFF;
}

.page-window-head {
	height: 30px;
	background-color: #202020;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	width: calc(100% - 100px);
	max-width: 1280px;
	box-sizing: content-box;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.page-window-bottom {
	position: relative;
	overflow: hidden;
	height: 24px;
	width: calc(100% - 100px);
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	margin-top: -2px;
	background-color: #f4f8fc;
	left: 0;
	border-bottom-right-radius: 20px;
	border-bottom-left-radius: 20px;
	flex-shrink: 0;
}

#portfolio .page-window-bottom {
	background-color: #FFFFFF;
}

.swiper.potrfolio-page {
	box-shadow: inset -18px 0px 0px 0px #e0e0e0;
}

.page-window-bottom:before{
	content: '';
	width: 20px;
	height: 30px;
	position: absolute;
	right: -2px;
	bottom: -4px;
	z-index: 5;
	background-color: #e0e0e0;
}

.btns-l {
	display: inline-flex;
	position: relative;
	line-height: 1;
	width: 11px;
	height: 11px;
	padding-left: 25px;
	z-index: auto;
}

.btns-r {
	display: inline-flex;
	position: relative;
	line-height: 1;
	max-width: 111px;
	height: 11px;
	padding-right: 25px;
	z-index: auto;
}

.page-content {
	min-height: 100%;
}

.wp-block-template-part {
	position: relative;
	height: 100%;
}

.wp-block-columns.exp-items {
	padding: 0 5%;
  	gap: 0 12%;
	align-items: stretch;
	position: relative;
	min-height: 100%;
}

.wp-block-columns.exp-items:after {
	content: '';
	position: absolute;
	width: 1px;
	height: 1000%;
	background-color: #000;
	top: 0;
	left: 50%;
}

.wp-block-columns.exp-items .wp-block-column {
	display: flex;
  	flex-direction: column;
  	min-height: 100%;
  	position: relative;
  	justify-content: flex-start;
	width: 50%;
}

.wp-block-group.exp-item {
	position: relative;
}

.wp-block-group.exp-item .wp-block-image {
	position: absolute;
	right: 20px;
	bottom: -24px;
}

#portfolio .swiper-slide.page-content {
	position: relative;
	bottom: 220vh;
	opacity: 0;
	-webkit-transition: bottom 0.7s ease-in-out .9s, opacity 0.4s ease 0.5s;
	transition: bottom 0.7s ease-in-out .9s, opacity 0.4s ease 0.5s;
}

#portfolio.swiper-slide-active .swiper-slide.page-content {
	bottom: 0;
	opacity: 1;
}

#links .links-content {
	width: calc(100% - 180px);
  	max-width: 100%;
  	padding: 20px 40px;
	margin: auto;
  	z-index: auto;
	margin-right: 50px;
	position: relative;
}

#links .links-content-l {
	position: relative;
	z-index: 5;
}

@media (min-width: 1200px) {
	#links .links-content-l {
		padding-left: 2%;
	}
}

#links .links-content-r {
  height: 466px;
  position: absolute;
  width: 49%;
  background-image: url(./assets/images/less-is-more.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  bottom: 53px;
  right: 2%;
  z-index: 1;
}

#links .links-content p {
	font-family: 'consola', Helvetica, Arial, sans-serif;
  	font-size: clamp(1.125rem, 3.125vw + -0.375rem, 2.125rem);
	line-height: 180%;
}

#links .links-content .highlight {
	padding: .4em 1.1em .4em .8em;
	line-height: 120%;
	font-size: 90%;
}

#links .links-content a {
	text-decoration: none;
	display: inline-block;
	margin-bottom: .15em;
}

@media (max-width: 1200px) {
	.profile-image {
		min-width: 30%;
	}
}

@media (max-width: 992px) {

	.wp-block-columns.exp-items:after {
		display: none;
	}
	.wp-block-columns.exp-items .wp-block-column {
		width: 100%;
	}
	#about .swiper, #experience .swiper, #references .swiper, #portfolio .swiper, #links .swiper, #shop .swiper, #links .links-content {
		width: calc(100% - 140px);
		padding: 20px;
	}
	.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
	.wp-block-columns.exp-items {
		flex-wrap: wrap !important;
		width: auto;
	}
	.wp-block-group.exp-item > .wp-block-group {
		gap: 8px !important;
	}
	.wp-block-group.exp-item > .wp-block-group p {
		text-align: left !important;
		flex-grow: 0;
	}
	.about-section h2 {
		display: block;
		margin-bottom: 10px;
	}
	.about-section p {
		margin-bottom: 20px;
	}
	.about-section {
		flex-direction: column-reverse;
	}
	.profile-image {
		min-width: 100px;
		padding-left: 0;
		text-align: center;
		max-width: 100px;
	}
	.profile-image img {
		max-width: 100%;
		margin: -45px 0 0;
	}
	#links .links-content-r {
		height: 344px;
    	width: 50%;
    	bottom: 42px;
    	right: -15px;
	}
}
@media (max-width: 768px) {
	.page-window-head,
	.page-window-bottom {
		width: calc(100% - 60px);
	}
	.inner {
		padding-right: 25px;
	}
	#about .swiper, #experience .swiper, #references .swiper, #portfolio .swiper, #shop .swiper, #links .swiper, #links .links-content {
		width: calc(100% - 100px);
    	padding: 10px 20px;
	}
	.wp-block-columns.alm-protfolio-images {
		flex-direction: column;
	}
	#links .links-content-r {
		height: 244px;
    	width: 56%;
		bottom: 30px;
		right: -10px;
	}
}