/* FAE katalog unutar Titan predloška. Header i footer ostaju netaknuti. */
body.fae-page #content,
body.fae-page .site-content,
body.fae-page #main-content {
	background: #fff;
}

.fae-wrap {
	--fae-yellow: #ffe14a;
	--fae-ink: #1a1a1a;
	background: #fff;
	color: var(--fae-ink);
	padding: 28px 0 64px;
}

.fae-wrap__inner {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.fae-kicker {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.fae-hero h1,
h1.fae-hero {
	margin: 0 0 8px;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	line-height: 1.15;
}

.fae-lead,
.fae-intro,
.fae-copy,
.fae-copy p,
p.fae-copy,
.fae-block p {
	font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

.fae-crumbs {
	margin-bottom: 18px;
	font-size: 0.86rem;
	line-height: 2;
	color: #555;
}

.fae-crumbs a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid var(--fae-yellow);
}

.fae-crumbs__sep {
	margin: 0 0.4em;
}

.fae-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
	gap: 28px;
	margin-top: 36px;
}

/* Do 1024 px kartice su u jednom stupcu i zauzimaju širinu stupca, bez prelijevanja. */
@media (max-width: 1024px) {
	.fae-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fae-card {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}

.fae-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-bottom: 4px solid var(--fae-yellow);
	border-radius: 16px;
	min-height: 100%;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fae-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.fae-card__media {
	display: block;
	background: #f6f6f6;
	overflow: hidden;
}

.fae-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fae-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 20px;
}

.fae-card__body strong {
	font-size: 1.2rem;
	line-height: 1.25;
}

.fae-card__summary {
	color: #444;
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 300;
}

.fae-card__specs {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	color: #333;
	font-size: 0.9rem;
	line-height: 1.4;
}

.fae-card__specs span {
	color: #666;
}

.fae-gallery {
	margin: 28px 0 36px;
}

.fae-gallery__frame {
	position: relative;
}

.fae-gallery__thumbs {
	display: none;
}

:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-gallery__stage,
:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-gallery__item {
	all: unset;
	box-sizing: border-box;
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 18px;
	background: #f3f3f3 !important;
	color: inherit !important;
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: none;
	cursor: pointer;
}

:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-gallery__stage {
	aspect-ratio: 16 / 10;
	cursor: zoom-in;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-gallery__stage img,
:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #f3f3f3;
}

:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-gallery__nav {
	all: unset;
	box-sizing: border-box;
	position: absolute !important;
	top: 50% !important;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 46px !important;
	height: 46px !important;
	min-width: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	transform: translateY(-50%) !important;
	background: #fff !important;
	color: #1a1a1a !important;
	font-size: 2rem !important;
	font-weight: 500;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
	cursor: pointer;
}

.fae-gallery__nav--prev {
	left: 12px !important;
}

.fae-gallery__nav--next {
	right: 12px !important;
}

.fae-gallery__count {
	position: absolute;
	left: 50%;
	bottom: 12px;
	z-index: 2;
	transform: translateX(-50%);
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 0.8rem;
	line-height: 1.2;
	pointer-events: none;
}

.fae-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
}

.fae-lightbox img {
	max-width: min(1200px, 92vw);
	max-height: 86vh;
	object-fit: contain;
}

body.fae-page .fae-lightbox button {
	all: unset;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.fae-lightbox__close {
	top: 16px;
	right: 20px;
}

.fae-lightbox__prev {
	left: 16px;
}

.fae-lightbox__next {
	right: 16px;
}

.fae-equipment__layout {
	display: grid;
	grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment__list,
:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment .fae-equipment__layout > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment__list li,
:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment .fae-equipment__layout > ul li {
	list-style: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment__list li::before,
:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment__list li::marker,
:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment .fae-equipment__layout > ul li::before,
:is(body.fae-page, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-equipment .fae-equipment__layout > ul li::marker {
	content: none;
}

:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-equipment__item {
	all: unset;
    box-sizing: border-box;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border: none;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--fae-ink) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
    box-shadow: none !important;
    cursor: pointer;
}

:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-equipment__item:hover,
:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) button.fae-equipment__item.is-active {
	background: var(--fae-yellow) !important;
	border-color: var(--fae-yellow) !important;
	color: var(--fae-ink) !important;
	font-weight: 700;
}

.fae-equipment__preview {
	width: 100%;
	object-fit: contain;
	background: #f6f6f6;
	border: 1px solid #eee;
	border-radius: 16px;
}

@media (max-width: 700px) {
	.fae-equipment__layout {
		grid-template-columns: 1fr;
	}
}

.fae-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.fae-specs li {
	padding: 12px 14px;
	background: var(--fae-yellow);
}

.fae-specs span {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fae-block h2,
h2.fae-block,
.fae-inquiry h2 {
	margin: 40px 0 10px;
    font-size: 1.8rem;
    text-transform: uppercase;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.fae-block:not(.fae-equipment) ul,
ul.fae-list,
ul.fae-related,
.fae-related {
	margin: 0;
	padding-left: 1.1rem;
	line-height: 1.55;
	font-size: 1.2rem;
    font-weight: 300;
}

.fae-pdf a {
	display: inline-block;
	background: var(--fae-ink);
	color: #fff;
	text-decoration: none;
	padding: 10px 16px;
	border: 0;
	cursor: pointer;
	margin-top: 30px;
}

:is(body.fae-page .fae-wrap, .editor-styles-wrapper, .wpb_wrapper, .mce-content-body) .fae-inquiry button[type="submit"] {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	width: fit-content;
	background: var(--fae-ink);
	color: #fff;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.fae-note {
	margin-top: 28px;
	font-weight: 600;
}

.fae-inquiry form {
	display: grid;
	gap: 12px;
	max-width: 560px;
}

.fae-inquiry label {
	display: grid;
	gap: 4px;
	font-size: 0.92rem;
}

body.fae-page .fae-inquiry input:not([type="hidden"]),
body.fae-page .fae-inquiry textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	color: var(--fae-ink);
	padding: 10px 12px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

.fae-hp {
	position: absolute;
	left: -9999px;
}

.fae-inquiry__ok {
	color: #0a6b0a;
}

.fae-inquiry__err {
	color: #9b1c1c;
}

/* Uređivanje FAE stranice u adminu: bijela podloga i ista širina kao na webu. */
.editor-styles-wrapper:has(.fae-hero) .wp-block,
.editor-styles-wrapper:has(h1.fae-hero) .wp-block,
.editor-styles-wrapper:has(.fae-gallery) .wp-block {
	max-width: 1120px;
}

.editor-styles-wrapper .fae-gallery .wp-block-image img {
	width: 100%;
	height: auto;
}

.editor-styles-wrapper:has(.fae-hero),
.editor-styles-wrapper:has(h1.fae-hero),
.editor-styles-wrapper:has(.fae-grid),
.editor-styles-wrapper:has(.fae-gallery),
body.wp-admin .wpb_wrapper:has(.fae-hero),
body.wp-admin .wpb_wrapper:has(.fae-grid),
body.wp-admin .wpb_wrapper:has(.fae-gallery),
.mce-content-body:has(.fae-hero),
.mce-content-body:has(.fae-grid),
.mce-content-body:has(.fae-gallery) {
	--fae-yellow: #ffe14a;
	--fae-ink: #1a1a1a;
	background: #fff;
	color: #1a1a1a;
	max-width: 1120px;
}
