/* =========================
   ZÁKLAD
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  background: #fff;
  font-family: 'Vend Sans', sans-serif;
}

/* =========================
   FOTOGALERIE
========================= */
.fotogalerie {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 + 5 */
  gap: 20px;
}

.fotogalerie img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fotogalerie img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* =========================
   LIGHTBOX (NE fullscreen)
========================= */
.lightbox {
  position: fixed;
  left: 0;
  right: 0;

  top: 60px;                    /* 👈 POSUNUTO VÝŠ */
  height: calc(100vh - 60px);   /* 👈 STEJNÁ HODNOTA */

  background: rgba(0,0,0,0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  animation: lightboxZoom 0.4s ease;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
}

/* křížek */
.lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;

  width: 44px;
  height: 44px;

  background: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  cursor: pointer;

  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* =========================
   ANIMACE
========================= */
@keyframes lightboxZoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .fotogalerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fotogalerie {
    grid-template-columns: 1fr; /* jedna fotka */
  }

  .fotogalerie img {
    height: auto;
  }

  /* na mobilu klidně fullscreen */
  .lightbox {
    top: 0;
    height: 100vh;
  }
}

