/* Jemné doladenie konkrétnych sekcií bez zásahu do hlavného style.css */

/* Väčšia fotka pri úvodnej textovej sekcii */
.media-card.media-card-tall {
  min-height: 540px;
}

/* Svetlejší a prirodzenejší prekryv fotky */
.media-card.media-card-soft[data-img] {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.30)),
    var(--img);
  background-position: center;
  background-size: cover;
}

/* Jemnejšia popisná kartička na fotke */
.media-card.media-card-soft .caption {
  background: rgba(17,24,18,.58);
  border-color: rgba(255,248,232,.18);
}

/* Ikonové boxy v tejto sekcii nech nepôsobia ako tvrdé štatistiky */
.stats .stat b {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

.stats .stat span {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

/* Tablet a mobil */
@media(max-width:900px) {
  .media-card.media-card-tall {
    min-height: 420px;
  }
}

@media(max-width:560px) {
  .media-card.media-card-tall {
    min-height: 360px;
  }

  .media-card.media-card-soft .caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px 15px;
  }
}

/* Galéria – jednotné karty */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item,
.gallery-item.wide,
.gallery-item.normal,
.gallery-item.half {
  grid-column: auto;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,248,232,.16);
  background: #101710;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform .28s ease, filter .28s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(1.05);
}

/* Tablet */
@media(max-width:900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobil */
@media(max-width:560px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-item {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
  }
}

/* Lightbox galérie */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6,10,7,.9);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100000;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,248,232,.22);
  border-radius: 50%;
  background: rgba(17,24,18,.78);
  color: #fff8e8;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--gold);
  color: #1f261b;
}

@media(max-width:560px) {
  .lightbox {
    padding: 12px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 88vh;
    border-radius: 18px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}


/* Header / mobilné menu */
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,248,232,.22);
  border-radius: 50%;
  background: rgba(255,248,232,.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--light);
  transition: .2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media(max-width:900px) {
  .nav {
    height: 66px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .navlinks {
    position: fixed;
    top: 66px;
    left: 4%;
    right: 4%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border-radius: 24px;
    background: rgba(17,24,18,.96);
    border: 1px solid rgba(255,248,232,.16);
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    padding: 15px 16px;
    border-radius: 16px;
    color: var(--light);
    font-size: 16px;
    font-weight: 850;
  }

  .navlinks a:hover {
    background: rgba(255,248,232,.08);
    color: var(--gold2);
  }

  .navlinks a:last-child {
    margin-top: 6px;
    background: var(--gold);
    color: #1f261b;
    text-align: center;
    font-weight: 950;
  }
}
