/*
Theme Name: ROMEA
Theme URI: https://sdruzeniromea.cz
Author: RyNet.cz
Author URI: https://www.rynet.cz
Description: Vlastní téma pro ROMEA, o. p. s. – věrná reprodukce původního vzhledu (Joomla zo2_navigator) při migraci na WordPress. Fáze 1: zachovaný vzhled.
Version: 0.1
Text Domain: romea
*/

/* Drobné WP korekce – skutečný vzhled řídí zařazené CSS šablony (template.css, custom.css, blue.css…) */
.admin-bar #zo2-header-wrap.zo2-sticky.is-sticky > * { top: 32px; }
.item-page .wp-block-image img { height: auto; }
.item-page img { max-width: 100%; height: auto; }

/* ---- Výpis článků (rubriky) ---- */
.romea-list{ margin:20px 0; }
.romea-item{ display:flex; gap:22px; padding:22px 0; border-bottom:1px solid #eee; }
.romea-item .romea-thumb{ flex:0 0 260px; max-width:260px; overflow:hidden; }
.romea-item .romea-thumb img{ width:100%; height:170px; object-fit:cover; display:block; }
.romea-body{ flex:1; }
.romea-date{ font-size:12px; color:#999; text-transform:uppercase; letter-spacing:.05em; }
.romea-title{ margin:6px 0 8px; font-size:20px; line-height:1.3; }
.romea-title a{ color:#333; }
.romea-title a:hover{ color:#bf2e2e; }
.romea-intro{ color:#666; font-size:14px; }
.romea-more{ display:inline-block; margin-top:8px; color:#a5c63b; font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:.05em; }
.page-header h1{ margin:10px 0 6px; }
.romea-pagination .nav-links{ display:flex; gap:8px; justify-content:center; margin:24px 0; }
.romea-pagination a,.romea-pagination span{ padding:8px 14px; border:1px solid #e2e2e2; border-radius:4px; color:#555; }
.romea-pagination .current{ background:#a5c63b; color:#fff; border-color:#a5c63b; }
@media(max-width:600px){ .romea-item{ flex-direction:column; } .romea-item .romea-thumb{ max-width:100%; flex-basis:auto; } }

/* ---- Šedý pruh záhlaví stránky (blog-top) ---- */
#zo2-blogtop-wrap{ background:#f2f4f5; padding:38px 0; text-align:center; margin-bottom:34px; }
#zo2-blogtop-wrap .moduletitle{ margin:0; border:0; }
#zo2-blogtop-wrap .moduletitle span{ font-family:"Playfair Display",Georgia,serif; font-size:34px; color:#252525; font-weight:400; }
#zo2-blogtop-wrap .customblog-top p{ margin:8px 0 0; color:#8a8f98; font-size:15px; }
/* vnitřní stránka – rozestupy */
#zo2-body-wrap{ padding-bottom:40px; }
#zo2-body-wrap .item-page .content-inner{ font-size:15px; line-height:1.7; }
.sidebar-right .moduletitle{ margin-top:0; }
/* tým – lepší rozestupy dlaždic */
#zo2-nastym-wrap{ padding:30px 0 50px; }
#zo2-nastym-wrap .moduletitle{ text-align:center; }

/* ================= HOMEPAGE ================= */
#zo2-banner-wrap{ position:relative; }
.romea-hero .romea-slide{ position:relative; min-height:600px; background-size:cover; background-position:center 28%; display:flex; align-items:center; }
.romea-slide-overlay{ position:absolute; inset:0; background:linear-gradient(90deg,rgba(16,18,22,.78) 0%,rgba(16,18,22,.45) 45%,rgba(16,18,22,.15) 100%); }
.romea-slide .container{ position:relative; z-index:2; }
.romea-slide-caption{ max-width:620px; color:#fff; padding:40px 0; }
.romea-slide-h{ font-family:"Playfair Display",Georgia,serif; font-size:44px; line-height:1.15; color:#fff; margin:0 0 16px; }
.romea-slide-sub{ font-size:18px; color:#eef0f2; margin:0 0 26px; line-height:1.5; }
.romea-slide-btns a{ display:inline-block; font-size:13px; font-weight:700; letter-spacing:.06em; padding:13px 26px; border-radius:3px; margin:0 10px 10px 0; text-transform:uppercase; }
.d-btn-hero{ background:#a5c63b; color:#22300a; }
.d-btn-hero:hover{ background:#93b330; color:#fff; }
.more-btn-hero{ border:2px solid rgba(255,255,255,.6); color:#fff; }
.more-btn-hero:hover{ background:#fff; color:#252525; }
.romea-hero .owl-nav button{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; background:rgba(255,255,255,.15)!important; color:#fff!important; font-size:22px; border-radius:50%; }
.romea-hero .owl-nav .owl-prev{ left:24px; } .romea-hero .owl-nav .owl-next{ right:24px; }
.romea-hero .owl-dots{ position:absolute; left:0; right:0; bottom:22px; text-align:center; }
.romea-hero .owl-dots .owl-dot span{ width:10px; height:10px; margin:4px; background:rgba(255,255,255,.5); border-radius:50%; display:inline-block; }
.romea-hero .owl-dots .owl-dot.active span{ background:#a5c63b; width:26px; border-radius:5px; }

/* sekce homepage – nadpisy na střed */
#zo2-latest-news-wrap, #zo2-upcoming-events-wrap{ padding:70px 0 40px; }
#zo2-latest-news-wrap .moduletitle, #zo2-upcoming-events-wrap .moduletitle{ text-align:center; margin-bottom:34px; }

/* news karty */
.romea-news-item{ background:#fff; border:1px solid #ececec; border-radius:4px; overflow:hidden; }
.romea-news-thumb{ display:block; aspect-ratio:37/26; overflow:hidden; background:#f2f2f2; }
.romea-news-thumb img{ width:100%; height:100%; object-fit:cover; transition:.4s; }
.romea-news-item:hover .romea-news-thumb img{ transform:scale(1.05); }
.romea-news-noimg{ display:block; width:100%; padding-top:70%; background:#e9edd6; }
.romea-news-body{ padding:18px 20px 22px; }
.romea-news-date{ font-size:12px; color:#a5c63b; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.romea-news-title{ font-size:17px; line-height:1.35; margin:8px 0 0; }
.romea-news-title a{ color:#333; } .romea-news-title a:hover{ color:#bf2e2e; }
.romea-news-all{ text-align:center; margin-top:30px; }
.romea-news-all .more-link, .more-link{ display:inline-block; background:#a5c63b; color:#22300a; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:13px; padding:12px 30px; border-radius:3px; }
.romea-news-all .more-link:hover{ background:#93b330; color:#fff; }

/* Čísla */
#zo2-fun-fact-wrap .fun-fact-bg{ background:#252b2e; padding:56px 0; }
#zo2-fun-fact-wrap .counter-box-wrap{ margin:0; }
#zo2-fun-fact-wrap .zt-count-asset{ text-align:center; }
#zo2-fun-fact-wrap .count-number{ font-family:"Playfair Display",serif; font-size:46px; color:#a5c63b; line-height:1; display:inline; }
#zo2-fun-fact-wrap .unit{ color:#a5c63b; font-size:26px; }
#zo2-fun-fact-wrap .count-subject{ color:#fff; font-size:14px; font-weight:600; margin-top:12px; text-transform:uppercase; letter-spacing:.03em; line-height:1.4; }

/* Citáty */
#zo2-testimonial-wrap .zt-parallax-asset{ position:relative; background-size:cover; background-position:center; padding:80px 0 100px; }
#zo2-testimonial-wrap .overlay{ position:absolute; inset:0; background:rgba(16,18,22,.62); }
#zo2-testimonial-wrap .container{ position:relative; z-index:2; }
#zo2-testimonial-wrap .moduletitle{ text-align:center; }
.zt-testimonial .testimonial-item{ text-align:center; max-width:800px; margin:0 auto; }
.zt-testimonial .testimonial-content span{ font-family:"Playfair Display",serif; font-size:26px; line-height:1.5; color:#fff; font-style:italic; }
.zt-testimonial .author{ margin-top:22px; }
.zt-testimonial .thumbnail-icon{ display:inline-flex; width:44px; height:44px; border-radius:50%; background:#a5c63b; color:#fff; align-items:center; justify-content:center; margin-bottom:8px; }
.zt-testimonial .company-name em{ color:#a5c63b; font-style:normal; font-weight:600; }
.zt-testimonial .owl-dots{ text-align:center; margin-top:20px; }
.zt-testimonial .owl-dots .owl-dot span{ width:10px;height:10px;margin:4px;background:rgba(255,255,255,.4);border-radius:50%;display:inline-block; }
.zt-testimonial .owl-dots .owl-dot.active span{ background:#a5c63b; }

/* Galerie */
#zo2-gallery-homepage-wrap{ padding:10px 0 0; }
.customgallery-homepage .row{ margin:0; display:flex; flex-wrap:wrap; }
.customgallery-homepage .item{ padding:0; }
.customgallery-homepage .item img{ width:100%; height:200px; object-fit:cover; transition:.4s; }
.customgallery-homepage .item:hover img{ opacity:.85; }
@media(max-width:768px){ .romea-slide-h{ font-size:32px; } .romea-hero .romea-slide{ min-height:480px; } }

/* ============ OPRAVY dle připomínek ============ */
/* 1) vyšší hero slider */
.romea-hero .romea-slide{ min-height:760px; }
@media(max-width:768px){ .romea-hero .romea-slide{ min-height:520px; } }

/* 2) owl tečky vedle sebe (globálně) */
.owl-carousel .owl-dots{ text-align:center; }
.owl-carousel .owl-dots .owl-dot{ display:inline-block; }
.owl-carousel .owl-dots .owl-dot span{ display:inline-block; }

/* 4) galerie – ukázat celé obrázky včetně textu */
.customgallery-homepage .item img{ height:auto; }

/* 5) hledání – jen lupa, pole se rozbalí po kliknutí */
.frm-search .search{ position:relative; }
.frm-search .icon-search{ cursor:pointer; }
.frm-search .search-form{ position:absolute; top:100%; right:0; z-index:60; width:260px; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.12); padding:10px; display:none; }
.frm-search .search.open .search-form{ display:block; }
.frm-search .search-form .inputbox{ width:100%; border:1px solid #e2e2e2; padding:8px 10px; }

/* ============ OPRAVY 2 ============ */
/* hero ještě vyšší – skoro celá výška okna */
.romea-hero .romea-slide{ min-height:calc(100vh - 82px); }
@media(max-width:768px){ .romea-hero .romea-slide{ min-height:calc(100vh - 70px); } }

/* zprávy – červený štítek data přes obrázek + serifový titulek */
.romea-news-thumb-wrap{ position:relative; }
.romea-news-date{ position:absolute; bottom:0; left:0; background:#bf2e2e; color:#fff; padding:7px 16px; font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; z-index:2; }
.romea-news-title{ font-family:"Playfair Display",Georgia,serif; font-size:19px; line-height:1.35; margin:14px 0 0; }

/* ============ ČLÁNEK + větší písmo ============ */
/* větší, čitelnější písmo obsahu stránek i článků */
.item-page .content-inner{ font-size:17px; line-height:1.75; color:#3f4145; }
.item-page .content-inner p{ margin:0 0 1.1em; }
.item-page .title{ margin-bottom:14px; }

/* intro obrázek článku */
.article-intro-image{ margin-bottom:22px; }
.article-intro-image img{ width:100%; height:auto; }

/* meta řádek */
.article-info{ margin:0 0 22px; padding-bottom:16px; border-bottom:1px solid #eee; }
.article-info dd{ display:inline-block; margin:0 18px 0 0; color:#9a9a9a; font-size:13px; }
.article-info .category-name{ color:#bf2e2e; font-weight:600; }

/* sdílení */
.romea-share{ margin-top:34px; display:flex; gap:10px; }
.romea-share .sh{ width:40px; height:40px; border-radius:4px; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:16px; }
.romea-share .fb{ background:#3b5998; } .romea-share .tw{ background:#1da1f2; }
.romea-share .pin{ background:#bd081c; } .romea-share .mail{ background:#777; }
.romea-share .sh:hover{ opacity:.85; color:#fff; }

/* Facebook widget v sidebaru */
#zo2-facebook{ margin-bottom:34px; }
.romea-fb{ margin-top:8px; }
.romea-fb iframe{ width:100%; border:0; }

/* ============ HERO – centrování + animace ============ */
.romea-hero .romea-slide{ overflow:hidden; }
.romea-slide-bg{ position:absolute; inset:0; background-size:cover; background-position:center 28%; will-change:transform; }
.romea-hero .owl-item.active .romea-slide-bg{ animation: romeaKenBurns 9s ease-out both; }
@keyframes romeaKenBurns{ from{ transform:scale(1); } to{ transform:scale(1.12); } }

/* rovnoměrné ztmavení */
.romea-slide-overlay{ background:rgba(12,14,17,.48); }

/* text na střed */
.romea-slide-caption{ max-width:900px; margin:0 auto; text-align:center; }
.romea-slide-sub{ margin-left:auto; margin-right:auto; }

/* postupné vykreslení textu (na aktivním slidu) */
.romea-hero .owl-item.active .romea-slide-h{ animation: romeaFadeUp .9s .15s both; }
.romea-hero .owl-item.active .romea-slide-sub{ animation: romeaFadeUp .9s .45s both; }
.romea-hero .owl-item.active .romea-slide-btns{ animation: romeaFadeUp .9s .75s both; }
@keyframes romeaFadeUp{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:translateY(0); } }

/* oblá tlačítka (jako originál) */
.romea-slide-btns a, .d-btn-hero, .more-btn-hero{ border-radius:30px; padding:15px 34px; background:rgba(12,14,17,.35); border:1px solid rgba(255,255,255,.65); color:#fff; }
.romea-slide-btns a:hover{ background:#a5c63b; border-color:#a5c63b; color:#22300a; }

/* ============ OPRAVA teček hero (patří na fotku, ne pod ni) ============ */
.romea-hero{ position:relative; }
.romea-hero .owl-dots{ position:absolute; left:0; right:0; bottom:26px; text-align:center; z-index:5; margin:0; }
.romea-hero .owl-dots .owl-dot span{ width:11px; height:11px; margin:5px; background:rgba(255,255,255,.55); border-radius:50%; display:inline-block; transition:.2s; }
.romea-hero .owl-dots .owl-dot.active span{ background:#a5c63b; width:28px; border-radius:6px; }

/* ============ HERO – větší nadpis, tlačítka níž ============ */
.romea-slide-h{ font-size:clamp(2.6rem, 5vw, 4.2rem); line-height:1.12; margin:0 0 20px; }
.romea-slide-sub{ font-size:20px; margin:0 auto 42px; max-width:760px; }
.romea-slide-btns{ margin-top:8px; }
.romea-slide-btns a{ font-size:14px; }
@media(max-width:768px){ .romea-slide-h{ font-size:2.1rem; } .romea-slide-sub{ font-size:17px; } }

/* ============ hero podtitulek – vyvážené centrování ============ */
.romea-slide-sub{ text-align:center !important; max-width:640px; margin-left:auto; margin-right:auto; text-wrap:balance; }

/* ============ Podpořte nás – dárcovské karty ============ */
#zo2-podportenas-wrap{ padding:64px 0; background:#f7f8f4; }
#zo2-podportenas-wrap .moduletitle{ text-align:center; margin-bottom:4px; }
.podporte-sub{ text-align:center; color:#70757c; font-size:18px; margin:0 0 30px; }
.romea-donate-cards{ display:flex; gap:28px; justify-content:center; flex-wrap:wrap; }
.romea-donate-card{ flex:1 1 400px; max-width:480px; background:#fff; border:1px solid #ececec; border-radius:4px; overflow:hidden; text-decoration:none; transition:.2s; }
.romea-donate-card:hover{ box-shadow:0 14px 34px rgba(0,0,0,.1); transform:translateY(-3px); }
.rdc-thumb{ display:block; overflow:hidden; }
.rdc-thumb img{ width:100%; height:240px; object-fit:cover; display:block; transition:.4s; }
.romea-donate-card:hover .rdc-thumb img{ transform:scale(1.05); }
.rdc-title{ display:block; text-align:center; font-family:"Playfair Display",Georgia,serif; font-size:19px; line-height:1.35; color:#333; padding:20px 22px 24px; }
.romea-donate-card:hover .rdc-title{ color:#bf2e2e; }
@media(max-width:600px){ .romea-donate-cards{ flex-direction:column; } }

/* ============ hero podtitulek + tlačítka – vynucené (fix cascade) ============ */
.romea-hero .romea-slide-caption p.romea-slide-sub{
  display:block !important;
  max-width:640px !important;
  margin:0 auto 46px auto !important;
  text-align:center !important;
}
.romea-hero .romea-slide-caption .romea-slide-btns{ margin-top:6px !important; }

/* ============ tečky slideru výš (blíž obsahu) ============ */
.romea-hero .owl-dots{ bottom:9%; }
@media(max-width:768px){ .romea-hero .owl-dots{ bottom:6%; } }

/* ============ Archiv rubriky – horizontální karty ============ */
.romea-alist-item{ display:flex; gap:30px; padding:30px 0; border-bottom:1px solid #e8e8e8; align-items:flex-start; }
.romea-alist-item:first-child{ padding-top:6px; }
.romea-alist-thumb{ flex:0 0 280px; max-width:280px; overflow:hidden; }
.romea-alist-thumb img{ width:100%; height:200px; object-fit:cover; display:block; }
.romea-alist-body{ flex:1; min-width:0; }
.romea-alist-title{ font-family:"Playfair Display",Georgia,serif; font-size:26px; line-height:1.3; margin:0 0 14px; }
.romea-alist-title a{ color:#2a2a2a; } .romea-alist-title a:hover{ color:#bf2e2e; }
.romea-alist-intro{ color:#666; font-size:15px; line-height:1.7; }
/* meta s oddělovači | */
.article-info dd{ display:inline-block; margin:0 0 0 0; padding:0 15px; border-left:1px solid #ddd; color:#9a9a9a; font-size:13px; }
.article-info dd:first-child{ padding-left:0; border-left:0; }
.article-info dd.category-name{ color:#bf2e2e; font-weight:600; }
.article-info .fa{ margin-right:5px; }
@media(max-width:640px){ .romea-alist-item{ flex-direction:column; } .romea-alist-thumb{ max-width:100%; flex-basis:auto; } }

/* podnadpis aktivit (rubrika pod názvem) */
.item-page .item-subheading{ color:#9aa0a6; font-size:15px; margin:-4px 0 22px; }

/* ============ Pruh s čísly – zpět na originál (červený, bílá čísla, vlevo) ============ */
#zo2-fun-fact-wrap{ background:#bf2e2e; }
#zo2-fun-fact-wrap .fun-fact-bg{ background:transparent; padding:0; }
#zo2-fun-fact-wrap .zt-count-asset{ text-align:left; }
#zo2-fun-fact-wrap .count-number{
  font-family:'Open Sans',Arial,sans-serif; font-size:50px; font-weight:800; color:#fff; display:inline;
}
#zo2-fun-fact-wrap .unit{ color:#fff; font-weight:800; font-size:40px; }
#zo2-fun-fact-wrap .count-subject{
  color:#fff; font-size:14px; font-weight:600; margin:0; text-transform:none; letter-spacing:0; line-height:1.4;
}

/* ============ Ken Burns bez skoku ============
   Původně to bylo přes @keyframes navázané na .owl-item.active. Jakmile slide
   přestal být aktivní, pravidlo přestalo platit a obrázek se SKOKEM vrátil na
   původní velikost (bylo to vidět, protože odcházející slide se ještě prolíná).
   Řešení: místo animace použít transition – zpětná cesta je pak taky plynulá. */
.romea-hero .romea-slide-bg{
  animation:none !important;
  transform:scale(1);
  transition:transform 8s linear;
}
.romea-hero .owl-item.active .romea-slide-bg{
  animation:none !important;
  transform:scale(1.09);
}

/* ============ Ken Burns v2 – bez skoku, spolehlivě ============
   Transition se u owl slideru nechytne (prvky se při přepnutí překreslí),
   takže zpět k animaci. Klíč k odstranění skoku: KLIDOVÝ stav prvku je
   nastavený na KONEC animace (scale 1.09). Když slide přestane být aktivní,
   animace zmizí, ale vizuálně se nic nezmění – žádný skok zpět.
   Délka 6,4 s je kratší než cyklus slideru (6 s + 0,6 s prolnutí),
   takže zvětšení stihne doběhnout těsně před přepnutím. */
.romea-hero .romea-slide-bg{
  transition:none !important;
  transform:scale(1.09);
}
.romea-hero .owl-item.active .romea-slide-bg{
  animation:romeaKB 6.4s ease-out forwards !important;
}
@keyframes romeaKB{
  from{ transform:scale(1); }
  to  { transform:scale(1.09); }
}

/* ============ Tučné nadpisy karet aktualit ============
   Pozor: Google Fonts se načítají včetně řezu 700, jinak by prohlížeč
   tučné písmo jen uměle dopočítal a vypadalo by rozmazaně. */
.romea-news-title{ font-weight:700; }
.romea-news-title a{ font-weight:700; }

/* tučné nadpisy i ve výpisu rubriky (archiv) */
.romea-alist-title{ font-weight:700; }
.romea-alist-title a{ font-weight:700; }

/* nadpis v šedém pruhu (Kontakty, Aktuálně, Naše aktivity…) – tučně */
#zo2-blogtop-wrap .moduletitle span{ font-weight:700; }

/* ============ Mezinadpisy uvnitř článků ============
   Vědomá (drobná) odchylka od originálu, odsouhlaseno.
   Původně byly jako jediné bezpatkové (Poppins), který se navíc nikdy nenačítal,
   takže se vykreslovaly systémovým písmem – na každém zařízení jinak.
   Sjednoceno na Playfair jako zbytek nadpisů; menší než dřív a s větší mezerou
   nad, aby fungovaly jako předěl sekce, ne jako ozdoba. */
#zo2-body-wrap .item-page .content-inner h2,
#zo2-body-wrap .item-page .content-inner h3,
#zo2-body-wrap .item-page .content-inner h4{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  color:#252525;
  line-height:1.25;
  margin:1.9em 0 .55em;
}
#zo2-body-wrap .item-page .content-inner h2{ font-size:28px; }
#zo2-body-wrap .item-page .content-inner h3{ font-size:23px; }
#zo2-body-wrap .item-page .content-inner h4{ font-size:19px; }
/* první nadpis v textu nemá odsazovat zbytečně od úvodu */
#zo2-body-wrap .item-page .content-inner > h2:first-child,
#zo2-body-wrap .item-page .content-inner > h3:first-child{ margin-top:.2em; }

/* název článku / aktivity v obsahu – také Playfair (stejný důvod jako u mezinadpisů) */
#zo2-body-wrap .item-page .title{
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  color:#252525;
  line-height:1.2;
}

/* název článku/aktivity má být menší než nadpis v šedém pruhu (ten má 34 px) */
#zo2-body-wrap .item-page .title{ font-size:29px; }
@media(max-width:768px){ #zo2-body-wrap .item-page .title{ font-size:25px; } }

/* ============ Publikace / Filmy a videa (přehled) ============ */
.romea-portfolio-heading{ text-align:center; margin:0 0 34px; }
.romea-portfolio{ display:grid; gap:28px; margin-bottom:50px; }
.romea-portfolio.cols-4{ grid-template-columns:repeat(4,1fr); }
.romea-portfolio.cols-3{ grid-template-columns:repeat(3,1fr); }
.rp-item{ text-align:center; }
.rp-thumb{ display:block; position:relative; overflow:hidden; background:#f2f2f2; }
.rp-thumb img{ width:100%; height:auto; display:block; transition:.4s; }
.rp-item:hover .rp-thumb img{ transform:scale(1.04); }
.rp-video .rp-thumb{ aspect-ratio:1/1; }
.rp-video .rp-thumb img{ height:100%; object-fit:cover; }
.rp-play{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(12,14,17,.35); color:#fff; font-size:26px; transition:.25s; }
.rp-play:hover{ background:rgba(191,46,46,.75); color:#fff; }
.rp-title{ font-family:"Playfair Display",Georgia,serif; font-weight:700; font-size:17px;
  line-height:1.35; margin:14px 0 8px; }
.rp-title a{ color:#2a2a2a; } .rp-title a:hover{ color:#bf2e2e; }
.rp-btn{ display:inline-block; background:#bf2e2e; color:#fff; font-size:12px; font-weight:600;
  letter-spacing:.04em; text-transform:uppercase; padding:8px 16px; border-radius:3px; }
.rp-btn:hover{ background:#a52626; color:#fff; }
.rp-embed{ margin-bottom:24px; }
.rp-embed iframe{ width:100%; aspect-ratio:16/9; height:auto; border:0; }
@media(max-width:992px){ .romea-portfolio.cols-4{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:768px){ .romea-portfolio.cols-4,.romea-portfolio.cols-3{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){ .romea-portfolio.cols-4,.romea-portfolio.cols-3{ grid-template-columns:1fr; } }

/* nadpis přehledu (Publikace / Filmy a videa) – stejné písmo jako ostatní nadpisy */
#zo2-body-wrap .romea-portfolio-heading{
  font-family:"Playfair Display",Georgia,serif; font-weight:700; font-size:29px; color:#252525;
}
/* obálky publikací mají různý poměr stran – sjednotíme výšku, ale nic neořezáváme */
.romea-portfolio{ align-items:start; }
.rp-item:not(.rp-video) .rp-thumb{
  height:260px; display:flex; align-items:center; justify-content:center; background:#f4f4f4;
}
.rp-item:not(.rp-video) .rp-thumb img{ max-height:100%; max-width:100%; width:auto; object-fit:contain; }

/* ============ Okno pro přehrání videa ============ */
body.romea-vbox-open{ overflow:hidden; }
.romea-vbox{ position:fixed; inset:0; z-index:9999; background:rgba(10,12,15,.9);
  display:flex; align-items:center; justify-content:center; padding:24px; }
.romea-vbox-inner{ position:relative; width:100%; max-width:960px; }
.romea-vbox-inner iframe{ width:100%; aspect-ratio:16/9; border:0; display:block; background:#000; }
.romea-vbox-close{ position:absolute; top:-46px; right:0; width:38px; height:38px; line-height:1;
  font-size:30px; color:#fff; background:transparent; border:0; cursor:pointer; padding:0; }
.romea-vbox-close:hover{ color:#bf2e2e; }
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
@media(max-width:600px){ .romea-vbox-close{ top:-40px; } }

/* ============ Loga partnerů (Dárci a partneři) ============
   V článku je vložený starý styl, který logům nastavuje float:none a počítá
   s obalem .news-info z Joomly – ten tu není, takže loga padala pod sebe.
   Vracíme jim obtékání, aby se skládala po třech na řádek jako v originále. */
.item-page .content-inner [class*="col-sm-"]:has(> .work-wrapper){
  float:left !important; width:33.333% !important; max-width:33.333% !important;
}
/* nadpisy nesmí zůstat vedle obtékajících log */
.item-page .content-inner h2,
.item-page .content-inner h3,
.item-page .content-inner h4{ clear:both; }
@media(max-width:768px){
  .item-page .content-inner [class*="col-sm-"]:has(> .work-wrapper){ width:50% !important; max-width:50% !important; }
}
@media(max-width:480px){
  .item-page .content-inner [class*="col-sm-"]:has(> .work-wrapper){ width:100% !important; max-width:100% !important; float:none !important; }
}

/* Sloupce s logy musí mít stejnou výšku, jinak se plovoucí mřížka zasekne
   (vyšší dlaždice odsune následující na nový řádek a vznikne díra). */
.item-page .content-inner [class*="col-sm-"]:has(> .work-wrapper){ min-height:230px; }

/* ============ Loga partnerů – pořádná mřížka místo obtékání ============
   Plovoucí mřížka se u různě vysokých dlaždic zasekává a vznikají díry.
   Uděláme z obsahu mřížku: loga jsou buňky, ostatní obsah jde přes celou šířku. */
.item-page .content-inner:has(> [class*="col-sm-"] > .work-wrapper){
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px 24px;
  align-items:start;
}
/* běžný obsah (odstavce, nadpisy, sekce) přes celou šířku */
.item-page .content-inner:has(> [class*="col-sm-"] > .work-wrapper) > *{ grid-column:1 / -1; }
/* loga jako jednotlivé buňky */
.item-page .content-inner:has(> [class*="col-sm-"] > .work-wrapper) > [class*="col-sm-"]:has(> .work-wrapper){
  grid-column:auto;
  float:none !important; width:auto !important; max-width:none !important;
  min-height:0 !important; padding:0;
}
.item-page .content-inner .work-wrapper{ min-height:0; }
.item-page .content-inner .work-wrapper img{ max-height:80px !important; width:auto !important; }
.item-page .content-inner .work-wrapper p{ margin:0 0 6px; }
@media(max-width:768px){
  .item-page .content-inner:has(> [class*="col-sm-"] > .work-wrapper){ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:480px){
  .item-page .content-inner:has(> [class*="col-sm-"] > .work-wrapper){ grid-template-columns:1fr; }
}

/* Bootstrap podtrhává každý odkaz při najetí (a:focus, a:hover{text-decoration:underline}).
   U dlaždice s videem se podtržení vykreslilo pod glyfem šipky – vypadalo to jako čárka
   pod tlačítkem play. U ikonových odkazů a tlačítek podtržení nechceme. */
.rp-play, .rp-play:hover, .rp-play:focus,
.rp-btn, .rp-btn:hover, .rp-btn:focus,
.rp-thumb, .rp-thumb:hover, .rp-thumb:focus{ text-decoration:none; }

/* ---- Stránka 404 (rozcestník pro návštěvníky ze starých odkazů) ---- */
.romea-404-lead{ font-size:16px; line-height:1.7; margin-bottom:26px; }
.romea-404-search{ display:flex; gap:10px; margin-bottom:34px; max-width:520px; }
.romea-404-search input[type=search]{
  flex:1; min-width:0; padding:11px 14px; border:1px solid #ddd; border-radius:3px;
  font-size:15px; background:#fff; }
.romea-404-search input[type=search]:focus{ outline:none; border-color:#bf2e2e; }
.romea-404-search button{
  border:0; background:#bf2e2e; color:#fff; font-weight:600; font-size:14px;
  padding:11px 20px; border-radius:3px; cursor:pointer; white-space:nowrap; }
.romea-404-search button:hover{ background:#a52626; }
.romea-404 .romea-404-heading{
  font-family:"Playfair Display",Georgia,serif; font-weight:700; font-size:22px;
  color:#252525; margin:0 0 14px; }
.romea-404-links{ list-style:none; margin:0 0 34px; padding:0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px 24px; }
.romea-404-posts{ list-style:none; margin:0; padding:0; }
.romea-404-links li, .romea-404-posts li{ padding:7px 0 7px 16px; position:relative; border-bottom:1px solid #eee; }
.romea-404-links li:before, .romea-404-posts li:before{
  content:"\203A"; position:absolute; left:0; top:6px; color:#bf2e2e; font-size:16px; }
.romea-404-links a, .romea-404-posts a{ color:#2a2a2a; }
.romea-404-links a:hover, .romea-404-posts a:hover{ color:#bf2e2e; text-decoration:none; }
.romea-404-date{ display:block; font-size:12px; color:#8a8a8a; margin-top:2px; }
@media(max-width:768px){ .romea-404-links{ grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .romea-404-links{ grid-template-columns:1fr; }
  .romea-404-search{ flex-wrap:wrap; } }

/* ---- Facebookový panel se načítá až na vyžádání ---- */
.romea-fb-nahled{ background:#f6f7f9; border:1px solid #e3e6ea; border-radius:4px;
  padding:22px 18px; text-align:center; }
.romea-fb-text{ font-size:13px; line-height:1.6; color:#5b6470; margin:0 0 16px; }
.romea-fb-btn{ display:inline-block; border:0; cursor:pointer; background:#1877f2; color:#fff;
  font-size:14px; font-weight:600; padding:11px 20px; border-radius:3px; }
.romea-fb-btn:hover{ background:#145dbf; color:#fff; }
.romea-fb-btn .fa{ margin-right:7px; }
.romea-fb-odkaz{ margin:14px 0 0; font-size:12px; }
.romea-fb-odkaz a{ color:#5b6470; text-decoration:underline; }
.romea-fb-odkaz a:hover{ color:#bf2e2e; }

/* ---- Vlastní lišta se souhlasem s měřením ---- */
.romea-souhlas{ position:fixed; left:0; right:0; bottom:0; z-index:9999;
  background:#1f2328; color:#e8eaed; box-shadow:0 -2px 14px rgba(0,0,0,.25); }
.romea-souhlas-vnitrek{ max-width:1140px; margin:0 auto; padding:18px 20px;
  display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.romea-souhlas-text{ flex:1 1 380px; min-width:0; }
.romea-souhlas-text p{ margin:0 0 6px; font-size:14px; line-height:1.6; color:#e8eaed; }
.romea-souhlas-vice{ margin:0; }
.romea-souhlas-odkaz{ background:none; border:0; padding:0; cursor:pointer;
  color:#AEC93F; font-size:13px; text-decoration:underline; }
.romea-souhlas-odkaz:hover{ color:#c4dc55; }
.romea-souhlas-detail{ margin-top:10px; border-top:1px solid #343a41; padding-top:10px; }
.romea-souhlas-detail p{ font-size:13px; color:#b9bec5; margin:0; }
/* obě tlačítka záměrně stejně velká a stejně výrazná – odmítnutí nesmí být schované */
.romea-souhlas-tlacitka{ display:flex; gap:12px; flex:0 0 auto; }
.romea-souhlas-btn{ border:0; cursor:pointer; font-size:14px; font-weight:600;
  padding:12px 26px; border-radius:3px; min-width:150px; }
.romea-souhlas-ano{ background:#AEC93F; color:#1f2328; }
.romea-souhlas-ano:hover{ background:#bcd753; }
.romea-souhlas-ne{ background:#4a525b; color:#fff; }
.romea-souhlas-ne:hover{ background:#5a636e; }
.romea-souhlas-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.romea-nastaveni-souhlas{ background:none; border:0; padding:0; cursor:pointer;
  color:inherit; font-size:inherit; text-decoration:underline; }
@media(max-width:768px){
  .romea-souhlas-vnitrek{ gap:14px; padding:16px; }
  .romea-souhlas-tlacitka{ width:100%; }
  .romea-souhlas-btn{ flex:1 1 0; min-width:0; padding:12px 10px; }
}
