/*
 * 4You Elements — slajder i galerija.
 * Boje prate Elementor Site Settings preko promenljivih iz teme (--fy-*), sa rezervnim vrednostima.
 */

/* ============================================================ Slajder */
.fy-hero {
	--fy-dur: 6.5s;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(600px, 60vw, 880px);
	overflow: hidden;
	isolation: isolate;
	background: #1C1B1A;
	color: #fff;
}

.fy-hero__media {
	position: absolute;
	inset: 0;
	animation: fy-hin 1.6s cubic-bezier(.2, .8, .2, 1) both;
}

.fy-hero .fy-hero__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.4s ease, transform 7.5s ease-out;
}

.fy-hero .fy-hero__img.is-active {
	opacity: 1;
}

.fy-hero .fy-hero__img.is-zoom {
	transform: scale(1.08);
}

.fy-hero__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(12, 12, 12, .32) 0%, rgba(12, 12, 12, 0) 22%),
		linear-gradient(180deg, rgba(12, 12, 12, 0) 34%, rgba(12, 12, 12, .78) 100%),
		linear-gradient(90deg, rgba(12, 12, 12, .5) 0%, rgba(12, 12, 12, 0) 58%);
}

.fy-hero__inner {
	position: relative;
	width: min(1408px, calc(100% - 2 * var(--fy-gutter, 16px)));
	margin: 0 auto;
	padding: clamp(20px, 4vw, 52px) clamp(20px, 4vw, 52px) clamp(24px, 4vw, 52px);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 40px;
}

.fy-hero__text {
	flex: 1 1 420px;
	min-width: 0;
	max-width: 720px;
}

.fy-hero__badge {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .3);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.fy-hero__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fy-accent, #D9B77E);
}

.fy-hero .fy-hero__title {
	margin: 18px 0 0;
	color: #fff;
}

.fy-hero__lead {
	margin: 16px 0 0;
	max-width: 520px;
	font-size: 19px;
	line-height: 1.55;
	color: #E8E4DB;
}

.fy-hero__btns {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fy-hero .fy-btn {
	display: inline-flex;
}

.fy-hero .elementor-button.fy-hero__btn--white {
	background-color: #fff;
	color: var(--fy-ink, #121212);
	--fy-ic-bg: var(--fy-ink, #121212);
	--fy-ic-fg: #fff;
}

.fy-hero .elementor-button.fy-hero__btn--glass {
	background-color: rgba(255, 255, 255, .18);
	color: #fff;
}

.fy-hero .elementor-button.fy-hero__btn--white:hover,
.fy-hero .elementor-button.fy-hero__btn--white:focus {
	background-color: #fff;
	color: var(--fy-ink, #121212);
}

.fy-hero .elementor-button.fy-hero__btn--glass:hover,
.fy-hero .elementor-button.fy-hero__btn--glass:focus {
	color: #fff;
}

.fy-hero__ctrl {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.fy-hero .fy-hero__thumbs {
	display: flex;
	gap: 8px;
}

.fy-hero .fy-hero__thumb {
	position: relative;
	width: 84px;
	height: 60px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .35);
	border-radius: 14px;
	overflow: hidden;
	background: #1C1B1A;
	opacity: .7;
	cursor: pointer;
	transition: transform .3s, border-color .3s, opacity .3s;
}

.fy-hero .fy-hero__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fy-hero .fy-hero__thumb:hover {
	transform: translateY(-3px);
	opacity: 1;
}

.fy-hero .fy-hero__thumb.is-active {
	border-color: #fff;
	opacity: 1;
}

.fy-hero__nav {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .3);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.fy-hero .fy-hero__arrow {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	cursor: pointer;
	transition: background-color .25s;
}

.fy-hero .fy-hero__arrow:hover,
.fy-hero .fy-hero__arrow:focus {
	background: rgba(255, 255, 255, .34);
	color: #fff;
}

.fy-hero__meta {
	min-width: 168px;
	padding: 0 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fy-hero__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.fy-hero__bar {
	display: block;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .3);
	overflow: hidden;
}

.fy-hero__bar span {
	display: block;
	height: 100%;
	background: #fff;
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.fy-hero.is-playing .fy-hero__bar span {
	animation: fy-prog var(--fy-dur) linear both;
}

@keyframes fy-prog {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes fy-hin {
	from { transform: scale(1.04); }
	to { transform: none; }
}

@media (max-width: 767px) {
	.fy-hero .fy-hero__thumbs {
		display: none;
	}

	.fy-hero__ctrl {
		align-items: flex-start;
		width: 100%;
	}

	.fy-hero__lead {
		font-size: 16px;
	}
}

/* ============================================================ Galerija */
.fy-gal__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding: 8px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid var(--fy-line, #DCD6CA);
}

.fy-gal__bar.is-sticky {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px);
	z-index: 10;
}

.fy-gal__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.fy-gal .fy-gal__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fy-ink, #121212);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .3s, color .3s, transform .3s;
}

.fy-gal .fy-gal__pill span {
	font-size: 12px;
	opacity: .65;
}

.fy-gal .fy-gal__pill:hover,
.fy-gal .fy-gal__pill:focus {
	background: var(--fy-hover, #E8E4DB);
	color: var(--fy-ink, #121212);
	transform: translateY(-1px);
}

.fy-gal .fy-gal__pill.is-active,
.fy-gal .fy-gal__pill.is-active:hover,
.fy-gal .fy-gal__pill.is-active:focus {
	background: var(--fy-ink, #121212);
	color: #fff;
}

.fy-gal__count {
	margin: 0;
	padding-right: 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fy-text2, #5E5A55);
}

.fy-gal__count em {
	font-style: normal;
}

.fy-gal__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, var(--fy-col, 220px)), 1fr));
	grid-auto-rows: 180px;
	grid-auto-flow: dense;
	gap: 12px;
}

.fy-gal .fy-gal__item {
	position: relative;
	grid-row: span 2;
	padding: 0;
	border: 0;
	border-radius: 20px;
	overflow: hidden;
	background: var(--fy-ph, #DFD9CE);
	color: var(--fy-ink, #121212);
	font-family: inherit;
	text-align: left;
	cursor: zoom-in;
}

.fy-gal .fy-gal__item.is-wide {
	grid-column: span 2;
}

.fy-gal .fy-gal__item[hidden] {
	display: none;
}

.fy-gal .fy-gal__item:hover,
.fy-gal .fy-gal__item:focus {
	background: var(--fy-ph, #DFD9CE);
}

.fy-gal .fy-gal__item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.fy-gal .fy-gal__item:hover img {
	transform: scale(1.06);
}

.fy-gal .fy-gal__item.is-in {
	animation: fy-gin .6s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes fy-gin {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: none; }
}

.fy-gal__cap {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 13px;
	line-height: 1.3;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .35s, transform .35s;
}

.fy-gal__cap b {
	min-width: 0;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fy-gal__cap span {
	flex: none;
	color: var(--fy-text2, #5E5A55);
	white-space: nowrap;
}

.fy-gal .fy-gal__item:hover .fy-gal__cap,
.fy-gal .fy-gal__item:focus-visible .fy-gal__cap {
	opacity: 1;
	transform: none;
}

.fy-gal__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.fy-gal .fy-gal__more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 7px 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--fy-card, #EAE6DD);
	color: var(--fy-ink, #121212);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .3s, box-shadow .3s;
}

.fy-gal .fy-gal__more span {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--fy-ink, #121212);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 400;
}

.fy-gal .fy-gal__more:hover,
.fy-gal .fy-gal__more:focus {
	background: var(--fy-card, #EAE6DD);
	color: var(--fy-ink, #121212);
	transform: translateY(-2px);
	box-shadow: 0 14px 26px -16px rgba(18, 18, 18, .55);
}

@media (hover: none) {
	.fy-gal__cap {
		display: none;
	}
}

@media (max-width: 767px) {
	.fy-gal__bar {
		border-radius: 24px;
	}

	.fy-gal__bar.is-sticky {
		position: static;
	}

	.fy-gal .fy-gal__pill {
		min-height: 40px;
		padding: 0 14px;
	}
}

/* ============================================================ Pregled fotografije (lightbox) */
.fy-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: rgba(12, 12, 12, .95);
	color: #fff;
	animation: fy-lbf .35s ease both;
}

.fy-lb[hidden] {
	display: none;
}

@keyframes fy-lbf {
	from { opacity: 0; }
	to { opacity: 1; }
}

.fy-lb__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px clamp(12px, 3vw, 28px);
	font-size: 14px;
	font-weight: 600;
}

.fy-lb .fy-lb__btn {
	width: 48px;
	height: 48px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background-color .25s;
}

.fy-lb .fy-lb__btn:hover,
.fy-lb .fy-lb__btn:focus {
	background: rgba(255, 255, 255, .26);
	color: #fff;
}

.fy-lb__stage {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 clamp(8px, 2vw, 24px);
}

.fy-lb__fig {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.fy-lb__img {
	max-width: 100%;
	max-height: calc(100vh - 230px);
	max-height: calc(100dvh - 230px);
	width: auto;
	height: auto;
	border-radius: 14px;
	object-fit: contain;
	animation: fy-zin .5s cubic-bezier(.2, .8, .2, 1) both;
}

.fy-lb__img.is-swap {
	animation: none;
}

@keyframes fy-zin {
	from { opacity: 0; transform: scale(.96); }
	to { opacity: 1; transform: none; }
}

.fy-lb__cap {
	font-size: 14px;
	color: rgba(255, 255, 255, .8);
	text-align: center;
}

.fy-lb__cap span {
	opacity: .6;
	margin-left: 8px;
}

.fy-lb .fy-lb__thumbs {
	display: flex;
	gap: 8px;
	padding: 14px clamp(12px, 3vw, 28px) 18px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.fy-lb .fy-lb__thumb {
	flex: none;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: #2A2826;
	opacity: .55;
	cursor: pointer;
	transition: opacity .3s, transform .3s, border-color .3s;
}

.fy-lb .fy-lb__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fy-lb .fy-lb__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.fy-lb .fy-lb__thumb.is-active {
	opacity: 1;
	border-color: #fff;
}

body.fy-lb-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.fy-lb__stage {
		position: relative;
		padding: 0;
	}

	.fy-lb__arrow {
		position: absolute;
		bottom: 8px;
		z-index: 2;
	}

	.fy-lb__arrow[data-dir="-1"] {
		left: 12px;
	}

	.fy-lb__arrow[data-dir="1"] {
		right: 12px;
	}

	.fy-lb__img {
		border-radius: 0;
		max-height: calc(100dvh - 200px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fy-hero__img,
	.fy-hero__media,
	.fy-gal .fy-gal__item,
	.fy-gal .fy-gal__item img,
	.fy-lb,
	.fy-lb__img {
		animation: none !important;
		transition: none !important;
	}

	.fy-hero__img.is-zoom {
		transform: none;
	}
}

/* ============================================================ Animacije (slajder, galerija) */
.fy-hero__media {
	translate: 0 var(--fy-hy, 0);
	will-change: translate;
}

.fy-hero__inner {
	opacity: var(--fy-ho, 1);
	translate: 0 var(--fy-hi, 0);
}

/* Naslov slajdera izlazi red po red iz maske */
.fy-hero .fy-ln {
	display: block;
	overflow: hidden;
	padding: .04em .06em .14em 0;
	margin-bottom: -.14em;
}

.fy-hero .fy-ln > span {
	display: inline-block;
	animation: fy-up 1.25s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes fy-up {
	from { transform: translateY(115%); }
	to { transform: none; }
}

/* Natpis pored brojača se smenjuje */
.fy-hero__cap.is-swap {
	animation: fy-capin .6s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes fy-capin {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* Galerija: fotografije isplivaju kad uđu u ekran (stepenasto, --fy-d iz widgets.js) */
html.fy-js .fy-gal .fy-gal__item {
	opacity: 0;
	transform: translateY(40px) scale(.97);
	transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--fy-d, 0s), transform 1.1s cubic-bezier(.16, 1, .3, 1) var(--fy-d, 0s);
}

html.fy-js .fy-gal .fy-gal__item.is-seen {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.fy-hero .fy-ln > span,
	.fy-hero__cap.is-swap {
		animation: none !important;
	}

	.fy-hero__media,
	.fy-hero__inner {
		translate: none !important;
		opacity: 1 !important;
	}
}

/* Natpis na fotografiji u galeriji: taman tekst na beloj pilulici (dugme na hover inače dobija belu boju teksta iz Site Settings) */
.fy-gal .fy-gal__item .fy-gal__cap,
.fy-gal .fy-gal__item:hover .fy-gal__cap,
.fy-gal .fy-gal__item:focus .fy-gal__cap {
	color: var(--fy-ink, #121212);
}

.fy-gal .fy-gal__item .fy-gal__cap b {
	color: var(--fy-ink, #121212);
}

.fy-gal .fy-gal__item .fy-gal__cap span {
	color: var(--fy-text2, #5E5A55);
}

.fy-gal .fy-gal__item:hover,
.fy-gal .fy-gal__item:focus {
	color: var(--fy-ink, #121212);
}

/* Znak „+“ kao SVG – tačno na sredini kruga */
.fy-gal .fy-gal__more span svg {
	display: block;
	width: 14px;
	height: 14px;
}

/* Pregled: stara fotografija se odmah skloni, nova uđe (fy-zin) čim stigne – srednja, pa velika */
.fy-lb__img.is-loading {
	opacity: 0;
	animation: none;
}
