@charset "UTF-8";
/* loctic.lv pielāgotie stili (pasākumi, personas, …).
   kube2.css pagaidām ietvaram; jauno/laboto CSS rakstīt šeit, tad: sass css3/stili.scss css3/stili.css --no-source-map */
/* Atvērtā galerija (galerija_new4 / slider_gallery) — kā visitaizkraukle */
#gal_preview_container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  cursor: grab;
  scroll-behavior: smooth;
  touch-action: pan-y;
  margin: 1em 0;
  padding-right: 1em;
}
#gal_preview_container a {
  padding-top: 150px;
  padding-left: 150px;
  margin: 0 0 1em 1em;
  display: block;
  cursor: pointer;
  background-position: center center;
  background-size: cover;
  border-radius: 4px;
  box-sizing: border-box;
}
#gal_preview_container a.gal_preview_active {
  border: 3px solid #f8d85e;
  box-shadow: 0 0 10px rgba(248, 216, 93, 0.5);
  padding-top: 144px;
  padding-left: 144px;
}
@media (max-width: 768px) {
  #gal_preview_container {
    margin: 0.5em 0;
  }
  #gal_preview_container a {
    padding-top: 50px;
    padding-left: 50px;
    margin: 0 0 0.5em 0.5em;
  }
  #gal_preview_container a.gal_preview_active {
    border: 3px solid #f8d85e;
    box-shadow: 0 0 10px rgba(248, 216, 93, 0.5);
    padding-top: 44px;
    padding-left: 44px;
  }
}

#gal_preview_container.is-centered {
  justify-content: center;
  cursor: default;
}

#gallery_back {
  background-color: rgba(0, 0, 0, 0.9);
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100001;
}
#gallery_back [class^=i-], #gallery_back [class*=" i-"] {
  color: #FFF;
}
#gallery_back [class^=i-]::before, #gallery_back [class*=" i-"]::before {
  padding-right: 0;
  width: auto;
}
#gallery_back #gal_close {
  position: absolute;
  right: 0;
  top: 0;
  padding: 1em;
  color: #FFF;
  text-decoration: none;
  font-size: 2em;
  cursor: pointer;
  z-index: 100002;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gallery_back #gal_counter {
  position: absolute;
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
  color: #FFF;
  font-size: 1.2em;
  font-weight: bold;
  padding: 0.5em 1em;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.5em;
  z-index: 100002;
  pointer-events: none;
}
@media (max-width: 768px) {
  #gallery_back #gal_counter {
    font-size: 1em;
    top: 0.5em;
  }
}
#gallery_back #gal_fullscreen {
  position: absolute;
  right: 2.5em;
  top: 0;
  padding: 1em;
  color: #FFF;
  text-decoration: none;
  font-size: 2em;
  cursor: pointer;
  z-index: 100002;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  #gallery_back #gal_fullscreen {
    right: 3em;
    font-size: 1.5em;
  }
}
#gallery_back #gal_fullscreen:hover {
  opacity: 0.8;
}
#gallery_back #gal_previous, #gallery_back #gal_next {
  position: absolute;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
  padding: 2vw;
  color: #FFF;
  text-decoration: none;
  font-size: 3em;
  font-weight: bold;
  cursor: pointer;
  z-index: 100002;
}
#gallery_back #gal_next {
  left: unset;
  right: 2vw;
}

#galerija {
  height: 100vh;
}

#gal_slides_container {
  height: 80vh;
  margin-top: 2vh;
  display: inline-flex;
  overflow: hidden;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
  cursor: grab;
}
#gal_slides_container .gal_slide {
  height: 100%;
  max-height: 100%;
  width: 100vw;
  min-width: 100vw;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  position: relative;
  overflow: visible;
}
#gal_slides_container .gal_slide picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 100%;
  max-height: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  align-self: center;
  margin: auto;
}
#gal_slides_container .gal_slide source {
  max-height: 100%;
  max-width: 100%;
}
#gal_slides_container .gal_slide .gal_image_wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
}
#gal_slides_container .gal_slide img {
  display: block;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: auto;
}
#gal_slides_container .gal_slide .g_b_title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #FFF;
  width: auto;
  max-width: 90%;
  margin: 0;
  padding: 0.5em 1em;
  text-align: center;
  z-index: 100003;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  pointer-events: none;
  border-radius: 0.5em 0.5em 0 0;
}

/* kube .is-navbar-container { min-height:100% } izstiepj zaļo joslu līdz viewport */
#main_menu_container,
#main_menu_container > .wrapper {
  height: auto;
  min-height: 0;
}

#main_menu_container .is-navbar-container {
  min-height: 0;
  height: auto;
  flex: 0 1 auto;
  align-items: center;
}

/* go_home kreisā = galva_valodas labā (vienāds attālums līdz malām) */
#go_home {
  padding: 0.7em 1em !important;
  box-sizing: border-box;
}

#galva_valodas {
  float: right !important;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

#galva_valodas li a {
  padding: 0.7em 1em !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

#galva_valodas svg {
  display: block;
  width: 1.75em;
  height: 1.15em;
  border-radius: 2px;
}

/* Pirmās lapas galvas slīderis — kā visitaizkraukle/visitdobele */
#main_intor_galerija {
  position: relative;
  width: 100%;
  aspect-ratio: 1920/800;
  max-height: 800px;
  overflow: hidden;
  background: #2a2a2a;
}

#main_intor_galerija_container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  /* Virsraksti — loctic tipogrāfija (balts + ēna uz foto) */
}
#main_intor_galerija_container .slider-container {
  height: 100%;
  width: 100%;
  display: flex;
  overflow: visible;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
  cursor: grab;
}
#main_intor_galerija_container .slider-container.grabbing {
  cursor: grabbing;
  transition: none;
}
#main_intor_galerija_container .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  position: relative;
  opacity: 1;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  user-select: none;
  pointer-events: none;
  visibility: hidden;
  z-index: 1;
}
#main_intor_galerija_container .slide.is-in-frame {
  visibility: visible;
  pointer-events: auto;
}
#main_intor_galerija_container .slide-apraksts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5em;
  padding: 0 1.5em;
  margin: 0;
  font-family: Verdana, sans-serif;
  font-size: 1.35em;
  font-weight: bold;
  line-height: 1.35;
  color: #FFF;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: auto;
}
#main_intor_galerija_container .slide-apraksts p {
  margin: 0.2em 0;
}
#main_intor_galerija_container .slide-apraksts a {
  color: #FFF;
  text-decoration: underline;
  font-weight: bold;
}
#main_intor_galerija_container .m_gal_prev, #main_intor_galerija_container .m_gal_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.4em;
  z-index: 4;
  padding: 0.4em 0.55em;
  color: #FFF;
  font-size: 2em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
#main_intor_galerija_container .m_gal_next {
  left: auto;
  right: 0.4em;
}

@media (max-width: 768px) {
  #main_intor_galerija {
    max-height: none;
    aspect-ratio: 16/9;
  }

  #main_intor_galerija_container .slide-apraksts {
    font-size: 1em;
    bottom: 1em;
    padding: 0 1em;
  }

  #main_intor_galerija_container .m_gal_prev,
#main_intor_galerija_container .m_gal_next {
    font-size: 1.4em;
  }
}
/* Kreisā satura josla — breadcrumbs / h1 / datums / img vienā līnijā */
.saturs section {
  padding-left: 2%;
  padding-right: 2%;
  box-sizing: border-box;
}

/* kube section > h1 { padding:0 0.5em } — dubultē section atkāpi */
.saturs section > h1 {
  padding-left: 0;
  padding-right: 0;
}

.my_breadcrumb {
  padding: 1em 0;
  margin: 0;
}

.section_data_box > .objekts {
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.objekts .img_left,
.obj_saturs .img_left {
  margin-left: 0 !important;
}

/* Labā mala — kalendārs kā breadcrumb augša; lielāka atstarpe līdz tēmām */
.satura_right {
  padding-top: 0;
  vertical-align: top;
}

.satura_right .laba_kalendars {
  background-color: #B8C897;
  padding: 0.2em;
  margin: 0 0 1.75em;
  box-sizing: border-box;
}

.social_buttons {
  width: 100%;
  margin: 2em 0 1em 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1em;
  gap: 0.75em;
  box-sizing: border-box;
}
.social_buttons .social_buttons_label {
  font-size: 0.95em;
  line-height: 1.3;
  color: inherit;
  margin-right: 0.15em;
}
.social_buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5A6F34;
  font-size: 1.5em;
  line-height: 1;
  text-decoration: none;
}
.social_buttons a span::before {
  padding-right: 0;
  width: auto;
}
.social_buttons a:hover {
  color: #7a9448;
}

.soc-btn-print {
  display: none !important;
}

/* Labās malas tēmu saraksts zem kalendāra */
#pasakumu_temas {
  margin: 0 0 1.25em;
  /* augšējo atstarpi dod .laba_kalendars */
  padding: 0.9em 0.85em 0.75em;
  background: #f4f6ef;
  border: 1px solid #d5ddc4;
  border-radius: 0.45em;
  box-sizing: border-box;
}
#pasakumu_temas .pasakumu_temas_title {
  margin: 0 0 0.65em;
  padding: 0 0.15em;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5A6F34;
}
#pasakumu_temas ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#pasakumu_temas li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#pasakumu_temas li + li {
  border-top: 1px solid #e2e8d6;
}
#pasakumu_temas a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.55em 0.4em;
  color: #3f4d2a;
  text-decoration: none;
  line-height: 1.25;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#pasakumu_temas a .tema-nos {
  flex: 1 1 auto;
  min-width: 0;
}
#pasakumu_temas a .tema-skaits {
  flex: 0 0 auto;
  min-width: 1.6em;
  padding: 0.15em 0.45em;
  border-radius: 999px;
  background: #5A6F34;
  color: #FFF;
  font-size: 0.78em;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
#pasakumu_temas a:hover {
  background: #e8eedc;
  color: #2f3a1f;
}
#pasakumu_temas a:hover .tema-skaits {
  background: #4a5c2b;
}
#pasakumu_temas li.is-active a {
  background: #5A6F34;
  color: #FFF;
}
#pasakumu_temas li.is-active a .tema-skaits {
  background: #FFF;
  color: #5A6F34;
}

#pasakumu_mekletajs {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 0 0 1.5em;
}
#pasakumu_mekletajs .is-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 1em;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
#pasakumu_mekletajs .form-item.is-col {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
#pasakumu_mekletajs label {
  display: block;
  margin-bottom: 0.35em;
}
#pasakumu_mekletajs select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  #pasakumu_mekletajs .is-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75em;
  }

  #pasakumu_mekletajs .form-item.is-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }
}
/* Izvēlnes objekti (raksti+personas) — flex grid kā visitdobele */
.section_data_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  /* Atvērts raksts/pasākums — pilns platums, nevis sašaurināts un centrēts (kube .objekts = inline-block) */
}
.section_data_box > .objekts {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

.section_data_box > a.card,
.saturs section > a.card {
  width: 31%;
  /* kube .card { margin:0 1% } — 1% abās pusēs nost, jo section jau 2% */
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.saturs section::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 900px) {
  .section_data_box > a.card,
.saturs section > a.card {
    width: 48%;
  }
}
@media (max-width: 600px) {
  .section_data_box > a.card,
.saturs section > a.card {
    width: 98%;
  }
}
.card .card-calendar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0.6em 0.8em;
  color: #FFF;
  font-size: 0.95em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
}
.card .card-calendar .i-calendar {
  display: inline-block;
  margin-right: 0.4em;
  /* 1.2rem = kā .kontakti i (1.2em no body), ne no 0.95em parent */
  font-size: 1.2rem;
  line-height: 1;
  font-style: normal;
  color: #FFF !important;
  vertical-align: middle;
}
.card .card-calendar .i-calendar::before {
  color: #FFF !important;
}

.card .card-title .i-location {
  display: block;
  margin-top: 0.4em;
  font-size: 0.85em;
  opacity: 0.95;
}

.nav_atrasts_pasakums {
  margin: 1em 0 1.5em;
}

/* Personu detalizētā lapa — kā locvisitaizkraukle + dobele kartīšu struktūra */
.objekts.persona {
  width: 100%;
  display: block;
  color: #333;
}
.objekts.persona > h1,
.objekts.persona .pers_head > h1 {
  color: #5B491E;
  margin: 0 0 0.5em;
  padding: 0;
  width: 56%;
  box-sizing: border-box;
}

.pers_head {
  /* Platums kā .obj_saturs / .obj_galerija — bez sānu paddinga */
  width: 100%;
  max-width: 100%;
  padding: 1em 0;
  box-sizing: border-box;
  /* overflow:hidden nogriež kontaktu ikonu glifu augšas — clearfix floatiem */
  overflow: visible;
}
.pers_head::after {
  content: "";
  display: table;
  clear: both;
}
.pers_head .pers_head_img {
  width: 38%;
  margin: 0 0 1.5em 1.5em;
  float: right;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.pers_head .pers_head_img .pers_logo,
.pers_head .pers_head_img a.pers_logo,
.pers_head .pers_head_img a.gbm.pers_logo {
  /* kube .gbm margin 0.5em sašaurina logo pret .lb-small */
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-bottom: 63%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
  box-sizing: border-box;
}
.pers_head .pers_head_img .lb-small {
  margin-top: 1em;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.5em;
  box-sizing: border-box;
  /* 3 vienādas miniatūras — trešā līdz logo labajai malai */
}
.pers_head .pers_head_img .lb-small a,
.pers_head .pers_head_img .lb-small a.gbm {
  flex: 0 0 calc((100% - 1em) / 3);
  width: calc((100% - 1em) / 3);
  max-width: calc((100% - 1em) / 3);
  margin: 0;
  box-sizing: border-box;
  padding-bottom: calc((100% - 1em) / 3);
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  display: block;
}
.pers_head .p_head_data {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: 56%;
  padding: 0;
  /* flex-start — starp kolonnām un logo drīkst palikt tukša vieta */
  justify-content: flex-start;
  gap: 1.5em;
  /* bez darbalaiki — kontakti līdz logo */
}
.pers_head .p_head_data .kontakti_container {
  /* ar darbalaiki blakus — ~55%, saturs var sašaurināties */
  flex: 1 1 55%;
  min-width: 0;
  max-width: 100%;
}
.pers_head .p_head_data .kontakti_container:only-child {
  flex: 1 1 100%;
  max-width: 100%;
}
.pers_head .p_head_data .darbalaiki_container {
  flex: 0 1 38%;
  min-width: 0;
  max-width: 42%;
}
.pers_head .p_head_data .darbalaiki_container .darba_laiki {
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.pers_head .p_head_data .darbalaiki_container .darba_laiki > li {
  margin-bottom: 1em;
  list-style: none;
  padding-left: 0;
}
.pers_head .p_head_data .darbalaiki_container .darba_laiki li {
  list-style: none;
  padding-left: 0;
}
.pers_head .p_head_data .darbalaiki_container .darba_laiki li i {
  width: 40px;
  display: inline-block;
  margin-bottom: 0.5em;
  font-size: 1.2em;
  color: #795548;
}
.pers_head .p_head_data .darbalaiki_container .darba_laiki span {
  padding-right: 1em;
  margin-right: 1em;
}
.pers_head .p_head_data .darbalaiki_container .pers_tags {
  margin-top: 1em;
}
.pers_head .p_head_data .darbalaiki_container .pers_tags i {
  color: #795548;
  font-size: 2em;
  margin: 0.1em 0.3em 0.1em 0.1em;
}

@media (max-width: 1024px) {
  .objekts.persona > h1,
.pers_head > h1 {
    width: 46%;
  }

  .pers_head .pers_head_img {
    width: 49%;
  }
  .pers_head .p_head_data {
    width: 46%;
    flex-wrap: wrap;
  }
  .pers_head .p_head_data .kontakti_container,
.pers_head .p_head_data .darbalaiki_container {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .objekts.persona > h1,
.pers_head > h1 {
    width: 100%;
    padding: 0;
  }

  .pers_head {
    padding: 1em 0;
  }
  .pers_head .pers_head_img {
    width: 100%;
    margin: 0 0 1em 0;
  }
  .pers_head .pers_head_img .lb-small {
    display: none;
  }
  .pers_head .p_head_data {
    width: 100%;
    padding: 0;
    flex-wrap: wrap;
  }
  .pers_head .p_head_data .kontakti_container,
.pers_head .p_head_data .darbalaiki_container {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* Pasākuma datums/vieta — ikonas kā .kontakti (1.2em, vertikāli centrētas) */
.objekts .obj_datums {
  background-image: none;
  padding: 0 0 0.25em;
  margin: 0 0 1em;
  /* kā rindkopu atstarpe (.obj_saturs p ≈ 16px) */
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15em 0;
}
.objekts .obj_datums i.i-calendar,
.objekts .obj_datums i.i-location {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 0.5em 0 0;
  font-size: 1.2em;
  line-height: 1;
  font-style: normal;
  color: #795548;
  vertical-align: middle;
}
.objekts .obj_datums .norises_vieta {
  display: inline-flex;
  align-items: center;
  margin-left: 1.25em;
  font-weight: normal;
}

/* Kontaktu ikonas — brūnās kā iepriekš */
.objekts .kontakti {
  /* drusku no kreisās — objekts padding=0 (izlīdzinājumam), ikonas citādi pielīp */
  padding: 0 0 0 0.5em;
  margin: 0;
  overflow: visible;
}
.objekts .kontakti li {
  display: flex;
  list-style: none !important;
  /* kube2 .kontakti li { overflow:auto !important } nogriež glifus */
  overflow: visible !important;
  margin-top: 0.4em;
  align-items: center;
  color: #45382c;
}
.objekts .kontakti li i {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 1.6em;
  margin: 0 0.5em 0.3em 0;
  font-size: 1.2em;
  line-height: 1;
  font-style: normal;
  /* kube i{italic} */
  overflow: visible;
  color: #795548;
}
.objekts .kontakti li i [class^=i-],
.objekts .kontakti li i [class*=" i-"] {
  display: inline-block;
  color: #795548;
  font-style: normal;
  line-height: 1;
}
.objekts .kontakti li i [class^=i-]::before,
.objekts .kontakti li i [class*=" i-"]::before {
  width: 1.15em !important;
  padding-right: 0 !important;
  display: inline-block;
}
.objekts .kontakti li i .i-booking::before {
  width: 2.4em !important;
}
.objekts .kontakti li i .i-sphere::before {
  content: "\e903";
}
.objekts .kontakti li a {
  text-decoration: none;
  color: #45382c;
}
.objekts .kontakti li address {
  display: inline;
  flex: 1 1 0;
  min-width: 0;
  color: #45382c;
  font-style: normal;
}
.objekts .kontakti .darbalaiki_perioda_dienas {
  padding: 0.4rem 1rem;
  background-color: #f3f3f3;
  border-radius: 0.5rem;
}
.objekts .kontakti .darbalaiki_perioda_dienas li {
  display: block;
}

.darbalaiki_perioda_dienas .pusdienlaiks {
  display: block;
  padding-right: 0;
  margin-right: 0;
}

.pers_map {
  margin: 1em 0;
  min-height: 400px !important;
}

/* Zaļais foto-marķieris (karte + personas lapa) */
.custom-leaflet-marker {
  position: relative;
  width: 60px;
  height: 72px;
}

.marker-svg-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.marker-picture {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  border: 3px solid #cfcba6;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Viena satura josla zem .pers_head — vienāds platums (karte arī 100%) */
.objekts.persona #pe,
.objekts.persona .obj_saturs,
.objekts.persona .obj_galerija,
.objekts.persona .pers_info_title,
.objekts.persona .cards,
.objekts.persona .intro_box,
.objekts.persona .pers_map,
.objekts.persona #map {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Dobele struktūra (caret + līnija), Kandavas brūnā krāsa uz balta */
.pers_info_title {
  width: 100%;
  margin: 1.25em 0 0.75em;
  position: relative;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  color: #5B491E;
  font-weight: bold;
}
.pers_info_title span, .pers_info_title a, .pers_info_title .pers_info_toggle {
  background-color: #FFF;
  /* bez kreisā paddinga — kā h1 «Valdeķu…»; labais pārklāj līniju */
  padding: 0 1em 0 0;
  display: inline-block;
  color: #5B491E;
  text-decoration: none;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.pers_info_title .pers_info_toggle {
  border: 0;
  margin: 0;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
}
.pers_info_title i {
  background-color: #FFF;
  padding: 0 0.35em 0 0;
  cursor: pointer;
  color: #5B491E;
  /* kube/icomoon ::before 1.5em pie h2 ir ~53px */
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}
.pers_info_title i::before {
  width: 1em !important;
  padding-right: 0 !important;
  display: inline-block;
}

.pers_info_title:before {
  border-top: 4px solid #e7e7e7;
  content: "";
  margin: 0 auto;
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: -1;
}

#old_pasakumi_title {
  cursor: pointer;
}

#tab-pasakumi-arhivs {
  display: none;
}

#tab-pasakumi-arhivs.is-open {
  display: flex;
}

.cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 1em;
  width: 100%;
  max-width: 100%;
  margin: 0.5em 0 0;
  padding: 0;
  box-sizing: border-box;
}

.cards > a.card {
  /* kube .card { margin:0 1% } + 32% neietilpst 3 rindā — calc ar gap */
  flex: 0 0 calc((100% - 2em) / 3);
  width: calc((100% - 2em) / 3);
  max-width: calc((100% - 2em) / 3);
  margin: 0;
  float: none;
  box-sizing: border-box;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cards > a.card {
    flex: 0 0 calc((100% - 1em) / 2);
    width: calc((100% - 1em) / 2);
    max-width: calc((100% - 1em) / 2);
  }
}
@media (max-width: 600px) {
  .cards {
    gap: 0.75em;
  }

  .cards > a.card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}
.obj_saturs {
  width: 100%;
  padding: 0 0 1em;
  line-height: 1.6em;
  color: #333;
  box-sizing: border-box;
}

/* www_galerija: tukši .gbm ar background-image (kā visitaizkraukle) */
.obj_galerija {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75em;
  margin: 1.5em 0;
}
.obj_galerija a,
.obj_galerija .gbm {
  display: block;
  width: 100%;
  margin: 0;
  padding-bottom: 0;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.audio-list {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}
.audio-list li {
  list-style: none;
  width: 100%;
}
.audio-list audio {
  width: 100%;
  margin: 1em 0;
}

.objekts.persona .intro_box {
  width: 100%;
  max-width: 100%;
  margin: 0.5em 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1em;
  background: transparent;
  box-sizing: border-box;
}
.objekts.persona .intro_box > a.card {
  flex: 0 0 calc((100% - 2em) / 3);
  width: calc((100% - 2em) / 3);
  max-width: calc((100% - 2em) / 3);
  margin: 0;
  float: none;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .objekts.persona .intro_box > a.card {
    flex: 0 0 calc((100% - 1em) / 2);
    width: calc((100% - 1em) / 2);
    max-width: calc((100% - 1em) / 2);
  }
}
@media (max-width: 600px) {
  .objekts.persona .intro_box {
    gap: 0.75em;
  }

  .objekts.persona .intro_box > a.card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}
.pers_map,
.objekts.persona #map {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Kājene — kā locvisitaizkraukle (+ ģerbonis logo kolonnā) */
:root {
  --footer-height:280px;
}

#page {
  min-height: calc(100vh - var(--footer-height));
}

#footer {
  background-color: #5A6F34;
  min-height: 0;
  padding: 2.5em 1em 1em;
  margin-top: 1em;
  color: #FFF;
  line-height: 1.8;
  overflow: hidden;
  box-sizing: border-box;
}

#footer .wrapper {
  overflow: hidden;
}

#footer .wrapper > .is-row {
  margin-left: 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2.5em;
}

#footer .wrapper > .is-row > .is-col {
  margin-left: 0;
}

/* 6 daļas: logo 1 + soc 1 + kontakti 2 + laiki 2 */
#footer .kajene_info {
  display: contents;
}

#footer .kajene_logo,
#footer .kajene_soc {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  width: auto;
}

#footer .kajene_kontakti,
#footer .kajene_laiki {
  flex: 2 1 0;
  min-width: 0;
  max-width: none;
  width: auto;
  overflow-wrap: break-word;
}

#footer .kajene_logo {
  text-align: center;
}

#footer .kajene_logo img {
  display: block;
  margin: 0 auto;
  max-width: 140px;
  height: auto;
}

#footer .kajene_soc_ieksa,
#footer .kajene_laiki_ieksa {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

#footer .kajene_soc,
#footer .kajene_laiki {
  text-align: left;
}

#footer .kajene_laiki_ieksa ul {
  width: auto;
  max-width: 100%;
}

#footer .darba_laiki > li {
  padding-bottom: 1.2em;
  line-height: 1.7;
}

#footer .darba_laiki > li:last-child {
  padding-bottom: 0;
}

#footer .darbalaiki_perioda_dienas {
  line-height: 1.4;
}

#footer .darbalaiki_perioda_dienas li span {
  min-width: 3.2em;
}

#footer .pusdienlaiks {
  display: block;
  padding-left: 0;
  margin: 0;
}

#footer ul {
  margin: 0;
}

#footer li {
  list-style: none;
}

#footer h4 {
  margin: 0 0 0.6em;
  text-transform: none;
  font-size: 0.95em;
  letter-spacing: normal;
  font-weight: 700;
}

#footer a {
  color: #FFF;
  text-decoration: none;
}

#footer a:hover {
  color: #000;
}

#footer address {
  display: inline;
  font-style: normal;
}

#footer [class^=i-],
#footer [class*=" i-"],
#footer [class^=i-]::before,
#footer [class*=" i-"]::before {
  color: #FFF !important;
}

#footer a:hover [class^=i-],
#footer a:hover [class*=" i-"],
#footer a:hover [class^=i-]::before,
#footer a:hover [class*=" i-"]::before {
  color: #000 !important;
}

/* Periods uzreiz aiz ikonas, ne zem tās */
#footer .darba_laiki > li > i {
  display: inline-block;
  margin: 0 0.4em 0 0;
  vertical-align: middle;
  line-height: 1;
}

#footer .darba_laiki .i-calendar {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
  line-height: 1;
}

#footer #viss-lv {
  clear: both;
  float: none;
  text-align: right;
  font-size: 0.8em;
  margin: 1.5em 0 0;
  padding: 0;
  /* Footer #5A6F34 — tumšāks zaļš, redzams, bet nebalts */
  color: #354420;
}

#footer #viss-lv a {
  display: inline-block;
  color: #3d4d24;
}

#footer #viss-lv a:hover {
  color: #2a3518;
}

@media only screen and (max-width: 920px) {
  #footer .wrapper > .is-row {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.5em 2em;
  }

  #footer .kajene_logo,
#footer .kajene_soc,
#footer .kajene_kontakti,
#footer .kajene_laiki {
    flex: 1 1 calc(50% - 1em);
    min-width: 0;
    max-width: none;
    width: auto;
  }
}
@media only screen and (max-width: 767px) {
  #footer .wrapper > .is-row {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 1.2em;
  }

  #footer .kajene_logo,
#footer .kajene_soc,
#footer .kajene_kontakti,
#footer .kajene_laiki {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  #footer .kajene_soc_ieksa,
#footer .kajene_laiki_ieksa {
    margin: 0;
  }

  #footer #viss-lv {
    text-align: left;
  }
}
