
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: white;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url("obrazky/pozadi1.jpg")
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px; /* MEZERY MEZI OKÝNKY */
}

.card {
    background: rgba(40, 97, 157, 0.28);
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

.card-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.main-pic {
    float: right;
    width: 350px;
    margin-left: 1em;
    margin-bottom: 1em;
}

h1, h2 {
    margin-top: 0;
}

p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.95;
}

footer {
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
}

a,a:link,a:visited {
    color: lightblue;
}

.info-urad {
    margin-top: 2em;
    margin-left: 3em;
}

.info-urad__logo {
    float:left;
    margin-right: 1em;
}
.info-urad__text {
    font-size: 1.8em;
}



/* Galerie */
figure {
  padding: 0.5em;
}
figure img,
figure video {
  margin-bottom: 0;
}
figure > a:hover {
  border-bottom: 0;
}
figcaption .figure-title {
  display: block;
  margin-top: 0;
  margin-bottom: 0.25em;
  font-size: 85%;
  max-width: 380px;
  font-weight: 700;
}
.figure-large {
  width: 800px;
  margin: 0 auto;
}
.figure-large figcaption .figure-title {
  max-width: 800px;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: -1em;
  margin-right: -1em;
}
.gallery figure {
  margin: 0.3em;
}
.gallery img {
  max-width: 380px;
  max-height: 380px;
}




.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox--open {
  display: flex;
}
.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__caption {
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.9rem;
  word-break: break-all;
}
.lightbox__counter {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: 0 0;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox__close:hover,
.lightbox__close:focus,
.lightbox__prev:hover,
.lightbox__prev:focus,
.lightbox__next:hover,
.lightbox__next:focus {
  opacity: 1;
}
.lightbox__close:focus,
.lightbox__prev:focus,
.lightbox__next:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lightbox__close {
  top: 0.5rem;
  right: 0.5rem;
  font-size: 2.5rem;
  line-height: 1;
}
.lightbox__prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}
