/*
Theme Name: Avada Child
Description: Child téma DFC pro Avada 7. Vlastní logika (objednávkový systém Setkarta) je v pluginu dfc-setkarta.
Author: znackarna
Template: Avada
Version: 2.0.0
Text Domain: Avada
*/

/* === Vlastní styly DFC (ladí se 1:1 ve fázi 4) === */
/* Šířka obsahu 90 % JEN na výpisech portfolia (body.dfc-wide-content přidá functions.php
   stránkám s [fusion_portfolio]) a na detailu modelky. Ostatní stránky zůstávají default. */
body.dfc-wide-content #main .fusion-row,
body.single-avada_portfolio #main .fusion-row { max-width: 90% !important; }

.order { width: 100%; margin-bottom: 2em; float: left; }
.order .item { float: left; margin-right: 1em; margin-bottom: 2em; 	width: 200px; height: 400px; }
.order .item .name { margin-top: 10px; font-size: 14px; }
.order .item .excerpt { margin-top: 10px; font-size: 13px; }

.gform_wrapper .datepicker.medium { width: 100px !important; }

#main { padding-top: 93px !important; }
.button, #main .gform_button.button { background-color: rgba(20,23,25,0.85); padding: 7px; color: #fff; border: 1px solid; }
#main .gform_button.button { -webkit-box-shadow: none !important; box-shadow: none !important; -webkit-transition: none !important; transition: none !important; }
#main .gform_button.button:hover { color: #ae895d; }

#side-header { z-index: 1000 }

.single-navigation a[rel=prev] { margin-right: 15px; }
.fusion-recent-works .fusion-image-wrapper, .order-item .photo { position: relative; }
.cart-link { position: absolute; top: 10px; right: 10px; background: rgba(20,23,25,0.85); border-radius: 100%; width: 27px; height: 27px; text-align: center; font-weight: bold; }
.cart-link a { display: block; font-size: 22px; line-height: 27px; }
.download { float: left; width: 100%; margin-top: 10px; }

.fusion-portfolio-six .fusion-portfolio-post {
	width: 200px;
	height: 400px;
}

.fusion-carousel .fusion-carousel-item .fusion-image-wrapper {
	margin-left: auto;
	margin-right: auto;
	display: block;
	max-height: 250px;
}

.menu-horni-menu-container {
	position: fixed;
	left: 280px;
	z-index: 1000;
	width: calc(100vw - 280px);
	border-bottom: 1px solid #e5e5e5;
}

.menu-horni-menu-container ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #171b1d;
}

.menu-horni-menu-container ul li {
	float: left;
	border-right: 1px solid #e5e5e5;
}

.menu-horni-menu-container ul li.current-menu-item {
	border-right: 6px solid #ae895d;
}

.menu-horni-menu-container ul li.current-menu-item a {
	color: #ae895d;
}

.menu-horni-menu-container li a {
	display: inline-block;
	color: white;
	text-align: center;
	padding: 27px 45px;
	text-decoration: none;
}

.menu-horni-menu-container li:hover a {
	color: #ae895d;
}

.menu-horni-menu-container li:last-child {
	float: right;	
	margin-right: 1em;
}

.fusion-mobile-nav-holder { position: relative; z-index: 1000; }

.rgg_imagegrid a img { padding: 7px; border: none; }


@media (max-width: 1024px) {
	/* rozcestník ŽENY/MUŽI/HOSTESKY + VÝBĚR — na mobilu kompaktní lišta nad hlavičkou
	   (na přání klienta 2026-07-05; dřív skrytý, přímé odkazy ale lidem chyběly) */
	.menu-horni-menu-container { position: static; left: auto; width: 100%; }
	.menu-horni-menu-container ul { display: flex !important; }
	.menu-horni-menu-container ul li { float: none !important; flex: 1 1 0 !important; min-width: 0 !important; text-align: center; }
	.menu-horni-menu-container ul li.current-menu-item { border-right-width: 1px; border-bottom: 3px solid #ae895d; }
	.menu-horni-menu-container li a { display: block !important; padding: 12px 2px !important; font-size: 12.5px !important; white-space: nowrap; }
	.menu-horni-menu-container li:last-child { float: none !important; margin-right: 0 !important; border-right: none; }
	/* hlavička přes celou šířku (boční header sbalený nahoru) */
	body.side-header-left #side-header,
	#side-header,
	#side-header .side-header-wrapper,
	#side-header .side-header-content {
		width: 100% !important; max-width: 100% !important;
		position: relative !important; left: 0 !important; float: none !important;
	}
	body.side-header-left #wrapper,
	body.side-header-left #content { margin-left: 0 !important; }
	/* horní padding obsahu byl kvůli fixní desktop liště (teď skrytá) → zrušit */
	#main { padding-top: 0 !important; }
}

.fusion-column-wrapper .gallery {
	/*margin-left: 0px !important;
	margin-right: 0px !important;*/
	max-width: none !important;
}

/* === DFC výpis modelek (Avada portfolio grid) — produkční vzhled ===
 * JS (js/dfc-portfolio.js) doplní „+" tlačítko a .dfc-text-pod podtitulek. */
/* malé zlaté jméno místo velkého nadpisu */
.fusion-portfolio-post .fusion-portfolio-content h2.fusion-post-title,
.fusion-portfolio-post .fusion-portfolio-content .fusion-post-title {
	font-size: 14px !important;
	line-height: 1.3 !important;
	font-weight: 400 !important;
	text-align: left !important;
	margin: 12px 0 2px !important;
}
.fusion-portfolio-post .fusion-portfolio-content h2.fusion-post-title a { color: #ae895d !important; }
/* skrýt kategorie + bio excerpt (nahradí text_pod) */
.fusion-portfolio-post .fusion-portfolio-meta,
.fusion-portfolio-post .fusion-post-content { display: none !important; }
/* text_pod podtitulek */
.fusion-portfolio-post .dfc-text-pod {
	color: #ae895d;
	font-size: 13px;
	text-transform: uppercase;
	text-align: left;
	margin: 0 0 10px;
}
/* Vlastní mřížka výpisu — přebíjí Avada masonry (JS absolutní pozicování), které se
   s jednotnou výškou fotek pralo. 5 sloupců jako produkce, pevný poměr 2:3 (orig.
   portfolio-six 200×300), kontrolovaná mezera. */
.fusion-portfolio-wrapper {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px 16px;
	margin: 0 !important;
	height: auto !important;
}
/* `body` prefix zvyšuje specificitu na 0,2,1 — Avada v media queries nastavuje
   `.fusion-portfolio-five .fusion-portfolio-post{width:50%!important}` (0,2,0) a načítá se
   ZA tímto souborem; bez vyšší specificity by vyhrála a fotka by na výšku byla jen ~89px. */
body .fusion-portfolio-wrapper .fusion-portfolio-post {
	position: static !important;
	left: auto !important;
	top: auto !important;
	/* dlaždice MUSÍ vyplnit sloupec gridu; Avada jí dává float:left + width:50% */
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
.fusion-portfolio-post .fusion-image-wrapper { display: block; }
.fusion-portfolio-post .fusion-image-wrapper img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	display: block;
}
.fusion-portfolio-post .fusion-portfolio-content { margin-top: 8px !important; }
@media (max-width: 1100px) { .fusion-portfolio-wrapper { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .fusion-portfolio-wrapper { grid-template-columns: repeat(2, 1fr); } }

/* „+" tlačítko výběru (overlay na fotce) */
.fusion-portfolio-post .fusion-image-wrapper { position: relative; }
.fusion-portfolio-post .dfc-grid-add {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	background: rgba(20,23,25,0.85);
	color: #fff;
	border-radius: 50%;
	font-size: 20px;
	font-weight: bold;
	text-decoration: none;
}
.fusion-portfolio-post .dfc-grid-add:hover,
.fusion-portfolio-post .dfc-grid-add.is-in { background: #ae895d; color: #fff; }

/* === DFC stránka výběru / objednávka ([kosik]) — tmavé pozadí jako produkce === */
body.dfc-dark-page,
body.dfc-dark-page #main,
body.dfc-dark-page #content { background-color: #171b1d !important; }
body.dfc-dark-page #content,
body.dfc-dark-page h1, body.dfc-dark-page h2, body.dfc-dark-page h3, body.dfc-dark-page h4,
body.dfc-dark-page p, body.dfc-dark-page li, body.dfc-dark-page label,
body.dfc-dark-page .gform_wrapper, body.dfc-dark-page .gfield_label,
body.dfc-dark-page .gform_description, body.dfc-dark-page .gsection_description,
body.dfc-dark-page .gfield_choice_label, body.dfc-dark-page .gform_required_legend,
/* hlavičky sloupců repeatovaných List polí (Datum od-do, Klient…) mají třídu
   gform-field-label + gfield_header_item (NE gfield_label) → jinak zůstanou tmavé */
body.dfc-dark-page .gfield-field-label, body.dfc-dark-page .gform-field-label,
body.dfc-dark-page .gfield_header_item,
body.dfc-dark-page .ginput_counter, body.dfc-dark-page .gfield_description { color: #eaeaea !important; }
/* pojistka: přebít i GF proměnnou barvy labelu (labely řízené var(--gf-local-color)) */
body.dfc-dark-page .gform_wrapper { --gf-ctrl-label-color-primary: #eaeaea; --gf-local-color: #eaeaea; }
body.dfc-dark-page a:not(.button):not(.dfc-remove) { color: #ae895d; }
body.dfc-dark-page .order .item .name a { color: #ae895d !important; }
/* Gravity Forms validační hlášky — chyběl padding (text nalepený na border) */
.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message { padding: 10px 14px !important; text-align: left; }
.gform_wrapper .gform_validation_errors { padding: 14px 18px !important; }
/* Labely jako produkce: tučné + povinné = červená hvězdička.
   Mezeru label↔pole nuluje AVADA (Fusion dynamic CSS): `.gform_wrapper .top_label .gfield_label
   { margin-bottom: 0 !important }` (0,3,0 + !important) → přebít VYŠŠÍ specificitou (předřazené `body`
   = 0,3,1). Proto nefungoval ani margin na labelu, ani GF proměnná --gf-label-space-primary. */
body .gform_wrapper .top_label .gfield_label { margin-bottom: 16px !important; }
body .gform_wrapper .top_label .gfield--type-checkbox .gfield_label,
body .gform_wrapper .top_label .gfield--type-radio .gfield_label { margin-bottom: 14px !important; }
.gform_wrapper .gfield_label { font-weight: 700 !important; }
.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required .gfield_required_asterisk { color: #e02b2b !important; font-weight: 700; margin-left: 5px; }
/* GF 2.9 přidává legendu „* indicates required fields" — originál ji nemá → skrýt */
.gform_wrapper .gform_required_legend { display: none !important; }

/* List (repeater) pole na MOBILU: GF skryje řádek hlaviček a jméno sloupce ukáže jako
   ::before na buňce (display:inline, margin:0) → label nalepený na poli, na rozdíl od
   běžných polí s 16px mezerou (formulář Poptávka). Dáme mu vlastní řádek + mezeru. */
@media (max-width: 640px) {
	body .gform_wrapper .gfield_list_group_item.gfield_list_cell::before {
		display: block;
		margin-bottom: 8px;
	}
	/* mezera mezi řádky repeatovaného pole (jednotlivé „záznamy") */
	body .gform_wrapper .gfield_list_group_item.gfield_list_cell { margin-bottom: 12px; }
}

/* === DFC obsahové galerie [gallery] na stránkách === */
/* Výchozí WP float styl vypnut (use_default_gallery_style=false, functions.php; jeho inline
   `#gallery-N .gallery-item{float;width:12%}` přes ID nešel přebít) → čistá responsivní grid
   mřížka. Detail modelky má vlastní flex galerii (.dfc-gallery-full) → tady vyloučen. */
body:not(.single-avada_portfolio) .gallery { display: grid; gap: 12px; margin: 1.5em 0 !important; align-items: start; }
body:not(.single-avada_portfolio) .gallery.gallery-columns-1 { grid-template-columns: 1fr; }
body:not(.single-avada_portfolio) .gallery.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
body:not(.single-avada_portfolio) .gallery.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
body:not(.single-avada_portfolio) .gallery.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
body:not(.single-avada_portfolio) .gallery.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
body:not(.single-avada_portfolio) .gallery.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
body:not(.single-avada_portfolio) .gallery.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
body:not(.single-avada_portfolio) .gallery.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
body:not(.single-avada_portfolio) .gallery.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }
body:not(.single-avada_portfolio) .gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
body:not(.single-avada_portfolio) .gallery .gallery-icon { margin: 0 !important; padding: 0 !important; }
body:not(.single-avada_portfolio) .gallery .gallery-item { position: relative; }
body:not(.single-avada_portfolio) .gallery .gallery-item img { width: 100% !important; height: auto !important; border: 0 !important; display: block; }
body:not(.single-avada_portfolio) .gallery br { display: none !important; }
/* popisky (gallery-caption) bílý text na tmavém overlay u spodku, viditelné JEN na hover (jako produkce) */
body:not(.single-avada_portfolio) .gallery .gallery-item .gallery-caption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 5px 8px !important;
	background: rgba(0,0,0,0.6); color: #fff !important; font-size: 12px; line-height: 1.3; text-align: left;
	opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
body:not(.single-avada_portfolio) .gallery .gallery-item:hover .gallery-caption { opacity: 1; }
@media (max-width: 800px) { body:not(.single-avada_portfolio) .gallery[class*="gallery-columns-"] { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { body:not(.single-avada_portfolio) .gallery[class*="gallery-columns-"] { grid-template-columns: repeat(2, 1fr); } }

/* === DFC boční header (desktop) — doladění 1:1 dle designu === */
/* celá hlavička má 1px pravý border */
#side-header { border-right: 1px solid rgba(255,255,255,0.2); }
/* hover položky → hnědý text (menu_hover color se na boční menu neprojevoval) */
#side-header .fusion-main-menu li > a:hover .menu-text,
#side-header .fusion-main-menu li > a:hover,
#side-header .fusion-main-menu li:hover > a .menu-text { color: #ae895d !important; }
/* aktivní položka → hnědý text (zlatý pravý border už dělá Avada highlight-bar) */
#side-header .fusion-main-menu li.current-menu-item > a,
#side-header .fusion-main-menu li.current-menu-item > a .menu-text,
#side-header .fusion-main-menu li.current_page_item > a,
#side-header .fusion-main-menu li.current_page_item > a .menu-text { color: #ae895d !important; }
/* ikona hledání = font-glyph na .fusion-main-menu-icon:after (barveno --nav_typography-color, tmavé) → bílá */
#side-header .fusion-main-menu-search .fusion-main-menu-icon:after,
#side-header .fusion-main-menu .fusion-main-menu-icon:after { color: #ffffff !important; }

/* === DFC mobilní menu (side header sbalený < 1024px) — bordery/aktivní/hledání jako produkce === */
/* bílé oddělovače mezi položkami + pravý border menu */
.fusion-mobile-nav-holder .fusion-mobile-menu .fusion-mobile-nav-item { border-bottom: 1px solid rgba(255,255,255,0.4) !important; }
.fusion-mobile-nav-holder .fusion-mobile-menu { border-right: 1px solid rgba(255,255,255,0.4); }
/* aktivní položka: zlatá + pravý zlatý border (jako produkce) */
.fusion-mobile-nav-holder .fusion-mobile-menu .fusion-mobile-current-nav-item > a,
.fusion-mobile-nav-holder .fusion-mobile-menu .fusion-mobile-current-nav-item > a .menu-text { color: #ae895d !important; }
.fusion-mobile-nav-holder .fusion-mobile-menu .fusion-mobile-current-nav-item { border-right: 3px solid #ae895d !important; }
/* hledání: ikona/pole byly tmavé na tmavém → zviditelnit (světlý border + bílá ikona) */
.fusion-mobile-menu-search input.s { color: #fff !important; border-color: rgba(255,255,255,0.4) !important; }
.fusion-mobile-menu-search .fusion-search-submit,
.fusion-mobile-menu-search .searchsubmit { filter: brightness(0) invert(1); opacity: 1 !important; }

/* === DFC archiv portfolio kategorie/štítku (taxonomy) === */
/* nadpis (parent term + term) předřazený JS před grid; grid samotný stylují globální
   .fusion-portfolio-* pravidla (5 sloupců, malá zlatá jména), text_pod doplní JS. */
.dfc-archive-head { margin: 0 0 28px; }
.dfc-archive-head .dfc-single-title { font-size: 38px; line-height: 1.15; font-weight: 400; color: #fff !important; margin: 0 0 6px; text-align: left; }
.dfc-archive-head .dfc-archive-sub { font-size: 30px; line-height: 1.15; font-weight: 400; color: #fff; text-transform: uppercase; }
/* archiv má tmavé pozadí jako listing/detail (kdyby ho Avada někde přebila) */
body.tax-portfolio_category, body.tax-portfolio_tags, body.tax-portfolio_skills,
body.tax-portfolio_category #main, body.tax-portfolio_tags #main, body.tax-portfolio_skills #main { background-color: #171b1d; }

/* === DFC detail modelky (single avada_portfolio) — tmavé téma jako produkce === */
/* tmavé pozadí celého detailu */
body.single-avada_portfolio,
body.single-avada_portfolio #main,
body.single-avada_portfolio #content,
body.single-avada_portfolio .project-description,
body.single-avada_portfolio .fusion-portfolio-wrapper { background-color: #171b1d !important; }
/* světlý text obsahu (statistiky, popisky) */
body.single-avada_portfolio .project-content,
body.single-avada_portfolio .project-content p,
body.single-avada_portfolio .project-content span,
body.single-avada_portfolio .project-content td,
body.single-avada_portfolio .project-content strong,
body.single-avada_portfolio .project-content .fusion-text,
body.single-avada_portfolio .dfc-single-title,
body.single-avada_portfolio .project-info,
body.single-avada_portfolio .project-info h3,
body.single-avada_portfolio .project-info h4 { color: #eaeaea !important; }
/* odkazy (kategorie, tagy) + PDF zlaté */
body.single-avada_portfolio .project-info a,
body.single-avada_portfolio .dfc-pdf,
body.single-avada_portfolio .single-navigation a { color: #ae895d !important; }
body.single-avada_portfolio .project-info .project-info-box { border-color: rgba(255,255,255,0.12) !important; }

/* skrýt featured-image slideshow nahoře (foto je už v obsahu) + Avada „Project Description" nadpis */
body.single-avada_portfolio .fusion-post-slideshow,
body.single-avada_portfolio .post-slideshow { display: none !important; }
body.single-avada_portfolio .project-description > h3:first-child { display: none !important; }
/* „Project Details" v pravém sloupci zmenšit (orig. má malé „Details") */
body.single-avada_portfolio .project-info > h3:first-child { font-size: 13px !important; font-weight: 400 !important; text-transform: uppercase; opacity: .8; }

/* nadpis + podtitulek modelky */
body.single-avada_portfolio .dfc-single-title { font-size: 28px; line-height: 1.2; margin: 0 0 4px; font-weight: 400; color: #fff !important; }
body.single-avada_portfolio .dfc-text-pod-single { color: #ae895d !important; font-size: 14px; text-transform: uppercase; margin: 0 0 20px; }

/* video v 3. sloupci na portrét (jako produkce) — WP core [video] (MEJS vypnut, viz functions.php),
   wrapper .wp-video má inline width → přebít na 100%; video poměr 2:3 + object-fit cover (bez mezery) */
body.single-avada_portfolio .project-content .wp-video { width: 100% !important; height: auto !important; max-width: none !important; }
body.single-avada_portfolio .project-content video {
	width: 100% !important; height: auto !important; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: #000;
}

/* galerie: JS ji přesune do .dfc-gallery-full (plná šířka obsahu, pod 3-sloupec).
   Necháváme VÝCHOZÍ Avada/WP galerii (mezery + původní velikosti), jen zarovnat VLEVO
   (Avada ji defaultně centruje přes margin:0 auto + max-width:1400). */
body.single-avada_portfolio .dfc-gallery-full { clear: both; width: 100%; margin: 20px 0 40px; }
/* flex: původní velikosti obrázků, zarovnání vlevo, BEZ borderu, mezery 1rem (H i V stejně) */
body.single-avada_portfolio .dfc-gallery-full .gallery {
	display: flex !important; flex-wrap: wrap; justify-content: flex-start;
	gap: 1rem !important; margin: 0 !important; max-width: none !important;
}
body.single-avada_portfolio .dfc-gallery-full .gallery br { display: none !important; }
body.single-avada_portfolio .dfc-gallery-full .gallery .gallery-item { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.single-avada_portfolio .dfc-gallery-full .gallery .gallery-icon { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.single-avada_portfolio .dfc-gallery-full .gallery .gallery-item img { border: 0 !important; margin: 0 !important; padding: 0 !important; max-width: none !important; box-shadow: none !important; }

/* Vybrat / PDF tlačítka v meta boxu (JS je tam přesune), dole pod kategorie/tagy */
body.single-avada_portfolio .project-info .dfc-setkarta-actions { margin: 22px 0 0; }
body.single-avada_portfolio .dfc-setkarta-actions .dfc-add {
	display: inline-block; background: transparent; color: #fff !important;
	padding: 9px 26px; text-decoration: none; border: 1px solid rgba(255,255,255,0.5); margin-bottom: 12px;
}
body.single-avada_portfolio .dfc-pdf { display: block; padding: 0; text-decoration: none; }
body.single-avada_portfolio .dfc-setkarta-actions .dfc-add.is-in,
body.single-avada_portfolio .dfc-setkarta-actions .dfc-add:hover { background: #ae895d; border-color: #ae895d; }

/* sdílení (Sdílejte:) — tmavě šedý box, menší text, světlé ikony */
body.single-avada_portfolio .fusion-sharing-box {
	background: #2a2e30 !important; border-color: #2a2e30 !important;
	padding: 16px 22px !important;
}
body.single-avada_portfolio .fusion-sharing-box h4 { color: #cfcfcf !important; font-size: 13px !important; font-weight: 400 !important; }
body.single-avada_portfolio .fusion-sharing-box .fusion-social-network-icon { color: #cfcfcf !important; }

/* související (Podobné / Related) — tmavé, jména (nativní title_below_image) zlatě, bez zeleného hoveru */
body.single-avada_portfolio .related-posts .fusion-title h2,
body.single-avada_portfolio .related-posts .title-heading-left { color: #fff !important; }
/* nadpis: jedna oddělovací linka vedle textu (orig. má single, ne Avada dvojitou) */
body.single-avada_portfolio .related-posts .fusion-title .title-sep { display: none !important; }
body.single-avada_portfolio .related-posts .fusion-title { display: flex !important; align-items: center; border: 0 !important; }
body.single-avada_portfolio .related-posts .fusion-title h2 { white-space: nowrap; margin: 0 !important; }
body.single-avada_portfolio .related-posts .fusion-title::after {
	content: ""; flex: 1 1 auto; height: 1px; margin-left: 22px; background: rgba(255,255,255,0.22);
}
body.single-avada_portfolio .related-posts .fusion-rollover { background: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
/* související: obrázky vyplní celý sloupec (Avada je drží na itemwidth=180 a centruje →
   malé + jméno nesedí s fotkou). Plná šířka slotu + jednotný poměr 3:4. */
body.single-avada_portfolio .related-posts .fusion-carousel-item-wrapper { width: 100% !important; }
body.single-avada_portfolio .related-posts .fusion-carousel-item-wrapper .fusion-image-wrapper {
	width: 100% !important; max-width: none !important; aspect-ratio: 3 / 4; height: auto !important; overflow: hidden;
}
body.single-avada_portfolio .related-posts .fusion-carousel-item-wrapper .fusion-image-wrapper img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
/* jméno zarovnat zleva s fotkou */
body.single-avada_portfolio .related-posts .fusion-carousel-title { padding-left: 0 !important; margin-left: 0 !important; }
body.single-avada_portfolio .related-posts .fusion-rollover-content > *:not(.fusion-link-wrapper) { display: none !important; }
body.single-avada_portfolio .related-posts .fusion-carousel-title,
body.single-avada_portfolio .related-posts .fusion-carousel-title a { color: #ae895d !important; text-align: left; font-size: 14px; }
/* skrýt datum pod jménem (orig. ho nemá) */
body.single-avada_portfolio .related-posts .fusion-carousel-meta { display: none !important; }

/* mezera mezi nadpisem a podnadpisem výpisu (byla příliš velká) — konvertovaný obsah
   má vnořený <h1> uvnitř fusion-title i velký <h1> v fusion-text s defaultními marginy */
.fusion-title.fusion-title-size-two { margin-top: 6px !important; margin-bottom: 6px !important; }
/* Avada „responsive typography" JS vytahuje <h1>/<p> z .fusion-title-heading ven, takže
   v renderovaném DOM jsou přímými potomky .fusion-title (ne .fusion-title-heading). */
.fusion-title h1, .fusion-title .fusion-title-heading h1 { margin: 0 !important; }
.fusion-text > h1:first-child:last-child { margin-bottom: 6px !important; }
/* popis kategorie: <p> uvnitř fusion_title dědil obří font titulu (--fontSize:48) → normální odstavec */
.fusion-title p, .fusion-title p span,
.fusion-title .fusion-title-heading p {
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	margin: 8px 0 0 !important;
}

/* vypnout ošklivý Avada hover (rollover) nad fotkou — produkce hover nemá; fotku ale
   necháme klikatelnou (.fusion-link-wrapper zůstává, jen průhledné pozadí bez obsahu) */
/* pozn.: zelená byla Avada background-IMAGE gradient (#aad75d→#d1e990), ne background-color.
   Rollover držíme vždy v pozici (bez hover animace opacity/translateX), jinak je celoplošný
   odkaz .fusion-link-wrapper chvíli mimo plochu = klik „neaktivní" než doanimuje. */
.fusion-portfolio-post .fusion-rollover {
	background: none !important; opacity: 1 !important; transform: none !important; transition: none !important;
}
.fusion-portfolio-post .fusion-rollover-content > *:not(.fusion-link-wrapper) { display: none !important; }
.fusion-portfolio-post .fusion-image-wrapper:hover { opacity: 1 !important; }

/* === DFC vyhledávání (custom search.php) — modelky jako fotomřížka, stránky seznam === */
.dfc-search { padding: 40px 5%; }
.dfc-search .dfc-single-title { margin-bottom: 1em; }
.dfc-search-h2 { margin: 1.4em 0 .7em; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.dfc-search-count { color: #ae895d; }
.dfc-search-empty { font-size: 1.1rem; margin: 1.2em 0 2em; }
.dfc-search-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0 0 2.5em; }
@media (max-width: 1100px) { .dfc-search-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .dfc-search-grid { grid-template-columns: repeat(2, 1fr); } }
.dfc-search-card { display: block; text-decoration: none; }
.dfc-search-thumb { display: block; position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #111; }
.dfc-search-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dfc-search-name { display: block; margin-top: 8px; color: #ae895d; font-weight: 600; text-align: center; line-height: 1.3; }
.dfc-search-card:hover .dfc-search-name { text-decoration: underline; }
.dfc-search-pages { list-style: none; padding: 0; margin: 0 0 2em; }
.dfc-search-pages li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.dfc-search-pages a { color: #ae895d; font-weight: 500; }
.dfc-search-pages a:hover { text-decoration: underline; }
/* hledání má tmavé pozadí (body.search.dfc-dark-page) → tmavé hledací pole u prázdného výsledku */
body.search .dfc-search-form input[type="text"],
body.search .dfc-search-form input[type="search"] {
	background: rgba(255,255,255,.08) !important; color: #fff !important;
	border: 1px solid rgba(255,255,255,.35) !important;
}
body.search .dfc-search-form input::placeholder { color: rgba(255,255,255,.6); }

/* === DFC 404 === */
.dfc-404 { max-width: 720px; margin: 0 auto; padding: 70px 5% 90px; text-align: center; }
.dfc-404-code { font-size: clamp(80px, 18vw, 170px); font-weight: 800; line-height: 1; color: #ae895d; letter-spacing: .03em; }
.dfc-404 .dfc-single-title { margin: .15em 0 .5em; }
.dfc-404-text { font-size: 1.1rem; line-height: 1.6; margin: 0 auto 2em; max-width: 540px; }
.dfc-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 2.5em; }
.dfc-404-btn { display: inline-block; padding: 11px 22px; border: 1px solid #ae895d; color: #ae895d; text-decoration: none; border-radius: 2px; font-weight: 600; transition: background .15s, color .15s; }
.dfc-404-btn:hover { background: #ae895d; color: #fff; }
.dfc-404-search { max-width: 420px; margin: 0 auto; }

/* === Patička: odkaz „Nastavení cookies" (WebToffee) — bílý link, bez borderu, podtržení.
   WebToffee dává inline color:#000/border → přebíjíme !important. === */
.fusion-footer-copyright-area .wcc-preference-btn,
.fusion-copyright-notice .wcc-preference-btn {
	color: #fff !important;
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	text-decoration: underline !important;
	cursor: pointer;
	font: inherit;
}
.fusion-footer-copyright-area .wcc-preference-btn:hover,
.fusion-copyright-notice .wcc-preference-btn:hover { color: #ae895d !important; }

/* === 404 na tmavém pozadí (body.dfc-dark-page) — bílý text + tmavé hledací pole === */
body.error404.dfc-dark-page .dfc-404,
body.error404.dfc-dark-page .dfc-404 .dfc-404-text { color: #fff !important; }
body.error404 .dfc-404-search input[type="text"],
body.error404 .dfc-404-search input[type="search"] {
	background: rgba(255,255,255,.08) !important;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,.35) !important;
}
body.error404 .dfc-404-search input::placeholder { color: rgba(255,255,255,.6); }

/* ============================================================================
   Feedback klienta (2026-06-23) — PRVNÍ PAS, doladí se podle jeho screenshotů
   ============================================================================ */

/* 1b) Větší náhledy modelek na portrétu/mobilu — 2 sloupce už od 780 px + bez bočních mezer */
@media (max-width: 780px) {
	.fusion-portfolio-wrapper { grid-template-columns: repeat(2, 1fr) !important; gap: 8px 6px !important; }
	body.dfc-wide-content #main .fusion-row,
	body.single-avada_portfolio #main .fusion-row { max-width: 100% !important; }
	body.dfc-wide-content #content .fusion-fullwidth.fullwidth-box,
	body.dfc-wide-content #content .fusion-builder-row { padding-left: 6px !important; padding-right: 6px !important; }
}

/* 1c) Menší „+" tlačítko na mobilu, ať nezakrývá obličej */
@media (max-width: 780px) {
	.fusion-portfolio-post .dfc-grid-add {
		width: 22px; height: 22px; line-height: 22px; font-size: 15px; top: 6px; right: 6px;
	}
}

/* 3a) Detail modelky — horní hlavní fotka: zarovnat doleva (lícovat s galerií dole) + kurzor lightbox.
   Sloupec 0 (foto) má levé odsazení (column gutter) → zrušíme. Galerie i velikost fotky beze změny. */
/* sloupce obsahu nejsou centrované (Avada má justify-content:center) → flex-start, aby horní
   hlavní fotka lícovala vlevo se galerií dole */
body.single-avada_portfolio .project-content .fusion-flex-container { justify-content: flex-start !important; }
body.single-avada_portfolio a.dfc-main-lightbox { display: inline-block; cursor: zoom-in; }

/* ============================================================================
   Tabulky (ceníky) na mobilu — např. /modenschauen-produktion/ (2026-07-04)
   Tabulka se nesmrskne pod šířku obsahu → roztahovala rodičovský fusion-text
   přes viewport a celá stránka „ujížděla" doprava. Řešení: tabulka scrolluje
   horizontálně uvnitř svého wrapperu, stránka zůstává na šířku viewportu.
   ============================================================================ */
@media (max-width: 1024px) {
	.post-content .fusion-table { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
	/* pojistka pro tabulky vložené bez .fusion-table wrapperu */
	.post-content .fusion-text > table { display: block; overflow-x: auto; }
	/* flexbox blowout: přímé děti flex řádků/sloupců (fusion-text může být v řadě
	   i BEZ sloupce — konvertované staré stránky) nesmí dědit min-width:auto,
	   jinak jim široká tabulka podsune min. šířku a roztáhne stránku přes viewport. */
	.fusion-builder-row > *, .fusion-column-wrapper > * { min-width: 0; }
	/* Avada core má `.fusion-text { min-width: var(--awb-min-width) }` (načítá se
	   po childu; nedefinovaná proměnná = fallback na auto) → přebít specificitou. */
	.fusion-builder-row > .fusion-text, .fusion-column-wrapper > .fusion-text { min-width: 0; }
}

/* Košík [kosik] na mobilu: 2 vybrané modelky na řádek. Vyšší specificita než
   legacy .order .item výše (child se načítá PO plugin CSS a přebíjel by ho). */
@media (max-width: 640px) {
	.dfc-setkarta.order .item { width: calc(50% - 0.5em); height: auto; margin: 0 1em 1.5em 0; }
	.dfc-setkarta.order .item:nth-child(2n) { margin-right: 0; }
	.dfc-setkarta.order .item img { width: 100%; height: auto; }
}

/* Videoseznam na detailu modelky renderujeme jako jednotlivá nativní videa
   (viz post_playlist filter ve functions.php) — svislá mezera mezi nimi. */
.single-avada_portfolio .dfc-playlist-video { margin-bottom: 14px; }
/* sloupec s videoseznamem: builder má na sloupci max-height 600px (cap na starý
   playlist player) → stohovaná videa by přetekla přes galerii. Zrušit jen tady. */
body.single-avada_portfolio .fusion-layout-column:has(.dfc-playlist-video),
body.single-avada_portfolio .fusion-layout-column:has(.dfc-playlist-video) > .fusion-column-wrapper {
	max-height: none !important;
	height: auto !important;
}
