/* Základní rozvržení pro stránky převedené z Miowebu.
   Barvy, písma a odsazení jednotlivých prvků jsou přímo ve stránce (pravidla #row_… a #element_…). */
.mio { font-family: 'Open Sans', Arial, sans-serif; font-size: 15px; line-height: 1.7; color: var(--text); }

/* Řádky */
.mio .row { position: relative; padding: 50px 0; }
.mio .row_padding_big { padding: 90px 0; }
.mio .row_padding_small { padding: 30px 0; }
.mio .row_padding_none { padding: 0; }
.mio .row_background_container { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; pointer-events: none; }
.mio .background_overlay { position: absolute; inset: 0; }
.mio .row_fix_width { position: relative; max-width: 1010px; margin: 0 auto; padding: 0 20px; display: flex; gap: 30px; align-items: flex-start; }
.mio .row.ve_valign_center .row_fix_width { align-items: center; }
.mio .row.ve_valign_bottom .row_fix_width { align-items: flex-end; }

/* Sloupce */
.mio .col { min-width: 0; flex: 1 1 0; }
.mio .col-one { flex: 1 1 100%; }
.mio .col-two { flex: 1 1 50%; }
.mio .col-three { flex: 1 1 33.33%; }
.mio .col-four { flex: 0 1 calc(25% - 22px); }
.mio .col-threefour { flex: 1 1 75%; }
.mio .col-twothree { flex: 1 1 66.66%; }
.mio .col-onethree { flex: 1 1 33.33%; }

/* Prvky */
.mio .element_content { padding-bottom: var(--element-bottom-padding, 30px); max-width: var(--element-max-width, none); }
.mio .element_align_center { margin-left: auto; margin-right: auto; }
.mio .element_align_right { margin-left: auto; }

/* Nadpisy */
.mio .ve_title { font-family: 'Open Sans', sans-serif; font-size: 30px; line-height: 1.3; color: var(--text); }
.mio .ve_title h1, .mio .ve_title h2, .mio .ve_title h3, .mio .ve_title p { margin: 0; font: inherit; color: inherit; line-height: inherit; }

/* Text */
.mio .in_element_content.entry_content > :first-child { margin-top: 0; }
.mio .entry_content p { margin: 0 0 1em; }
.mio .entry_content p:last-child { margin-bottom: 0; }
.mio .entry_content h2, .mio .entry_content h3, .mio .entry_content h4 { margin: 1.4em 0 .6em; line-height: 1.3; }
.mio .entry_content ul, .mio .entry_content ol { margin: 0 0 1em; padding-left: 1.4em; }
.mio .entry_content a { color: var(--fialova); }

/* Obrázek */
.mio .element_image { max-width: 100%; }
.mio .element_image.ve_center { margin: 0 auto; }
.mio .element_image img, .mio .el_it_image img { width: 100%; height: auto; display: block; }
.mio .mw_image_ratio { position: relative; overflow: hidden; }
.mio .mw_image_ratio_169 { padding-bottom: 56.25%; }
.mio .mw_image_ratio_32 { padding-bottom: 66.66%; }
.mio .mw_image_ratio_43 { padding-bottom: 75%; }
.mio .mw_image_ratio_11 { padding-bottom: 100%; }
.mio .mw_image_ratio_23 { padding-bottom: 150%; }
.mio .mw_image_ratio_34 { padding-bottom: 133.33%; }
.mio .mw_image_ratio:not(.mw_image_ratio_original) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Obrázek s textem */
.mio .in_element_image_text { display: flex; gap: 40px; align-items: flex-start; }
.mio .in_element_image_text.ve_valign_center { align-items: center; }
.mio .in_element_image_text > .col-two { flex: 1 1 50%; min-width: 0; }

/* Galerie */
.mio .image_gallery_element .mw_element_row, .mio .mw_element_items .mw_element_row { display: grid; gap: 20px; }
.mio .cols-2 .mw_element_row { grid-template-columns: repeat(2, 1fr); }
.mio .cols-3 .mw_element_row { grid-template-columns: repeat(3, 1fr); }
.mio .cols-4 .mw_element_row { grid-template-columns: repeat(4, 1fr); }
.mio .cols-5 .mw_element_row { grid-template-columns: repeat(5, 1fr); }
.mio .image_gallery_element__item { display: block; overflow: hidden; cursor: zoom-in; }
.mio .image_gallery_element__item img { transition: transform .5s; }
.mio .image_gallery_hover_zoom .image_gallery_element__item:hover img { transform: scale(1.06); }
.mio .is-theme-no_captions .image_gallery_element__item__caption { display: none; }

/* Katalog (dlaždice s nadpisem přes fotku) */
.mio .mw_element_item { position: relative; overflow: hidden; }
.mio .mw_element_item_image_container a { display: block; }
.mio .mw_element_item img { width: 100%; display: block; transition: transform .5s; }
.mio .mw_item_hover_zoom:hover img { transform: scale(1.06); }
.mio .mw_element_items_style_5 .mw_element_item_title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 15px 18px; text-align: center; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)); pointer-events: none; }
.mio .mw_element_item_title h3 { margin: 0; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: 26px; color: #fff; }
.mio .mw_element_item_title a { color: #fff; text-decoration: none; pointer-events: auto; }

/* Ceník */
.mio .mw_table_pricelist { width: 100%; border-collapse: collapse; font-size: 14px; }
.mio .mw_table_pricelist td { padding: 13px 18px; vertical-align: middle; }
.mio .mw_table_pricelist tr.even td { background: #f2f2f2; }
.mio .mw_table_pricelist .pricelist_price { text-align: right; white-space: nowrap; }

/* Tlačítko z Miowebu */
.mio .ve_content_button { display: inline-block; font-family: 'Merriweather', serif; font-size: 18px; color: #fff; background: var(--ruzova); text-decoration: none; padding: 12px 24px; border-radius: 5px; }
.mio .ve_content_button:hover { background: var(--ruzova-tm); }
.mio .element_align_center .ve_content_button { display: table; margin: 0 auto; }

/* Kontaktní formulář */
.kontakt-form { display: flex; flex-wrap: wrap; gap: 14px; }
.kontakt-form .kf-radek { flex: 1 1 100%; }
.kontakt-form .kf-pul { flex: 1 1 calc(50% - 7px); }
.kontakt-form input, .kontakt-form textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 15px; border: 1px solid #dcdcdc; border-radius: 5px; background: #fff; color: var(--text); }
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: none; border-color: var(--ruzova); }
.kontakt-form .kf-past { position: absolute; left: -9999px; width: 1px; height: 1px; }
.kontakt-form .kf-souhlas { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--text); }
.kontakt-form .kf-tlacitko { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 15px; color: #fff; background: var(--fialova); border: 0; border-radius: 5px; padding: 13px 28px; cursor: pointer; margin: 0 auto; }
.kontakt-form .kf-tlacitko:hover { background: var(--fialova-akt); }
.kontakt-form .kf-tlacitko[disabled] { opacity: .6; cursor: wait; }
.kontakt-form .kf-zprava { flex: 1 1 100%; margin: 0; text-align: center; font-weight: 600; color: var(--fialova); }

/* Lightbox galerie */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lightbox .lb-zavrit { top: 10px; right: 10px; }
.lightbox .lb-pred { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-dal { right: 6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 860px) {
  .mio .row_fix_width { flex-direction: column; gap: 0; }
  .mio .col { flex: 1 1 auto; width: 100%; }
  .mio .in_element_image_text { flex-direction: column; gap: 24px; }
  .mio .cols-3 .mw_element_row, .mio .cols-4 .mw_element_row, .mio .cols-5 .mw_element_row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mio .mw_element_items.cols-2 .mw_element_row { grid-template-columns: 1fr; }
  .mio .row_padding_big { padding: 60px 0; }
  .kontakt-form .kf-pul { flex-basis: 100%; }
}
