/*
Theme Name: Meta Develop
Author: Martin Ouhrabka
Description: Šablona pro developerský projekt Rezidence Mechanika.
Version: 1.0
Requires at least: 5.8 (nebo aktuální verze WP)
Requires PHP: 7.4 (nebo vyšší)
Text Domain: metadevelop
*/

/* Přidejte toto do vašeho hlavního CSS souboru */
@keyframes bounce-on-load {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px); /* Výška "odskočení" */
  }
  60% {
    transform: translateY(-7px); /* Menší odskočení */
  }
}

.animate-bounce-on-load {
  animation: bounce-on-load 1.5s ease-out; /* Délka a typ animace */
  animation-delay: 0.5s; /* Volitelné: malé zpoždění před spuštěním animace */
}

/* Hide header when Fancybox is active */
.fancybox__container #site-header {
  display: none !important;
}

/* Alternative: Hide header when body has Fancybox class */
body.compensate-for-scrollbar #site-header {
  display: none !important;
}

/* Reset main element margins */
.site-main {
  margin: 0;
  padding: 0;
}

/* Scroll indicator animation */
@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.animate-scroll {
  animation: scroll 2s ease-in-out infinite;
}

/* Gallery Swiper Scrollbar */
.gallerySwiper .swiper-scrollbar {
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 3px;
}

.gallerySwiper .swiper-scrollbar-drag {
  background: #e48c3d;
  border-radius: 3px;
  cursor: grab;
}

.gallerySwiper .swiper-scrollbar-drag:active {
  cursor: grabbing;
}