/* Reset & base */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
}

nav {
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  color: #00bcd4;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00bcd4;
}

.nav-links li a[aria-current="page"] {
  color: #00bcd4;
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #00bcd4;
  margin: 3px 0;
  border-radius: 2px;
}
.section h2 {
  text-align: center;
  font-size: 2.7rem;
  color: #00bcd4;
  margin-bottom: 1rem;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #aaa;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Galerie wrapper a grid */
.gallery-wrapper {
  position: relative;
  overflow: hidden;
  width: calc(3 * 350)(px + 2 * 2rem); /* 3 fotky + mezery bez extra prostoru */
  margin: 0 auto 4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 280px);
  grid-template-rows: repeat(2, 220px);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: max-content; /* šířka podle obsahu */
  flex-shrink: 0;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-grid img {
  width: 300px;
  height: 250px;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 188, 212, 0.25);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  object-fit: cover;
}

.gallery-grid img:hover,
.gallery-grid img:focus {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 188, 212, 0.6);
  outline: none;
}

/* Tlačítka */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  color: #00bcd4;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  padding: 0 10px;
  z-index: 10;
}

.gallery-btn:hover,
.gallery-btn:focus {
  color: #008a9e;
  outline: none;
}

.gallery-btn.prev {
  left: 0;
}

.gallery-btn.next {
  right: 0;
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 13, 13, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

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

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 188, 212, 0.7);
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 3rem;
  color: #00bcd4;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #008a9e;
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #111;
  border-top: 1px solid #222;
  color: #aaa;
  font-size: 0.9rem;
  user-select: none;
}

/* Responsive hamburger menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    right: 2rem;
    background: #111;
    padding: 1rem 2rem;
    border-radius: 10px;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 400px) {
  .gallery-grid img {
    height: 150px;
    width: 100%;
  }
  .gallery-wrapper {
    width: 100vw;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-template-rows: repeat(2, 120px);
    width: auto;
  }
}
