/*
Theme Name: Vodomílek
Theme URI: https://michalfiala.eu/
Author: Michal Fiala
Version: 1.2.6
Text Domain: vodomilek
*/

:root{
  --c-bg: #eaf4fb;
  --c-text: #162334;
  --c-primary: #0b3768;
  --c-nav: #0b3768;
  --c-nav-hover: #1557a6;
  --c-card: #ffffff;
  --c-border: rgba(15, 23, 42, .12);

  --ff-base: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ff-accent: "Roboto Slab", Georgia, serif;

  --container: 1100px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2,6,23,.10);

  --adminbar-h: 0px;
  --nav-h: 78px;

  --hero-cta-y: 0px;
  --hero-cta-img-w: 320px;
  --hero-title-w: 760px;
  --hero-title-x: 80px;
  --hero-title-y: -12px;
}

*{ box-sizing: border-box; }

html{
  height: 100%;
  scroll-behavior: smooth;
}

body{
  height: 100%;
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.admin-bar{ --adminbar-h: 32px; }

@media (max-width: 782px){
  body.admin-bar{ --adminbar-h: 46px; }
}

.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

img,
svg,
iframe{
  max-width: 100%;
}

a{
  color: var(--c-nav);
  text-underline-offset: 3px;
}

a:hover{
  color: var(--c-nav-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 3px solid rgba(21, 87, 166, .28);
  outline-offset: 2px;
}

/* Customizer */
body.customize-partial-edit-shortcuts-shown .customize-partial-edit-shortcut{
  display: none !important;
}

/* ================= HEADER ================= */

.site-header{
  background-image: url("/wp-content/uploads/2025/06/zahlavi-1.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding: 18px 0 12px;
}

.site-title{
  font-family: var(--ff-accent);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
  text-decoration: none;
}

.site-logo img{
  max-height: 80px;
  display: block;
}

/* ================= MENU ================= */


.site-navbar{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--adminbar-h);
  z-index: 9999;
  pointer-events: auto;

  height: var(--nav-h);
  display: flex;
  align-items: center;

  background: rgba(255,255,255,.20);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 8px 20px rgba(2,6,23,.06);

  overflow: visible;
}

.site-navbar::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.58) 0%,
    rgba(255,255,255,.20) 38%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
}

.site-navbar .container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.main-nav{
  width: 100%;
}

.main-nav__list,
.main-nav__list > li,
.main-nav__list a{
  overflow: visible;
}

.main-nav__list{
  list-style: none;
  margin: 0;
  padding: 6px 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav__list > li{
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.main-nav__list a{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--c-nav);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.main-nav__list a:hover{
  background: rgba(13,55,104,.10);
  color: var(--c-nav-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.main-nav__list .current-menu-item > a,
.main-nav__list .current_page_item > a{
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(10,75,155,.95) 0%,
    rgba(5,45,110,.95) 100%
  );
  box-shadow:
    0 8px 18px rgba(10,75,155,.35),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.nav-icon{
  width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.22));
}

.nav-icon img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.main-nav__list a img.menu-image{
  width: auto;
  height: 42px;
  max-width: 56px;
  max-height: 42px;
  display: block;
  object-fit: contain;
  padding: 0;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.22));
}

.main-nav__list .current-menu-item > a img.menu-image,
.main-nav__list .current_page_item > a img.menu-image{
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)) brightness(0) invert(1);
}

/* ================= HEADER INTRO ================= */

.header-intro{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-bg);
  padding: 42px 0 28px;
}

.header-intro__grid{
  display: grid;
  grid-template-columns: minmax(180px, var(--intro-logo-w, 260px)) 1fr;
  gap: 34px;
  align-items: start;
}

.header-intro__logoimg{
  width: var(--intro-logo-w, 260px);
  max-width: 100%;
  height: auto;
  display: block;
}

.header-intro__content{
  position: relative;
}

.header-intro__content::before{
  content: attr(data-watermark);
  position: absolute;
  top: -18px;
  left: 0;
  font-family: var(--ff-accent);
  font-size: clamp(32px, 6vw, var(--intro-title-size, 72px));
  font-weight: 900;
  color: rgba(255,255,255,.55);
  text-shadow: 0 10px 34px rgba(0,0,0,.08);
  pointer-events: none;
}

.header-intro__title{
  position: relative;
  margin: 0 0 10px;
  font-family: var(--ff-accent);
  color: transparent;
  height: 0;
  overflow: hidden;
}

.header-intro__text{
  position: relative;
  margin: 22px 0 0;
  font-size: var(--intro-text-size, 18px);
  color: rgba(11,18,32,.8);
}

.header-intro__divider{
  border: 0;
  border-top: 2px solid rgba(11,18,32,.6);
  margin: 36px auto 0;
  width: min(var(--container), calc(100% - 32px));
}

/* ================= HOMEPAGE ================= */

.home{
  padding-top: 0;
}

.home .hero{
  position: relative;
  width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  min-height: 720px;
  touch-action: pan-y;
}

.home .hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: .55;
}

.home .hero__img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home .hero__overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
  touch-action: pan-y;
}

.home .hero__inner{
  width: 100%;
  max-width: 1100px;
  text-align: center;
  pointer-events: auto;
}

.home .hero-title-svg{
  width:min(var(--hero-title-w, 760px), 92vw);
  margin:0 auto 8px;
  transform:translate(var(--hero-title-x, 80px), var(--hero-title-y, -12px));
  pointer-events:none;
}
.home .hero-title-svg svg{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}
.home .hero__text{
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
  text-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.home .hero__btn{
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.20);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}

.home .hero__btn:hover{
  background: rgba(255,255,255,.30);
}

.home .hero__cta{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translate(var(--hero-cta-x, 0px), var(--hero-cta-y, 0px));
}

.home .hero__cta-image img{
  width: min(var(--hero-cta-img-w), 90vw);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.25));
  pointer-events: auto;
}

/* ================= MAIN ================= */

.site-main{
  padding: 28px 0 56px;
}

.entry-title{
  margin-bottom: 14px;
  font-family: var(--ff-accent);
  color: var(--c-primary);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.entry-content{
  max-width: 860px;
  padding: 30px 34px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(31,67,103,.08);
}

.entry-content,
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-content label{
  color: #243041;
}

.entry-content > :first-child{ margin-top: 0; }
.entry-content > :last-child{ margin-bottom: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4{
  color: var(--c-primary);
  line-height: 1.2;
}

.entry-content h2{ font-size: clamp(24px, 2.4vw, 34px); }
.entry-content h3{ font-size: clamp(20px, 2vw, 28px); }

.entry-content ul,
.entry-content ol{
  padding-left: 1.3rem;
}

.entry-content table{
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.entry-content th,
.entry-content td{
  border: 1px solid rgba(15,23,42,.12);
  padding: 10px 12px;
}

.entry-content blockquote{
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid rgba(10,75,155,.34);
  background: rgba(229,242,251,.65);
  border-radius: 0 16px 16px 0;
}

/* ================= HOMEPAGE NEWS ================= */

.homepage-main{
  padding-top: 8px;
}

.section-title{
  margin: 0 0 18px;
  font-family: var(--ff-accent);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  color: rgba(11,55,104,.24);
}

.section-title--ghost{
  color: rgba(11,55,104,.24);
}

.important-news{
  padding: 12px 0 36px;
}

.important-news__slider{
  position: relative;
}

.important-news__slide{
  animation: importantNewsFade .35s ease;
}

.important-news__link{
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.09);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(2,6,23,.12);
  padding: 18px 22px 20px;
}

.important-news__date{
  display: block;
  margin-bottom: 6px;
  color: #8b2d2d;
  font-size: 14px;
  font-weight: 700;
}

.important-news__text{
  color: #b11f1f;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.25;
}

.important-news__dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.important-news__dot{
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(10,75,155,.26);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.important-news__dot:hover,
.important-news__dot.is-active{
  background: rgba(10,75,155,.82);
  transform: scale(1.12);
}

.homepage-news{
  padding: 6px 0 48px;
}

.news-card__title{
  margin: 0 0 18px;
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1.05;
  color: rgba(11,55,104,.78);
  font-weight: 900;
}

.news-card__title a{
  color: inherit;
  text-decoration: none;
}

.news-card__excerpt{
  color: #2a394c;
  font-size: 16px;
  line-height: 1.75;
}

.news-card__excerpt p{
  margin: 0 0 1em;
}

.news-card__excerpt p:last-child{
  margin-bottom: 0;
}

.news-card__more{
  display: inline-block;
  margin-top: 26px;
  color: #0a6fa2;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
}

.homepage-news__empty{
  padding: 24px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.08);
  color: #233247;
}

@keyframes importantNewsFade{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ================= FOOTER ================= */

.site-footer{
  border-top: 1px solid rgba(15,23,42,.08);
  padding: 56px 0 34px;
}

.site-footer__top{
  display: grid;
  grid-template-columns: minmax(260px, 450px) minmax(220px, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.site-footer__top--no-socials{
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, .85fr);
}

.site-footer__mapframe{
  border-radius: 0;
  overflow: hidden;
  background: rgba(255,255,255,.45);
  box-shadow: 0 14px 34px rgba(31,67,103,.10);
}

.site-footer__mapframe iframe{
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.site-footer__details{
  color: #334257;
  font-size: 19px;
  line-height: 1.5;
}

.site-footer__details p{
  margin: 0 0 8px;
}

.site-footer__spacer{
  height: 18px;
}

.site-footer__socials{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.footer-social{
  width: 110px;
  height: 110px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(25,55,86,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.footer-social:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(25,55,86,.14);
}

.footer-social svg{
  width: 46px;
  height: 46px;
  fill: #fff;
}

.footer-social--facebook{ background: #3f5fa8; }
.footer-social--instagram{ background: linear-gradient(135deg, #ff7a00, #ff0069, #7638fa); }
.footer-social--twitter{ background: #28a3eb; }
.footer-social--youtube{ background: #e62820; }
.footer-social--tiktok{ background: #111; }

.site-footer__bottom{
  margin-top: 52px;
}

.site-footer__bottom--no-newsletter{
  display: block;
}

.site-footer__bottom--no-newsletter .site-footer__legal{
  margin-top: 0;
}

.site-footer__newsletter{
  max-width: 100%;
}

.footer-newsletter{
  display: grid;
  grid-template-columns: 1fr 1fr minmax(220px, 380px);
  gap: 16px;
  align-items: center;
}

.footer-newsletter label{
  display: block;
}

.footer-newsletter input,
.footer-newsletter button{
  width: 100%;
  height: 56px;
  min-height: 56px;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 18px;
}

.footer-newsletter input{
  border: 2px solid rgba(59,82,111,.42);
  background: rgba(255,255,255,.92);
  color: #243041;
  padding: 0 18px;
}

.footer-newsletter input::placeholder{
  color: rgba(58,70,88,.55);
}

.footer-newsletter button{
  border: 2px solid rgba(59,82,111,.42);
  background: linear-gradient(180deg, #2f81d5 0%, #226fc4 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.footer-newsletter button:hover{
  filter: brightness(1.03);
}

.site-footer__legal{
  margin-top: 34px;
  text-align: center;
  color: #243041;
  font-size: 18px;
}

.site-footer__legal p{
  margin: 0 0 10px;
}

.site-footer__legal a{
  color: inherit;
}

/* ================= TEAM ================= */

.team-page{
  padding: 0 0 56px;
}

.team-section{
  padding: 6px 0 0;
}

.team-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card{
  height: 100%;
}

.team-card--unified{
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
}

.team-card__image{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.team-card__image img{
  width: 120px;
  height: 120px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.team-card__content{
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card__name{
  margin: 0;
  font-family: var(--ff-accent);
  font-size: clamp(26px, 3vw, 30px);
  line-height: 1.1;
  color: var(--c-primary);
}

.team-card__role{
  margin: 0;
}

.team-card__text{
  margin: 0;
  color: rgba(11,18,32,.8);
  font-size: 16px;
  line-height: 1.65;
}

.team-card__contact{
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(10,75,155,.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card__contact-item{
  width: fit-content;
}

.team-empty{
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  color: #233247;
  box-shadow: 0 12px 28px rgba(2,6,23,.06);
}

/* ================= TEAM INTRO ================= */

.team-intro{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--c-bg);
  padding: 42px 0 26px;
}

.team-intro .header-intro__grid,
.team-intro .header-intro__logo,
.team-intro .header-intro__content,
.team-intro .header-intro__title{
  display: none;
}

.team-intro__head{
  max-width: var(--container);
  margin: 0 auto;
}

.team-intro__title-visible{
  margin: 0 0 14px;
  font-family: var(--ff-accent);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1;
  color: rgba(255,255,255,.72);
  text-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.team-intro__text{
  max-width: 980px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.3;
  color: rgba(11,18,32,.78);
}

.team-intro .header-intro__divider{
  border: 0;
  border-top: 2px solid rgba(11,18,32,.55);
  margin: 34px auto 0;
  width: min(var(--container), calc(100% - 32px));
}

/* ================= FOTOGALERIE ================= */

.vm-container{
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

.vm-gallery-page,
.vm-album-page{
  background: var(--c-bg);
}

.vm-gallery-hero{
  padding: 56px 0 28px;
}

.vm-page-hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10,75,155,.10);
  color: var(--c-nav);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.vm-page-hero__title{
  margin: 0 0 14px;
  color: var(--c-primary);
  font-family: var(--ff-accent);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
}

.vm-page-hero__text{
  max-width: 760px;
  color: var(--c-text);
  font-size: 17px;
  line-height: 1.7;
}

.vm-page-hero__text p{
  margin: 0;
}

.vm-gallery-filters{
  padding: 0 0 10px;
}

.vm-gallery-filters__wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vm-filter-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10,75,155,.16);
  background: #fff;
  color: var(--c-nav);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}

.vm-filter-chip:hover,
.vm-filter-chip.is-active{
  background: var(--c-nav);
  color: #fff;
  border-color: var(--c-nav);
}

.vm-gallery-list{
  padding: 18px 0 70px;
}

.vm-gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vm-gallery-card{
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(2,6,23,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.vm-gallery-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(2,6,23,.12);
  border-color: rgba(10,75,155,.24);
}

.vm-gallery-card__link{
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.vm-gallery-card__image-wrap{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9ecfb;
}

.vm-gallery-card__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.vm-gallery-card:hover .vm-gallery-card__image{
  transform: scale(1.05);
}

.vm-gallery-card__body{
  padding: 22px;
}

.vm-gallery-card__meta{
  margin-bottom: 8px;
  color: #5a6778;
  font-size: 14px;
}

.vm-gallery-card__title{
  margin: 0 0 12px;
  color: var(--c-primary);
  font-family: var(--ff-accent);
  font-size: 25px;
  line-height: 1.18;
}

.vm-gallery-card__excerpt{
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.7;
}

.vm-gallery-card__excerpt p{
  margin: 0;
}

.vm-gallery-card__flags,
.vm-album-page__flags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.vm-flag-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10,75,155,.10);
  color: var(--c-nav);
  font-size: 13px;
  font-weight: 700;
}

.vm-gallery-card__button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--c-nav);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease;
}

.vm-gallery-card:hover .vm-gallery-card__button{
  background: var(--c-nav-hover);
}

.vm-gallery-empty{
  padding: 38px 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  text-align: center;
}

.vm-gallery-empty h2{
  margin: 0 0 10px;
  color: var(--c-primary);
  font-family: var(--ff-accent);
}

.vm-gallery-empty p{
  margin: 0;
  color: var(--c-text);
}

.vm-album-content{
  padding: 10px 0 70px;
}

.vm-album-content__top{
  margin-bottom: 18px;
}

.vm-back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-nav);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease;
}

.vm-back-link:hover{
  color: var(--c-nav-hover);
}

.vm-album-box{
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(2,6,23,.08);
}

.vm-album-box__content{
  color: var(--c-text);
  line-height: 1.75;
}

.vm-album-box__content > *:first-child{
  margin-top: 0;
}

.vm-album-box__content .gallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.vm-album-box__content .gallery-item{
  margin: 0 !important;
}

.vm-album-box__content .gallery-icon,
.vm-album-box__content .gallery a{
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.vm-album-box__content .gallery img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border: 0 !important;
  transition: transform .3s ease, filter .3s ease;
}

.vm-album-box__content .gallery a:hover img{
  transform: scale(1.03);
  filter: brightness(1.04);
}

.vm-album-box__content .gallery-caption,
.vm-album-box__content .wp-caption-text{
  margin-top: 8px;
  color: #5a6778;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.vm-album-box__content .wp-block-gallery{
  gap: 18px;
}

.vm-album-box__content .wp-block-gallery .blocks-gallery-item img{
  border-radius: 18px;
}

/* Filtrace fotogalerie */
.vm-gallery-filterbar{
  padding: 8px 0 26px;
}

.vm-gallery-filterform{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: rgba(255,255,255,.45);
  border-radius: 24px;
  padding: 22px;
}

.vm-gallery-filterform__item{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.vm-gallery-filterform__item label{
  font-weight: 700;
  color: var(--c-text);
  font-size: 15px;
}

.vm-gallery-filterform__item select{
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(10,75,155,.18);
  background: #fff;
  font-size: 15px;
  color: var(--c-text);
}

.vm-gallery-filterform__actions{
  display: flex;
  gap: 12px;
  align-items: center;
}

.vm-gallery-filterform__button,
.vm-gallery-filterform__reset{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.vm-gallery-filterform__button{
  border: 0;
  background: var(--c-nav);
  color: #fff;
  cursor: pointer;
}

.vm-gallery-filterform__button:hover{
  background: var(--c-nav-hover);
}

.vm-gallery-filterform__reset{
  background: #fff;
  border: 1px solid rgba(10,75,155,.18);
  color: var(--c-nav);
}

/* Lightbox */
.vm-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10,20,40,.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vm-lightbox.is-hidden{
  display: none;
}

.vm-lightbox-inner{
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-lightbox img{
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.vm-lightbox-close,
.vm-lightbox-arrow,
.vm-lightbox-fullscreen{
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: .2s ease;
}

.vm-lightbox-close:hover,
.vm-lightbox-arrow:hover,
.vm-lightbox-fullscreen:hover{
  background: rgba(255,255,255,.22);
  transform: scale(1.06);
}

.vm-lightbox-close{
  top: 20px;
  right: 20px;
}

.vm-lightbox-fullscreen{
  top: 20px;
  right: 78px;
  font-size: 18px;
}

.vm-lightbox-arrow--prev{
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.vm-lightbox-arrow--next{
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.vm-lightbox-arrow--prev:hover,
.vm-lightbox-arrow--next:hover{
  transform: translateY(-50%) scale(1.06);
}

/* ================= KONTAKTY ================= */

.page-kontakty-shell{
  padding: 0 0 28px;
}

.page-kontakty-shell__section{
  padding: 18px 0 0;
}

.vod-kontakty-layout{
  padding: 16px 0 36px;
}

.vod-kontakty-layout__intro{
  max-width: 920px;
  margin: 0 auto 26px;
  text-align: center;
}

.vod-kontakty-layout__title{
  margin: 0 0 10px;
  color: var(--c-primary);
  font-family: var(--ff-accent);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.vod-kontakty-layout__text{
  font-size: 18px;
  line-height: 1.65;
  color: rgba(11,18,32,.82);
}

.vod-kontakty-layout__text p{
  margin: 0;
}

.vod-kontakty-layout__top{
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.vod-kontakty-layout__left{
  display: grid;
  gap: 18px;
}

.vod-kontakty-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(2,6,23,.06);
  overflow: hidden;
}

.vod-kontakty-card--map{
  padding: 0;
}

.vod-kontakty-layout__map,
.vod-kontakty-layout__map iframe{
  width: 100%;
  display: block;
  border: 0;
}

.vod-kontakty-layout__map iframe{
  height: 340px !important;
  min-height: 340px !important;
  aspect-ratio: 1 / 1;
}

.vod-kontakty-layout__map--empty{
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(11,18,32,.65);
}

.vod-kontakty-card--org{
  padding: 0;
}

.vod-kontakty-layout__org-list{
  display: block;
}

.vod-kontakty-layout__org-row{
  padding: 22px 24px;
  border-bottom: 1px solid rgba(10,75,155,.12);
}

.vod-kontakty-layout__org-row:last-child{
  border-bottom: 0;
}

.vod-kontakty-layout__org-label{
  margin-bottom: 8px;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--c-nav);
  text-transform: uppercase;
}

.vod-kontakty-layout__org-value,
.vod-kontakty-layout__org-value a{
  color: var(--c-text);
  text-decoration: none;
  line-height: 1.65;
  font-size: clamp(18px, 2vw, 19px);
}

.vod-kontakty-card--form{
  padding: 26px;
}

.vod-kontakty-layout__form{
  min-height: 100%;
}

.vod-kontakty-layout__form > *{
  width: 100%;
}

.vod-kontakty-layout__form .contact-form-card__meta-grid,
.vod-kontakty-layout__form .contact-form-card__meta,
.vod-kontakty-layout__form .contact-form-meta,
.vod-kontakty-layout__form .contact-form-bottom-meta{
  display: none !important;
}

.vod-kontakty-layout__form-empty{
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11,18,32,.65);
}

.vod-kontakty-layout__persons-section{
  margin-top: 30px;
}

.vod-kontakty-layout__persons-title{
  margin: 0 0 18px;
  text-align: center;
  color: var(--c-primary);
  font-family: var(--ff-accent);
  font-size: clamp(28px, 3vw, 42px);
}

.vod-kontakty-layout__persons-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}

.vod-kontakty-card--person{
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
}

.vod-kontakty-layout__person-photo{
    aspect-ratio: auto;
    background: none;
    padding: 0;
}

.vod-kontakty-layout__person-photo img{
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.vod-kontakty-layout__person-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.vod-kontakty-layout__person-body{
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vod-kontakty-layout__person-body h3{
  margin: 0;
  color: var(--c-primary);
  font-size: clamp(26px, 3vw, 30px);
}

.vod-kontakty-layout__person-role{
  color: rgba(11,18,32,.9);
  font-size: 20px;
}

.vod-kontakty-layout__person-body a{
  color: var(--c-text);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.5;
}

.vod-kontakty-layout__person-body p{
  margin: 0;
  color: rgba(11,18,32,.8);
  line-height: 1.6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px){
  .site-footer__top{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__socials{
    justify-content: flex-start;
  }
}

@media (max-width: 1000px){
  .vod-kontakty-layout__top,
  .vod-kontakty-layout__persons-grid,
  .vod-kontakty-card--person,
  .team-grid,
  .team-card--unified{
    grid-template-columns: 1fr;
  }

  .vod-kontakty-layout__map iframe{
    height: 320px !important;
    min-height: 320px !important;
  }

  .vod-kontakty-layout__person-photo{
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 980px){
  :root{ --nav-h: 72px; }

  .main-nav__list{
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: 4px;
    scrollbar-width: none;
  }

  .main-nav__list::-webkit-scrollbar{
    display: none;
  }

  .main-nav__list a{
    font-size: 20px;
    padding: 4px 8px;
  }

  .nav-icon{
    width: 44px;
    height: 35px;
    padding: 6px;
  }

  .home .hero{
    min-height: 600px;
  }

  .home .hero__img{
    min-height: 600px;
  }

  .home .hero__overlay{
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: 40px;
  }

  .home .hero-arc{
    height: 220px;
  }

  .home .hero-arc__text{
    font-size: 64px;
  }

  .homepage-news__grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-card{
    border-radius: 28px;
    padding: 24px 24px 28px;
  }

  .vm-gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vm-album-box__content .gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-content{
    padding: 24px 22px;
    border-radius: 20px;
  }
}

@media (max-width: 900px){
  .team-intro{
    padding: 32px 0 22px;
  }

  .team-intro__title-visible{
    font-size: clamp(34px, 8vw, 56px);
    margin-bottom: 12px;
  }

  .team-intro__text{
    font-size: clamp(20px, 4vw, 28px);
    line-height: 1.35;
  }

  .sponsors-intro__text{
    font-size: 19px;
  }

  .sponsors-section{
    padding-top: 34px;
  }

  .sponsor-card,
  .sponsor-card--large{
    border-radius: 20px;
    padding: 22px 18px;
  }

  .sponsors-cta__box{
    border-radius: 22px;
    padding: 28px 18px 30px;
  }

  .footer-newsletter{
    grid-template-columns: 1fr;
  }

  .footer-social{
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 760px){
  .header-intro{
    padding: 28px 0 22px;
  }

  .header-intro__grid{
    grid-template-columns: 1fr;
  }

  .header-intro__logoimg{
    max-width: 220px;
    margin-inline: auto;
  }

  .header-intro__content::before{
    top: -10px;
  }
}

@media (max-width: 640px){
  :root{ --nav-h: 66px; }

  .main-nav__list{
    gap: 12px;
  }

  .main-nav__list a{
    font-size: 16px;
    padding: 4px 6px;
  }

  .nav-icon{
    width: 40px;
    height: 32px;
    padding: 6px;
  }

  .site-main{
    padding: 22px 0 44px;
  }

  .entry-content{
    padding: 20px 16px;
    border-radius: 18px;
  }

  .home .hero{
    min-height: 520px;
  }

  .home .hero__img{
    min-height: 520px;
  }

  .home .hero__overlay{
    padding-top: calc(var(--nav-h) + 12px);
    padding-bottom: 32px;
  }

  .home .hero-arc{
    height: 200px;
  }

  .home .hero-arc__text{
    font-size: 54px;
    letter-spacing: .03em;
  }

  .important-news__link{
    padding: 16px 16px 18px;
  }

  .important-news__text{
    font-size: 22px;
  }

  .section-title{
    margin-bottom: 14px;
  }

  .news-card__title{
    font-size: 28px;
  }

  .news-card__excerpt{
    font-size: 15px;
    line-height: 1.65;
  }

  .news-card__more{
    margin-top: 20px;
    font-size: 17px;
  }

  .site-footer{
    padding: 40px 0 28px;
  }

  .site-footer__details{
    font-size: 17px;
  }

  .site-footer__mapframe iframe{
    height: 260px;
  }

  .footer-social{
    width: 80px;
    height: 80px;
  }

  .footer-social svg{
    width: 38px;
    height: 38px;
  }

  .site-footer__legal{
    font-size: 16px;
  }

  .team-intro__title-visible{
    font-size: 38px;
  }

  .team-intro__text{
    font-size: 19px;
  }

  .vm-gallery-hero{
    padding: 42px 0 18px;
  }

  .vm-gallery-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vm-gallery-card__body{
    padding: 18px;
  }

  .vm-album-box{
    padding: 18px;
    border-radius: 18px;
  }

  .vm-album-box__content .gallery{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vm-album-box__content .gallery img{
    height: auto;
  }

  .vm-gallery-filterform{
    padding: 16px;
    gap: 12px;
  }

  .vm-gallery-filterform__item{
    min-width: 100%;
  }

  .vm-lightbox{
    padding: 10px;
  }

  .vm-lightbox-close{
    top: 10px;
    right: 10px;
  }

  .vm-lightbox-fullscreen{
    top: 10px;
    right: 64px;
  }

  .vm-lightbox-arrow--prev{
    left: 10px;
  }

  .vm-lightbox-arrow--next{
    right: 10px;
  }

  .vod-kontakty-layout__title{
    font-size: 40px;
  }

  .vod-kontakty-card--form{
    padding: 18px;
  }

  .vod-kontakty-layout__org-row{
    padding: 18px;
  }

  .vod-kontakty-layout__person-body{
    padding: 18px;
  }
}


/* Important news non-clickable */
.important-news__link{
  cursor: default;
  animation: importantInfoFloat .45s ease;
}

@keyframes importantInfoFloat{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}


/* ================= SJEDNOCENÉ NADPISY VNITŘNÍCH STRÁNEK ================= */
.vm-unified-page-head{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.vm-unified-page-head__divider{
  display: block;
  width: min(var(--container), calc(100% - 32px));
  max-width: 100%;
  height: 1px;
  margin: 28px auto 0;
  border: 0;
  background: rgba(10,75,155,.18);
}

.team-intro,
.sponsors-intro,
.vm-gallery-hero,
.page-kontakty-shell__section{
  padding-top: 34px;
}

.vm-gallery-hero{
  padding-bottom: 12px;
}

.vm-page-hero__content,
.vod-kontakty-layout__intro,
.team-intro__head,
.sponsors-intro__head{
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.vm-page-hero__title,
.vod-kontakty-layout__title,
.team-intro__title-visible,
.sponsors-intro__title-visible{
  margin: 0;
  color: var(--c-primary);
  font-family: var(--ff-accent);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  text-shadow: none;
}

.vm-page-hero__text,
.vod-kontakty-layout__text,
.team-intro__text,
.sponsors-intro__text{
  max-width: 920px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(11,18,32,.82);
}

.team-intro .header-intro__divider,
.sponsors-intro .header-intro__divider{
  border-top: 1px solid rgba(10,75,155,.18);
  margin-top: 28px;
}

.page-kontakty-shell{
  padding: 0 0 28px;
}

.page-kontakty-shell__section{
  padding-bottom: 0;
}

.vod-kontakty-layout{
  padding: 0 0 36px;
}

.vod-kontakty-layout__intro{
  margin-bottom: 28px;
}

.vm-gallery-filterbar{
  padding-top: 0;
}


/* ===== FINÁLNÍ SJEDNOCENÍ VNITŘNÍCH STRÁNEK ===== */
.vm-gallery-page.site-main,
.page-kontakty-shell.site-main,
.team-page.site-main,
.sponsors-page.site-main{
  padding-top: 0;
}

.team-intro,
.sponsors-intro,
.vm-gallery-hero,
.page-kontakty-shell__section{
  padding-top: 34px;
}

.vm-gallery-hero{
  padding-bottom: 18px;
}

.vm-unified-page-head__divider,
.header-intro__divider{
  display:block;
  width:min(var(--container), calc(100% - 32px));
  max-width:100%;
  height:0;
  margin:28px auto 0;
  border:0;
  border-top:1px solid rgba(10,75,155,.18);
  background:none;
}

.vm-gallery-filterbar{
  padding-top: 0;
  margin-top: 0;
}

.vod-kontakty-layout__person-role{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    padding:6px 12px;
    border-radius:999px;
    background:#e8f1ff;
    color:#0A4B9B;
    font-size:14px;
    font-weight:700;
    line-height:1.2;
}

.vm-contact-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:inherit;
    text-decoration:none;
    font-weight:500;
}

.vm-contact-link:hover{
    color:#1D75D4;
}

.vm-contact-link__icon{
    line-height:1;
}

.vod-kontakty-layout__person-photo img{
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:50%;
    display:block;
}

/* ===== Novinky: obrázky v kartách a v detailu článku ===== */
.news-card__image{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(31,67,103,.10);
}

.news-card__image img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.news-card--image-only .news-card__image{
  margin-bottom: 0;
}

.news-card--image-only .news-card__image img{
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
}

.entry-hero-image{
  max-width: 860px;
  margin: 0 0 20px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(31,67,103,.08);
}

.entry-hero-image img{
  display: block;
  width: 100%;
  height: auto;
}

.single-post-card .entry-content:empty{
  display: none;
}

@media (max-width: 700px){
  .news-card__image{
    margin: -6px -6px 18px;
    border-radius: 20px;
  }

  .news-card__image img{
    height: 200px;
  }
}

.news-card__title{ order:1; }
.news-card__image{ order:2; }
.news-card__excerpt{ order:3; }
.news-card__more{ order:4; }

.news-card__image img{
  width:100%;
  height:auto;
  object-fit:contain;
}

/* ===== FIX 2026-04-27: Novinky – 2 sloupce bez velkých mezer ===== */
/* Pozn.: klasický CSS grid vždy tvoří řádky podle nejvyšší karty.
   Pro dva sloupce bez velkých děr je zde použitý column layout. */
.homepage-news__grid{
  display: block !important;
  column-count: 2;
  column-gap: 30px;
  align-items: initial !important;
}

.news-card{
  position: relative;
  display: inline-flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 30px !important;
  padding: 28px 30px 32px !important;

  background: rgba(255,255,255,.84) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 36px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px rgba(2,6,23,.08) !important;
  overflow: hidden;

  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.news-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 100%);
  pointer-events: none;
}

.news-card > *{
  position: relative;
  z-index: 1;
}

.news-card__title{ order: 1; }
.news-card__image{ order: 2; }
.news-card__excerpt{ order: 3; }
.news-card__more{ order: 4; }

.news-card__image{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px !important;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(31,67,103,.10);
}

.news-card__image img{
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

.news-card--image-only{
  padding: 0 !important;
}

.news-card--image-only .news-card__title,
.news-card--image-only .news-card__excerpt,
.news-card--image-only .news-card__more{
  display: none !important;
}

.news-card--image-only .news-card__image{
  margin: 0 !important;
  box-shadow: none;
}

@media (max-width: 980px){
  .homepage-news__grid{
    column-count: 1;
    column-gap: 0;
  }

  .news-card{
    margin-bottom: 22px !important;
    border-radius: 28px !important;
    padding: 24px 24px 28px !important;
  }
}

@media (max-width: 700px){
  .news-card__image img{
    height: auto !important;
  }
}

/* ===== FIX 2026-04-27: Datum novinek, stránkování a tlačítko nahoru ===== */
.news-card__meta{
  order: 1;
  margin: -8px 0 16px;
  color: rgba(36,48,65,.58);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}

.news-card__image{
  order: 2;
}

.news-card__excerpt{
  order: 3;
}

.news-card__more{
  order: 4;
}

.news-card--image-only .news-card__meta{
  display: none !important;
}

.news-pagination{
  clear: both;
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
  padding-top: 18px;
}

.news-pagination .page-numbers{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.news-pagination .page-numbers li{
  margin: 0;
  padding: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
  color: var(--c-nav);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
}

.news-pagination .page-numbers a:hover,
.news-pagination .page-numbers .current{
  background: linear-gradient(180deg, rgba(10,75,155,.95) 0%, rgba(5,45,110,.95) 100%);
  color: #fff;
}

.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10,75,155,.95) 0%, rgba(5,45,110,.95) 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(2,6,23,.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover{
  filter: brightness(1.06);
}

@media (max-width: 700px){
  .news-card__meta{
    margin-top: -6px;
  }

  .news-pagination .page-numbers{
    gap: 8px;
  }

  .news-pagination .page-numbers a,
  .news-pagination .page-numbers span{
    min-height: 40px;
    min-width: 40px;
    padding: 9px 13px;
    font-size: 15px;
  }

  .back-to-top{
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
}

/* =========================================================
   MOBILNÍ OPTIMALIZACE – MENU / HERO / GALERIE
   ========================================================= */

.site-navbar__inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
}

.site-navbar__brand,
.menu-toggle{
  display: none;
}

@media (max-width: 780px){
  :root{ --nav-h: 64px; }

  body{
    padding-top: var(--nav-h);
    overflow-x: hidden;
  }

  body.menu-is-open{
    overflow: hidden;
  }

  .site-navbar{
    height: var(--nav-h);
    background: rgba(234,244,251,.92);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }

  .site-navbar .container,
  .site-navbar__inner{
    width: 100%;
    min-height: var(--nav-h);
    padding-inline: 14px;
    justify-content: space-between;
  }

  .site-navbar__brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--c-primary);
    font-weight: 900;
    line-height: 1;
    max-width: calc(100% - 70px);
  }

  .site-navbar__brand img{
    width: auto;
    height: 42px;
    max-width: 150px;
    display: block;
    object-fit: contain;
  }

  .site-navbar__brand span{
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10,75,155,.95) 0%, rgba(5,45,110,.95) 100%);
    box-shadow: 0 8px 20px rgba(10,75,155,.28), inset 0 1px 0 rgba(255,255,255,.22);
    cursor: pointer;
    z-index: 10002;
  }

  .menu-toggle__line{
    display: block;
    width: 23px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
    transition: transform .22s ease, opacity .22s ease;
  }

  .menu-toggle.is-open .menu-toggle__line:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open .menu-toggle__line:nth-child(2){
    opacity: 0;
  }

  .menu-toggle.is-open .menu-toggle__line:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav{
    position: fixed;
    top: calc(var(--adminbar-h) + var(--nav-h));
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--adminbar-h) - var(--nav-h) - 24px);
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 20px 60px rgba(2,6,23,.24);
    border: 1px solid rgba(255,255,255,.75);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 10001;
  }

  .main-nav.is-open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .main-nav__list{
    display: grid !important;
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: stretch;
    gap: 8px !important;
    flex-wrap: nowrap;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0;
  }

  .main-nav__list > li{
    width: 100%;
  }

  .main-nav__list a{
    width: 100%;
    min-height: 58px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 10px 14px !important;
    border-radius: 18px;
    color: var(--c-primary);
    font-size: 18px !important;
    line-height: 1.15;
    text-align: left;
    background: rgba(11,55,104,.06);
  }

  .main-nav__list a:hover{
    transform: none;
  }

  .main-nav__list .current-menu-item > a,
  .main-nav__list .current_page_item > a{
    color: #fff;
  }

  .main-nav__list a img.menu-image,
  .nav-icon{
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain;
  }

  .home .hero{
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
  }

  .home .hero::before{
    display: none;
  }

  .home .hero__img{
    min-height: 0;
    height: auto;
    width: 100%;
    object-fit: contain;
    object-position: center top;
  }

  .home .hero__overlay{
    position: relative;
    inset: auto;
    padding: 14px 16px 22px;
    background: linear-gradient(180deg, rgba(11,55,104,.86), rgba(11,55,104,.72));
  }

  .home .hero__inner{
    max-width: 100%;
  }

  .home .hero-title-svg{
    width: min(96vw, 420px);
    margin: 0 auto 8px;
    transform: none !important;
  }

  .home .hero__text{
    font-size: 16px;
    margin: 8px 0 14px;
  }

  .home .hero__btn{
    width: min(100%, 320px);
    padding: 13px 18px;
    font-size: 15px;
  }

  .home .hero__cta{
    margin-top: 10px;
    transform: none !important;
  }

  .home .hero__cta-image img{
    width: min(74vw, 260px) !important;
  }

  .section-title{
    font-size: clamp(28px, 9vw, 40px);
  }

  .important-news{
    padding-top: 22px;
  }

  .important-news__link,
  .news-card,
  .entry-content{
    border-radius: 20px;
  }

  .homepage-news__grid,
  .vm-gallery-grid,
  .team-grid,
  .sponsors-grid,
  .vm-album-box__content .gallery{
    grid-template-columns: 1fr !important;
  }

  .vm-gallery-hero,
  .vm-page-hero{
    padding-top: 24px !important;
    padding-bottom: 20px !important;
  }

  .vm-page-hero__title{
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .vm-lightbox{
    padding: 8px !important;
    background: rgba(10,20,40,.94);
  }

  .vm-lightbox-inner{
    width: 100%;
    height: 100%;
  }

  .vm-lightbox img{
    max-width: 100vw;
    max-height: 72vh;
    border-radius: 12px;
  }

  .vm-lightbox-close,
  .vm-lightbox-arrow,
  .vm-lightbox-fullscreen{
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.18);
  }

  .vm-lightbox-close{
    top: 12px !important;
    right: 12px !important;
  }

  .vm-lightbox-fullscreen{
    top: 12px !important;
    right: 72px !important;
  }

  .vm-lightbox-arrow--prev{
    left: 12px !important;
  }

  .vm-lightbox-arrow--next{
    right: 12px !important;
  }
}

@media (max-width: 420px){
  .site-navbar__brand img{
    height: 38px;
    max-width: 128px;
  }

  .site-navbar__brand span{
    font-size: 17px;
  }

  .home .hero-title-svg{
    width: 100%;
  }
}

/* =========================================================
   Vodomílek – mobile/landscape finální doladění
   - telefon na šířku používá hamburger menu
   - hero text/CTA je bez modrého pruhu, leží přes fotku
   - galerie na telefonu na šířku ukazuje větší fotku
   ========================================================= */

/* TELEFON NA ŠÍŘKU: bereme jako mobil i když má šířku přes 780px */
@media (max-height: 520px) and (orientation: landscape), (max-width: 780px) {
  :root{ --nav-h: 64px; }

  body{
    padding-top: var(--nav-h);
    overflow-x: hidden;
  }

  body.menu-is-open{ overflow: hidden; }

  .site-navbar{
    height: var(--nav-h);
    background: rgba(234,244,251,.92);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }

  .site-navbar .container,
  .site-navbar__inner{
    width: 100%;
    min-height: var(--nav-h);
    padding-inline: 14px;
    justify-content: space-between;
  }

  .site-navbar__brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--c-primary);
    font-weight: 900;
    line-height: 1;
    max-width: calc(100% - 70px);
  }

  .site-navbar__brand img{
    width: auto;
    height: 42px;
    max-width: 150px;
    display: block;
    object-fit: contain;
  }

  .site-navbar__brand span{
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10,75,155,.95) 0%, rgba(5,45,110,.95) 100%);
    box-shadow: 0 8px 20px rgba(10,75,155,.28), inset 0 1px 0 rgba(255,255,255,.22);
    cursor: pointer;
    z-index: 10002;
  }

  .main-nav{
    position: fixed;
    top: calc(var(--adminbar-h, 0px) + var(--nav-h));
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--adminbar-h, 0px) - var(--nav-h) - 24px);
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 20px 60px rgba(2,6,23,.24);
    border: 1px solid rgba(255,255,255,.75);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 10001;
  }

  .main-nav.is-open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .main-nav__list{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0;
  }

  .main-nav__list > li{ width: 100%; }

  .main-nav__list a{
    width: 100%;
    min-height: 58px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 10px 14px !important;
    border-radius: 18px;
    color: var(--c-primary);
    font-size: 18px !important;
    line-height: 1.15;
    text-align: left;
    background: rgba(11,55,104,.06);
  }

  .main-nav__list a img.menu-image,
  .nav-icon{
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain;
  }

  .main-nav__list .current-menu-item > a,
  .main-nav__list .current_page_item > a{
    color: #fff;
  }
}

/* MOBILNÍ HERO: bez modrého pruhu pod fotkou */
@media (max-width: 780px){
  .home .hero{
    position: relative;
    display: block;
    min-height: 0;
    height: auto;
    background: transparent;
    overflow: hidden;
  }

  .home .hero__img{
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
  }

  .home .hero__overlay{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    display: block;
    padding: 0 14px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.22) 100%) !important;
    pointer-events: none;
  }

  .home .hero__inner{
    max-width: 100%;
    pointer-events: auto;
  }

  .home .hero-title-svg{
    width: min(108vw, 620px);
    margin: 0 auto 8px;
    transform: none !important;
  }

  .home .hero__cta{
    margin-top: 4px;
    transform: none !important;
  }

  .home .hero__btn{
    width: min(78vw, 360px);
    padding: 13px 18px;
    font-size: 15px;
    background: rgba(255,255,255,.22);
  }

  .home .hero__cta-image img{
    width: min(72vw, 250px) !important;
  }
}

/* TELEFON NA ŠÍŘKU: hero musí ukázat i tlačítko */
@media (max-height: 520px) and (orientation: landscape){
  body{ padding-top: var(--nav-h); }

  .home .hero{
    height: calc(100vh - var(--nav-h));
    min-height: 300px;
    background: #0b3768;
  }

  .home .hero__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }

  .home .hero__overlay{
    position: absolute;
    inset: auto 0 0 0;
    padding: 0 20px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.34)) !important;
  }

  .home .hero-title-svg{
    width: min(56vw, 520px);
    margin-bottom: 4px;
  }

  .home .hero__btn{
    width: auto;
    min-width: 260px;
    padding: 10px 22px;
    font-size: 14px;
  }

  .home .hero__cta{ margin-top: 0; }
}

/* GALERIE – telefon na šířku: fotka větší, minimum zbytečných okrajů */
@media (max-height: 620px) and (orientation: landscape){
  .vm-lightbox{
    padding: 0 !important;
    align-items: center;
    justify-content: center;
  }

  .vm-lightbox-inner{
    width: 100vw;
    height: 100vh;
    padding: 0 66px;
    box-sizing: border-box;
  }

  .vm-lightbox img{
    max-width: calc(100vw - 132px) !important;
    max-height: calc(100vh - 18px) !important;
    border-radius: 12px;
  }

  .vm-lightbox-close,
  .vm-lightbox-fullscreen,
  .vm-lightbox-arrow{
    width: 46px;
    height: 46px;
    font-size: 23px;
    background: rgba(255,255,255,.16);
  }

  .vm-lightbox-close{
    top: 10px !important;
    right: 10px !important;
  }

  .vm-lightbox-fullscreen{
    top: 10px !important;
    right: 62px !important;
  }

  .vm-lightbox-arrow--prev{ left: 10px !important; }
  .vm-lightbox-arrow--next{ right: 10px !important; }

  .vm-lightbox-caption,
  .vm-lightbox-counter,
  .vm-lightbox-actions,
  .vm-lightbox-controls,
  .vm-lightbox-title{
    max-width: min(70vw, 520px);
  }
}

/* ===== FIX: klikací logo ===== */
.site-logo{
  display: inline-block;
  text-decoration: none;
}

.site-logo img{
  display: block;
}

/* Logo v mobilní horní liště */
.site-navbar__brand{
  text-decoration: none;
}

.site-navbar__brand img{
  display: block;
}

/* ===== Schovat název webu v horním headeru ===== */
.site-header{
  display: none;
}

.header-intro__logolink{
  display:inline-block;
  text-decoration:none;
}

.header-intro__logolink img{
  display:block;
}
