.navbar {
  transition: all 0.3s ease-in-out;
  opacity: 90%;
  padding: 12px;
  box-shadow: 0px 0px 30px rgba(170, 152, 140, 0.5);
}

.navbar-shrink {
  opacity: 100%;
  padding: 5px;
}

.navbar-brand img {
  width: 170px;
}

.header {
  background: url("../images/hero-background.png") center center no-repeat;
  background-size: cover;
}

.hero {
  min-height: 100vh;
}
.hero img {
  max-height: 75%;
}

hr {
  border: 20px solid var(--bs-dark);
}

.about {
  background: url("../images/DufiProfi_preklad_dolu.png") top no-repeat;
  background-size: cover;
  background-position-y: -8px;
}

#products .card {
  transition: 0.5s;
}

#products .card:hover {
  transform: scale(1.05);
}

.contact-form,
.cenik_ostatni {
  background: url("../images/DufiProfi_preklad_nahoru.png") bottom no-repeat;
  background-size: cover;
}

#sluzby,
#o_me,
#portfolio,
#kontakt,
#cenik_svatebni,
#cenik_maturitni,
#cenik_ostatni {
  position: relative;
  top: -78px;
}

#fotogalerie img {
  display: block;
  margin-bottom: 1em;
  width: 100%;
  border-radius: 20px;
  transition: 0.3s ease-in-out;
  box-shadow: 1px 5px 5px rgb(157, 154, 154);
}

#fotogalerie img:hover {
  transform: scale(1.03);
}

#fotogalerie #galerie-container {
  width: min(1100px, 100%);
  margin: 0 auto;
  columns: 4 250px;
  column-gap: 1em;
}

@media (max-width: 768px) {
  .navbar {
    padding: 5px 20px !important;
  }
  .navbar-brand img {
    width: 130px;
  }
  .hero {
    padding-top: 100px !important;
  }
  .hero .image-container {
    width: 70vw;
    height: 70vw;
    overflow: hidden;
  }
  .hero .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    padding: 3px !important;
  }
  #sluzby,
  #o_me,
  #portfolio,
  #kontakt,
  #cenik_svatebni,
  #cenik_maturitni,
  #cenik_ostatni {
    position: relative;
    top: -70px;
  }
  .cenik,
  .fotogalerie {
    padding-top: 90px !important;
  }
}
@media (max-width: 576px) {
  #fotogalerie img {
    width: 100%;
    height: auto;
  }
  .hero .image-container {
    margin: 0;
  }
  .hero .text-container {
    padding: 5px !important;
  }
  .hero #hlavni_nadpis {
    margin: 0 0 10px 0 !important;
  }
  .hero #hlavni_popis {
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
