.header-image-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 1rem;
  min-height: 180px; /* Minimální výška pro velmi malé obrazovky */
}

.header-image-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.header-image-bg > * {
  position: relative;
  z-index: 2;
}

.header-image-bg[data-bg-image] {
  background-image: var(--bg-image);
}

@media (max-width: 30em) { /* 30em = 480px */
  .header-image-bg {
    min-height: 170px;
    border-radius: 0;
    background-size: cover !important;
    background-position: center !important;
  }
}

@media (min-width: 30em) {
  .header-image-bg {
    min-height: 250px;
    border-radius: 2.5rem;
  }
}

@media (min-width: 64em) {
  .header-image-bg {
    min-height: 300px;
    border-radius: 3rem;
  }
}

.vertical-center {
  top: 50%;
  transform: translateY(-50%);
}

#site-header,
#site-main {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-divider {
    max-width:1200px;
}

.header-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.header-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.header-with-bg > * {
  position: relative;
  z-index: 2;
}

.logo-header {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

@media (min-width: 30em) {
  .logo-header {
    width: 150px;
    height: 150px;
  }
}

@media (min-width: 64em) {
  .logo-header {
    width: 180px;
    height: 180px;
  }
}

/* Responzivní velikost loga */
@media (max-width: 81.25em) { /* 81.25em = 1300px */
  .logo-header {
    width: 100px;
    height: 100px;
  }
}

.absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.input-search-small {
  width: 160px;
  min-width: 0;
  flex: 0 0 160px;
}

.logo-main {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Hide main logo on mobile, show only on larger screens */
.logo-main-container {
  display: none; /* Hidden on mobile by default */
}

@media (min-width: 60em) { /* 60em = 960px */
  .logo-main-container {
    display: flex; /* Show on larger screens */
  }
  
  .logo-main {
    width: 100px;
    height: 100px;
  }
}

.logo-center-container {
  display: none; /* Skryté ve výchozím nastavení (mobilní zařízení) */
}

@media (min-width: 60em) { /* 60em = 960px */
  .logo-center-container {
    display: flex; /* Zobrazit pouze na větších obrazovkách */
  }
}

.section-offset-top {
  margin-top: -50px;
}

/* Responzivní horní odsazení pro menu na mobilních zařízeních */
@media (max-width: 60em) and (min-width: 30em) { /* 480px - 960px */
  .section-offset-top {
    margin-top: -100px; /* 4rem pro střední mobily */
  }

}

@media (max-width: 30em) { /* menší než 480px */
  .section-offset-top {
    margin-top: -6px; /* 6rem pro malé mobily */
  }
}

.section-overlap {
  position: relative;
}

/* Přesah pouze pro velké obrazovky */
@media (min-width: 60em) { /* 60em = 960px */
  .section-overlap {
    margin-left: -30px;
    margin-right: -30px;
    width: calc(100% + 60px);
    padding-left: 30px;
    padding-right: 30px;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1em;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1em;
  }
}

/* Menší přesah pro střední obrazovky */
@media (max-width: 60em) and (min-width: 30em) { /* 480px - 960px */
  .section-overlap {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-offset-top {
    margin-top: -70px; /* 4rem pro střední mobily */
  }

}

/* Zajistit klikatelnost horní sekce */
.site-header > div > section:first-child {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Řízení zobrazování horních sekcí podle velikosti obrazovky */
.mobile-top-section {
  display: block; /* Zobrazit na mobilu */
}

.desktop-top-section {
  display: none; /* Skrýt na mobilu */
}

@media (min-width: 60em) { /* 60em = 960px */
  .mobile-top-section {
    display: none; /* Skrýt na desktopu */
  }
  
  .desktop-top-section {
    display: flex; /* Zobrazit na desktopu */
  }
}

.logo-mobile {
  width: 150px;
  height: 110px;
  object-fit: contain;
}

/* Responzivní velikost mobilního loga */
@media (max-width: 30em) { /* 30em = 480px */
  .logo-mobile {
    width: 130px;
    height: 80px;
  }
}

/* Mobilní sekce s logem */
.mobile-logo-section {
  display: flex; /* Zobrazit na mobilu */
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10; /* Vyšší z-index pro klikatelnost */
  padding-bottom: 1rem; /* Menší spodní odsazení */
}

@media (min-width: 60em) { /* 60em = 960px */
  .mobile-logo-section {
    display: none; /* Skrýt na desktopu */
  }
}

.content-home article {
  overflow: visible;
}

/* Reset figure margins and make images full width */
figure {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  margin: 0;
  width: 100%;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
}

