:root {
  --predapo-watermark: url("/wp-content/themes/kutils_template/assets/images/kutils_logo.png");
  --predapo-bg: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  --predapo-card: rgba(255, 255, 255, 0.96);
  --predapo-text: #0f172a;
  --predapo-muted: #64748b;
  --predapo-border: rgba(15, 23, 42, 0.08);
  --predapo-accent: #0f766e;
  --predapo-accent-2: #14b8a6;
  --predapo-shadow-main: 0 24px 70px rgba(15, 23, 42, 0.10);
  --predapo-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.10);
  --predapo-radius-xl: 30px;
  --predapo-radius-lg: 24px;
}

.predapo-section {
  position: relative;
  width: 100%;
  padding: 90px 18px;
  background: var(--predapo-bg);
  overflow: hidden;
}

.predapo-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.predapo-intro {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.predapo-intro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  color: var(--predapo-accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.predapo-title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: var(--predapo-text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.predapo-description {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--predapo-muted);
}

.predapo-wrapper {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px;
  border-radius: var(--predapo-radius-xl);
  background: var(--predapo-card);
  border: 1px solid var(--predapo-border);
  box-shadow: var(--predapo-shadow-main);
}

.predapo-gallery {
  position: relative;
}

.predapo-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.predapo-scroll::-webkit-scrollbar {
  display: none;
}

.predapo-item {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
}

.predapo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--predapo-radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--predapo-shadow-card);
}

.predapo-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: #edf2f7;
}

.predapo-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 130px;
  height: 44px;
  background-image: var(--predapo-watermark);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.52;
  pointer-events: none;
  z-index: 3;
}

/* detail button */
.predapo-zoom-trigger {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #0f766d9f, #14b8a5b2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.predapo-zoom-icon {
  font-size: 1rem;
  line-height: 1;
}

.predapo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.predapo-nav span {
  font-size: 34px;
  line-height: 1;
  margin-top: -2px;
}

.predapo-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(15, 23, 42, 0.94);
}

.predapo-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.predapo-prev {
  left: 16px;
}

.predapo-next {
  right: 16px;
}

.predapo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.predapo-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-height: 18px;
  max-width: 170px;
}

.predapo-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, width 0.28s ease, background 0.28s ease;
}

.predapo-dot.is-active {
  width: 30px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  background: linear-gradient(90deg, var(--predapo-accent), var(--predapo-accent-2));
}

.predapo-dot.is-near {
  width: 10px;
  opacity: 0.85;
  transform: scale(0.95);
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.30);
}

.predapo-dot.is-far {
  width: 9px;
  opacity: 0.28;
  transform: scale(0.75);
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.18);
}

.predapo-dot.is-fade {
  width: 8px;
  opacity: 0.10;
  transform: scale(0.55);
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.12);
}

.predapo-dot.is-hidden {
  opacity: 0;
  transform: scale(0.2);
  width: 0;
  margin: 0;
  pointer-events: none;
}

.predapo-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--predapo-text);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.predapo-current {
  color: var(--predapo-accent);
}

.predapo-divider,
.predapo-total {
  color: var(--predapo-muted);
}

/* lightbox */
.predapo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.predapo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.predapo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.predapo-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(96vw, 1100px);
  max-height: 92vh;
  margin: 4vh auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.predapo-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.predapo-lightbox-close {
  position: absolute;
  top: -10px;
  right: -6px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

body.predapo-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .predapo-section {
    padding: 74px 16px;
  }

  .predapo-wrapper {
    padding: 22px;
  }

  .predapo-card img {
    max-height: 620px;
  }
}

@media (max-width: 767px) {


  .predapo-section {
    padding: 56px 14px;
  }

  .predapo-intro {
    margin-bottom: 24px;
  }

  .predapo-intro-badge {
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
  }

  .predapo-title {
    margin-bottom: 14px;
  }

  .predapo-description {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .predapo-wrapper {
    padding: 14px;
    border-radius: 22px;
  }

  .predapo-card {
    border-radius: 18px;
  }

  .predapo-card img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .predapo-card::after {
    right: 12px;
    bottom: 12px;
    width: 94px;
    height: 32px;
    opacity: 0.46;
  }

  .predapo-zoom-trigger {
    display: inline-flex;
    right: -5px;
    top: 4px;
    padding: 6px 10px;
    font-size: 0.75rem;
    animation: predapo-soft-pulse 3.6s ease-in-out infinite;

  }

  .predapo-nav {
    width: 44px;
    height: 44px;
  }

  .predapo-nav span {
    font-size: 26px;
  }

  .predapo-prev {
    left: 10px;
  }

  .predapo-next {
    right: 10px;
  }

  .predapo-controls {
    justify-content: center;
    margin-top: 18px;
  }

  .predapo-dots {
    max-width: 140px;
    gap: 7px;
  }

  .predapo-counter {
    font-size: 0.92rem;
    padding: 9px 12px;
  }

  .predapo-lightbox-dialog {
    width: min(96vw, 96vw);
    max-height: 94vh;
    margin-top: 3vh;
  }

  .predapo-lightbox-image {
    max-height: 94vh;
    border-radius: 14px;
  }

  .predapo-lightbox-close {
    top: -8px;
    right: -2px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .predapo-section {
    padding: 48px 12px;
  }

  .predapo-wrapper {
    padding: 12px;
  }

  .predapo-nav {
    width: 40px;
    height: 40px;
  }

  .predapo-nav span {
    font-size: 22px;
  }

  .predapo-dots {
    max-width: 126px;
    gap: 6px;
  }

  .predapo-dot.is-active {
    width: 24px;
  }

  .predapo-zoom-text {
    display: none;
  }

  .predapo-zoom-trigger {
    padding: 5px;
    min-width: 34px;
    justify-content: center;
    animation: predapo-soft-pulse 3.6s ease-in-out infinite;
  }
}

/* =========================
   Výraznější barevný pulse efekt
========================= */

@keyframes predapo-soft-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.35);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 14px rgba(20, 184, 166, 0.12);
    opacity: 0.94;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.35);
    opacity: 1;
  }
}

