/* Doplňkové styly ke staženému motivu Bose.
   Řeší jen to, co původní web řešil přes WordPress/plugin nebo co je potřeba
   pro samostatný statický web (galerie, lightbox, responzivita, formuláře). */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif;
  background-color: #ffffff;
}

/* původní motiv načítal Roboto z Google Fonts – tady stačí systémový fallback */
.site-title-font,
.site-title,
.widget-title,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif;
}

img {
  max-width: 100%;
}

a {
  transition: color .15s ease-in-out;
}

/* ---------- hlavička a menu ---------- */

.site-branding {
  padding-top: 0.6vw;
}

.menu-toggle {
  display: none;
  margin: 0;
  padding: 6px 14px;
  font-size: 15px;
  line-height: 2.2;
  color: #404040;
  cursor: pointer;
}

.main-navigation .menu {
  margin: 0;
  padding: 0;
  overflow: hidden; /* původní výška lišty byla pevná, plovoucí položky menu ji jinak nevyplní */
}

#top-nav::after {
  content: '';
  display: table;
  clear: both;
}

/* ---------- slider ---------- */

#slider-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.bx-wrapper {
  margin-bottom: 0 !important;
  overflow: hidden;
}

.bx-pager {
  overflow: hidden;
}

.slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 18px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
}

/* ---------- obsah ---------- */

.entry-content p {
  margin: 0 0 1em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.header-title span {
  display: inline-block;
}

/* ---------- galerie ---------- */

.gallery-nav {
  margin: 0 0 18px;
  line-height: 2.2;
}

.gallery-nav a {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 2px 4px 0;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  color: #40405d;
  text-decoration: none;
  background: #fafafa;
}

.gallery-nav a:hover {
  border-color: #880000;
  color: #880000;
}

.gallery-nav a.active {
  background: #880000;
  border-color: #880000;
  color: #fff;
}

.ngg-galleryoverview {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 10px;
}

.gallery-item {
  width: 148px;
  margin: 0;
}

.gallery-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-item img {
  display: block;
  width: 148px;
  height: 98px;
  object-fit: cover;
  border: 1px solid #e2e2e2;
  background: #f2f2f2;
  transition: border-color .15s ease-in-out, transform .15s ease-in-out;
}

.gallery-item a:hover img {
  border-color: #880000;
  transform: translateY(-2px);
}

.gallery-item figcaption {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #666;
}

.gallery-note {
  margin-top: 10px;
  font-size: 12px;
  color: #8a8a8a;
  font-style: italic;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, .9);
  padding: 30px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
  background: #222;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  color: #eee;
  font-size: 14px;
  padding: 0 70px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  font-size: 26px;
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, .25);
}

.lightbox-close {
  top: 14px;
  right: 14px;
}

.lightbox-prev {
  left: 14px;
  top: 50%;
  margin-top: -23px;
}

.lightbox-next {
  right: 14px;
  top: 50%;
  margin-top: -23px;
}

/* ---------- formuláře ---------- */

.wpcf7-form p {
  margin-bottom: 12px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  max-width: 520px;
  padding: 7px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  font: inherit;
  color: #40405d;
  background: #fff;
}

.wpcf7-form textarea {
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  padding: 8px 22px;
  border: 0;
  border-radius: 2px;
  background: #880000;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background: #a41616;
}

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: #8a8a8a;
}

/* ---------- patička ---------- */

#footer-sidebar .widget-title {
  font-size: 107%;
}

.site-footer .menu {
  text-align: right;
}

.site-footer .menu li {
  display: inline-block;
  margin-left: 12px;
}

/* ---------- responzivita ---------- */

@media (max-width: 991px) {
  #page {
    width: 92vw !important;
  }

  #slider-wrapper,
  #slider-wrapper .container {
    width: 92vw !important;
  }

  #secondary {
    padding-top: 10px !important;
  }

  .site-footer .menu {
    text-align: left;
    margin-top: 8px;
  }
}

/* Původní motiv škáloval písmo i výšky přes vw jednotky (návrh pro ~1400 px).
   V užším okně jsou pak položky menu nečitelně malé a přetékají z lišty. */
@media (max-width: 1199px) {
  div.container:has(> #top-nav) {
    height: auto !important;
  }

  #top-nav {
    height: auto !important;
    padding: 4px 0 !important;
  }

  .main-navigation {
    height: auto !important;
    font-size: 13px !important;
  }

  .main-navigation .menu li a {
    padding: 8px 12px;
  }

  .slider-caption-desc {
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  #page {
    width: 96vw !important;
    min-height: 0 !important;
  }

  #slider-wrapper,
  #slider-wrapper .container {
    width: 96vw !important;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-navigation {
    height: auto !important;
    font-size: 15px !important;
  }

  .main-navigation .menu {
    display: none;
  }

  .main-navigation .menu.open {
    display: block;
  }

  .main-navigation .menu li {
    display: block;
    float: none;
    border-top: 1px solid #ececec;
  }

  .main-navigation .menu li a {
    display: block;
    padding: 8px 12px;
  }

  .site-branding,
  #top-right {
    float: none;
    width: 100% !important;
  }

  .site-title {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .gallery-item,
  .gallery-item img {
    width: 132px;
  }

  .gallery-item img {
    height: 88px;
  }

  .footer-column {
    float: none;
    width: 100% !important;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-caption {
    font-size: 12px;
    padding: 0 46px;
  }
}
